jpicedt.format.input.pstricks
Class PSTLengthParameter
java.lang.Object
jpicedt.format.input.util.AbstractRegularExpression
jpicedt.format.input.util.SequenceExpression
jpicedt.format.input.pstricks.PSTLengthParameter
public class PSTLengthParameter
- extends SequenceExpression
Parses statement involving length units (as set by PsTricks's "runit" register),
e.g. "linewidth=13mm" or "doublesep=5.6" (default to current "runit")
Numerical parsed value is pushed in the Pool's PicAttributeSet having the given key,
(after conversion to mm)
This expression contains a StatementExpression with parameters "DOUBLE" and "POSITIVE".
So far, this expression parses "cm", "mm" and "pt".
This expression MUST NOT be used to parse expressions that modify one of "xunit", "yunit" or "runit", since
it relies on the value of these registers to compute the actual length value in case no unit is present !!!
- Version:
- $Id: PSTLengthParameter.java,v 1.9 2013/03/31 06:55:19 vincentb1 Exp $
- Author:
- Sylvain Reynal
PSTLengthParameter
public PSTLengthParameter(Pool pl,
String tag,
PicAttributeName<Double> attributeName,
Pool.Key<PicAttributeSet> attributeSetKey)
- Parameters:
pl
- parser's pooltag
- LHS tag (e.g. "linewidth" or "doublesep") for the StatementExpressionattributeName
- name of attribute to modify (must be a predefined PicAttributeName of type "Double" or at least "Number")attributeSetKey
- used to fetch the attribute set in which parsed parameters are stored.
Submit a bug : syd@jpicedt.org