java.lang.Object
jpicedt.graphic.io.parser.AbstractRegularExpression
jpicedt.graphic.io.parser.SequenceExpression
jpicedt.format.pstricks.parser.PsRPutExpression
- All Implemented Interfaces:
- jpicedt.graphic.io.parser.ExpressionConstants
- public class PsRPutExpression
- extends jpicedt.graphic.io.parser.SequenceExpression
- implements jpicedt.graphic.io.parser.ExpressionConstants
\\rput[refpoint]{rotation}(x,y){stuff}
\\rput*[refpoint]{rotation}(x,y){stuff}
(line-breaks being allowed b/w each "block"), where :
- refpoint = B|b|t for vertical and l|r for horizontal (B = baseline), used only for psframebox and rel.
- rotation = any angle in degree or U,L,D,R,N,W,S or E.
- stuff = whatever ! (this allows in particular to rotate things)
Depending on the "stuff" found, instanciates :
- PicText : \\psframebox, \\pscirclebox, \\psovalbox, LR-argument
- huuu... [pending] instanciate other elements + handle rotations.
- Version:
- $Id: PsRPutExpression.java,v 1.2 2002/08/05 16:44:10 reynal Exp $
Nested Class Summary |
(package private) class |
PsRPutExpression.Alignment
[hv] alignment string for \\rput, provided that stuff is an HR-argument, or a box. |
(package private) class |
PsRPutExpression.EnclosedText
handles {text} content (for PsFrameBox) by setting PicText's text content, replacing
linefeeds by whitespaces beforehands (as TeX does...) |
(package private) class |
PsRPutExpression.HRArgument
handles content of "{stuff}" when no other expression matches, by instanciating a PicText
with "stuff" as the PicText string |
(package private) class |
PsRPutExpression.HRArgumentSucker
swallow as many chars as possible and push them in "hrArgument" buffer,
replacing CR by whitespaces, as TeX does. |
(package private) class |
PsRPutExpression.PsFrameBox
\\psframebox[param]{text}} |
Fields inherited from interface jpicedt.graphic.io.parser.ExpressionConstants |
ANY_CHAR, ANY_CHAR_EOL, ANY_SIGN, AT_LEAST, AT_MOST, DEBUG, DOUBLE, EOL, EXACTLY, INTEGER, NEGATIVE, NON_NULL, POSITIVE, STRICTLY_NEGATIVE, STRICTLY_POSITIVE, WHITE_SPACES, WHITE_SPACES_OR_EOL |
pool
private jpicedt.graphic.io.parser.Pool pool
vertAlign
private java.lang.String vertAlign
horAlign
private java.lang.String horAlign
rotation
private double rotation
rPutPoint
private jpicedt.graphic.PicPoint rPutPoint
hrArgument
private java.lang.StringBuffer hrArgument
RECTANGLE_BOX
public static final java.lang.String RECTANGLE_BOX
- See Also:
- Constant Field Values
CIRCLE_BOX
public static final java.lang.String CIRCLE_BOX
- See Also:
- Constant Field Values
OVAL_BOX
public static final java.lang.String OVAL_BOX
- See Also:
- Constant Field Values
PsRPutExpression
public PsRPutExpression(jpicedt.graphic.io.parser.Pool pl)
toString
public java.lang.String toString()
- Description copied from class:
java.lang.Object
- Convert this Object to a human-readable String.
There are no limits placed on how long this String
should be or what it should contain. We suggest you
make it as intuitive as possible to be able to place
it into System.out.println() 55
and such.
It is typical, but not required, to ensure that this method
never completes abruptly with a java.lang.RuntimeException.
This method will be called when performing string
concatenation with this object. If the result is
null
, string concatenation will instead
use "null"
.
The default implementation returns
getClass().getName() + "@" +
Integer.toHexString(hashCode())
.
action
public void action(jpicedt.graphic.io.parser.ParserEvent e)
- called when this SequenceExpression was successfully parsed -> reinit locals for next time