Class PsRPutExpression

  • All Implemented Interfaces:
    ExpressionConstants, PicObjectConstants

    public class PsRPutExpression
    extends SequenceExpression
    implements ExpressionConstants, PicObjectConstants
    Parses PsTricks's \\rput commands, either:
    • \\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, pure LaTeX commands (e.g. \\circle, \\vector,...)
    • [SR:pending] instanciate other elements + handle rotations.
    The parsing code sets the following Pool's key/value pairs (as set by the enclosing XXXPutExpression beforehands):
    • KEY_RPUT_VALIGN: \\rput's [bBt] vertical alignment parameter
    • KEY_RPUT_HALIGN: \\rput's [lr] horizontal alignment parameter
    • KEY_RPUT_POINT: \\rput's (x,y) parameter
    • KEY_RPUT_ROTATION: \\rput's {rotation} parameter
    These key/value pairs may then be used by client expression, e.g. PsBox, ...
    Since:
    jpicedt 1.3
    Version:
    $Id: PsRPutExpression.java,v 1.8.2.1 2007/09/02 11:56:12 reynal Exp $
    Author:
    Sylvain Reynal
    • Field Detail

      • KEY_RPUT_VALIGN

        public static final Pool.Key KEY_RPUT_VALIGN
        key entry in Pool containing the (x,y) parameter
      • KEY_RPUT_HALIGN

        public static final Pool.Key KEY_RPUT_HALIGN
        key entry in Pool containing the horizontal alignment parameter
      • KEY_RPUT_POINT

        public static final Pool.Key KEY_RPUT_POINT
        key entry in Pool containing the (x,y) parameter
      • KEY_RPUT_ROTATION

        public static final Pool.Key KEY_RPUT_ROTATION
        key entry in Pool containing the (x,y) parameter
    • Constructor Detail

      • PsRPutExpression

        public PsRPutExpression​(Pool pl)