Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

jpicedt.graphic.io.parser.pstricks
Class PSTLengthParameter  view PSTLengthParameter download PSTLengthParameter.java

java.lang.Object
  extended byjpicedt.graphic.io.parser.AbstractRegularExpression
      extended byjpicedt.graphic.io.parser.SequenceExpression
          extended byjpicedt.graphic.io.parser.pstricks.PSTLengthParameter
All Implemented Interfaces:
jpicedt.graphic.io.parser.ExpressionConstants, jpicedt.graphic.model.PicObjectConstants

public class PSTLengthParameter
extends jpicedt.graphic.io.parser.SequenceExpression
implements jpicedt.graphic.model.PicObjectConstants

Every 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 (after conversion to mm) in currentObj.attributeSet or in pool.ltx.attributeSet, depending on "pushInPool" flag. 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 !!!


Field Summary
private  jpicedt.graphic.model.PicAttributeName attribute
           
private  jpicedt.graphic.io.parser.LaTeXParser.Pool pool
           
private  boolean pushInObject
           
private  double val
           
 
Fields inherited from class jpicedt.graphic.io.parser.SequenceExpression
 
Fields inherited from interface jpicedt.graphic.model.PicObjectConstants
CROSSHATCH, CROSSHATCH_FILLED, DASH_OPAQUE, DASH_TRANSPARENT, DASH1, DASH2, DASH3, DASHED, DIMEN, DOT_SEP, DOT_SEP1, DOT_SEP2, DOT_SEP3, DOTTED, DOUBLE_COLOR, DOUBLE_LINE, DOUBLE_SEP, FILL_COLOR, FILL_STYLE, HATCH_ANGLE, HATCH_COLOR, HATCH_SEP, HATCH_WIDTH, HLINES, HLINES_FILLED, INNER, LEFT_ARROW, LINE_COLOR, LINE_STYLE, LINE_WIDTH, MaxAttributeNameIndex, MIDDLE, NONE, OUTER, POLYGON_DOTS, POLYGON_SOLID, POLYGON_STYLE, PS_POINT, RIGHT_ARROW, SHADOW, SHADOW_ANGLE, SHADOW_COLOR, SHADOW_SIZE, SOLID, VLINES, VLINES_FILLED
 
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
 
Constructor Summary
PSTLengthParameter(jpicedt.graphic.io.parser.LaTeXParser.Pool pl, java.lang.String tag, jpicedt.graphic.model.PicAttributeName attributeName, boolean pushInPool)
           
 
Methods inherited from class jpicedt.graphic.io.parser.SequenceExpression
add, interpret, toString
 
Methods inherited from class jpicedt.graphic.io.parser.AbstractRegularExpression
action
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

pool

private jpicedt.graphic.io.parser.LaTeXParser.Pool pool

attribute

private jpicedt.graphic.model.PicAttributeName attribute

pushInObject

private boolean pushInObject

val

private double val
Constructor Detail

PSTLengthParameter

public PSTLengthParameter(jpicedt.graphic.io.parser.LaTeXParser.Pool pl,
                          java.lang.String tag,
                          jpicedt.graphic.model.PicAttributeName attributeName,
                          boolean pushInPool)