public class PsUnitLengthExpression extends SequenceExpression implements ExpressionConstants
Parsed value are stored in Pool's hashtable using PstricksParser.KEY_X_UNIT and related keys.
Note that default PsTricks's unit is 1cm ! (whereas jPicEdt default unit is 1mm) hence no unit leads to pstXunit = 0.1, etc...
Allowed syntaxs are : "0.11" (i.e. cm), "0.11mm", "0.11cm", "0.11pt"
According to PsTricks's doc, whitespaces are allowed ONLY after the comma (see PsTricks doc. page 6), though here we use a StatementExpression which swallows them, which makes it less stringent.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
RUNIT |
static java.lang.String |
UNIT |
static java.lang.String |
XUNIT |
static java.lang.String |
YUNIT |
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
Constructor and Description |
---|
PsUnitLengthExpression(Pool pl,
java.lang.String type)
unit actually sets the following three parameters : xunit, yunit, and runit.
|
add, interpret, toString
action
public static final java.lang.String XUNIT
public static final java.lang.String YUNIT
public static final java.lang.String RUNIT
public static final java.lang.String UNIT
public PsUnitLengthExpression(Pool pl, java.lang.String type)
type
- XUNIT, YUNIT,...Submit a bug : syd@jpicedt.org