http://www.jpicedt.org

jpicedt.format.output.latex
Class PicTextFormatter

java.lang.Object
  extended by jpicedt.graphic.io.formatter.AbstractFormatter
      extended by jpicedt.format.output.latex.PicTextFormatter
All Implemented Interfaces:
Formatter

public class PicTextFormatter
extends AbstractFormatter

An interface that specifies common formatting behaviours for Drawable objects


Constructor Summary
PicTextFormatter(PicText element, LatexFormatter factory)
           
 
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 jpicedt.graphic.io.formatter.AbstractFormatter
revertedArrowsAttribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PicTextFormatter

public PicTextFormatter(PicText element,
                        LatexFormatter factory)
Method Detail

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

http://www.jpicedt.org

Submit a bug : syd@jpicedt.org