jpicedt.format.output.latex
Class PicTextFormatter
java.lang.Object
jpicedt.graphic.io.formatter.AbstractFormatter
jpicedt.format.output.latex.PicTextFormatter
- All Implemented Interfaces:
- Formatter
public class PicTextFormatter
- extends AbstractFormatter
An interface that specifies common formatting behaviours for Drawable objects
Method Summary |
String |
format()
Create a String representing an Element in the format of this formatter |
Element |
getElement()
Renvoie l'Element sujet du formattage. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PicTextFormatter
public PicTextFormatter(PicText element,
LatexFormatter factory)
getElement
public Element getElement()
- Description copied from interface:
Formatter
- Renvoie l'
Element
sujet du formattage.
- Since:
- jPicEdt 1.6
format
public String format()
- Description copied from interface:
Formatter
- Create a String representing an Element in the format of this formatter
- Returns:
- A string representation of a PicText object in the LaTeX format
We don't need PicEdt special comments (e.g. %Ellipse... whith the whole bunch of parameters)
for PicText objects, since the formating produces a single \makebox command, which can be easily parsed.
\makebox(0,0)[b]{hello} → not framed
\framebox{$x=1$} → framed
There's no support for dashboxes any more, use a PicRectangle in conjonction with a makebox instead.
- Since:
- PicEdt 1.0
Submit a bug : syd@jpicedt.org