http://www.jpicedt.org

jpicedt.format.output.latex
Class PicParallelogramFormatter

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

public class PicParallelogramFormatter
extends AbstractFormatter

Formats a PicParallelogram to the LaTeX-picture format.

Since:
jpicedt 1.4
Version:
$Id: PicParallelogramFormatter.java,v 1.11 2013/07/21 12:54:03 vincentb1 Exp $

Author:
Sylvain Reynal

Field Summary
protected  PicParallelogram element
          the Element this formater acts upon
protected  LatexFormatter factory
          the producing factory
 
Constructor Summary
PicParallelogramFormatter(PicParallelogram element, LatexFormatter factory)
           
 
Method Summary
 String format()
          Depending on the parallelogram being rectangle or not, either use LaTeX's \\line command, or the \\rule command if the shape is to be filled.
 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

element

protected PicParallelogram element
the Element this formater acts upon


factory

protected LatexFormatter factory
the producing factory

Constructor Detail

PicParallelogramFormatter

public PicParallelogramFormatter(PicParallelogram 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()
Depending on the parallelogram being rectangle or not, either use LaTeX's \\line command, or the \\rule command if the shape is to be filled.

Returns:
The LaTeX string corresponding to this object

http://www.jpicedt.org

Submit a bug : syd@jpicedt.org