http://www.jpicedt.org

jpicedt.format.input.pstricks
Class PSTLengthParameter

java.lang.Object
  extended by jpicedt.format.input.util.AbstractRegularExpression
      extended by jpicedt.format.input.util.SequenceExpression
          extended by 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

Constructor Summary
PSTLengthParameter(Pool pl, String tag, PicAttributeName<Double> attributeName, Pool.Key<PicAttributeSet> attributeSetKey)
           
 
Method Summary
 
Methods inherited from class jpicedt.format.input.util.SequenceExpression
add, interpret, toString
 
Methods inherited from class jpicedt.format.input.util.AbstractRegularExpression
action
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PSTLengthParameter

public PSTLengthParameter(Pool pl,
                          String tag,
                          PicAttributeName<Double> attributeName,
                          Pool.Key<PicAttributeSet> attributeSetKey)
Parameters:
pl - parser's pool
tag - LHS tag (e.g. "linewidth" or "doublesep") for the StatementExpression
attributeName - 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.

http://www.jpicedt.org

Submit a bug : syd@jpicedt.org