http://www.jpicedt.org

jpicedt.format.output.latex
Class PicEllipseFormatter

java.lang.Object
  extended by jpicedt.graphic.io.formatter.AbstractFormatter
      extended by jpicedt.format.output.latex.PicEllipseFormatter
All Implemented Interfaces:
Formatter
Direct Known Subclasses:
PicEllipseFormatter

public class PicEllipseFormatter
extends AbstractFormatter

A drawing->LaTeX formater for PicEllipse objects

[SR:pending] rotated arc/ellipse not handled yet !


Field Summary
protected  PicEllipse ellipse
          the Element this formater acts upon
protected  LatexFormatter factory
           
 
Constructor Summary
PicEllipseFormatter(PicEllipse ellipse, LatexFormatter factory)
           
 
Method Summary
protected  void appendArrows(StringBuffer buf)
          Append arrows to the given buffer by invoking arrowToLatexString() on the producing factory.
protected  void appendEmulatedArcString(StringBuffer buf)
          Create a string representation of a circle/ellipse in the LaTeX format, using emulated lines, and append it to the given buffer.
protected  void appendLatexCircleString(StringBuffer buf)
          Create a string representation of a circle in the LaTeX format, using the \\circle command, and append it to the given buffer.
protected  void appendLatexDiskString(StringBuffer buf)
          Create a string representation of a disk in the LaTeX format, using the \\circle* command, and append it to the given buffer.
 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
 

Field Detail

ellipse

protected PicEllipse ellipse
the Element this formater acts upon


factory

protected LatexFormatter factory
Constructor Detail

PicEllipseFormatter

public PicEllipseFormatter(PicEllipse ellipse,
                           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 LaTeX-String representation of a PicEllipse (i.e. a circle, an ellipse, or an arc, never filled in the LaTeX format).

appendLatexDiskString

protected void appendLatexDiskString(StringBuffer buf)

Create a string representation of a disk in the LaTeX format, using the \\circle* command, and append it to the given buffer. Appended string is CR-terminated.

Since:
jpicedt 1.3.2

appendLatexCircleString

protected void appendLatexCircleString(StringBuffer buf)

Create a string representation of a circle in the LaTeX format, using the \\circle command, and append it to the given buffer. Appended string is CR-terminated.

Since:
jpicedt 1.3.2

appendEmulatedArcString

protected void appendEmulatedArcString(StringBuffer buf)

Create a string representation of a circle/ellipse in the LaTeX format, using emulated lines, and append it to the given buffer. Appended string is CR-terminated.

Parametric equation is :

[SR:pending] add dash + rotated ellipse

Since:
jpicedt 1.3.2

appendArrows

protected void appendArrows(StringBuffer buf)
Append arrows to the given buffer by invoking arrowToLatexString() on the producing factory.


http://www.jpicedt.org

Submit a bug : syd@jpicedt.org