jpicedt.graphic.io.formatter
Class JPICTextFormatter
java.lang.Object
jpicedt.graphic.io.formatter.AbstractFormatter
jpicedt.graphic.io.formatter.JPICTextFormatter
- All Implemented Interfaces:
- Formatter
public class JPICTextFormatter
- extends AbstractFormatter
A formatter for PicText objects in the JPIC-XML format :
<text vert-align="bottom|baseline|center-v|top"
hor-align="left|center-h|right" anchor-point="(x,y)"
box="no_frame|rectangle|circle|oval">text here !</text>
where :
- refpoint = B|b|t for vertical and l|r for horizontal (B = baseline)
- rotation = any angle in degree or U,L,D,R,N,W,S or E.
- Since:
- jpicedt 1.4
- Version:
- $Id: JPICTextFormatter.java,v 1.16 2013/03/27 07:04:34 vincentb1 Exp $
- Author:
- Sylvain Reynal
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 |
JPICTextFormatter
public JPICTextFormatter(PicText obj,
JPICFormatter factory)
- Parameters:
obj
- the PicText to be formattedfactory
- the factory that produced this formatter
getElement
public Element getElement()
- Description copied from interface:
Formatter
- Renvoie l'
Element
sujet du formattage.
format
public String format()
- Description copied from interface:
Formatter
- Create a String representing an Element in the format of this formatter
- Returns:
- a String representing this Element in the PsTricks
Submit a bug : syd@jpicedt.org