jpicedt.format.output.pstricks
Class PicTextFormatter
java.lang.Object
jpicedt.graphic.io.formatter.AbstractFormatter
jpicedt.format.output.pstricks.PicTextFormatter
- All Implemented Interfaces:
- Formatter
public class PicTextFormatter
- extends AbstractFormatter
A formatter for PicText objects in the PsTricks format :
\\rput[refpoint]{rotation}(x,y){stuff}
where :
- stuff can be any of the following :
\\psframebox[param]{text}}
\\pscirclebox[param]{text}}
\\psovalbox[param]{text}}
- 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.
The following are built from "frame", "oval" or "circle", but are allegedly more efficient :
\\psdblframebox[param]{stuff} % same as psframebox with doubleline=true
\\psshadowbox[param]{stuff} % same as psframebox with shadow=true
\\cput[shadow=true](x,y){a cput with a shadow} % same as pscirclebox, yet more efficient
We don't use them so far.
- Version:
- $Id: PicTextFormatter.java,v 1.14 2013/03/27 07:23:15 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 |
PicTextFormatter
public PicTextFormatter(PicText obj,
PstricksFormatter factory)
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