java.lang.Object
jpicedt.graphic.io.parser.AbstractRegularExpression
jpicedt.graphic.io.parser.SequenceExpression
jpicedt.format.pstricks.parser.PSTColorExpression
- All Implemented Interfaces:
- jpicedt.graphic.io.parser.ExpressionConstants
- public class PSTColorExpression
- extends jpicedt.graphic.io.parser.SequenceExpression
Used by PSTParametersExpression to parse statements involving colours, for instance
"linecolor=green" (predefined colour) or "fillcolor=MyGray" (user-defined colours).
If no pstricks's native colour matches the RHS, we fetch a HashMap from the Pool's hashtable
(value associated with key PstricksParser.KEY_USER_COLOURS) and look up the given colour ;
this HashMap may've been filled by UserDefinedColorExpression in the course of the parsing process.
- Version:
- $Id: PSTColorExpression.java,v 1.2 2002/08/05 16:44:10 reynal Exp $
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 |
pool
private jpicedt.graphic.io.parser.Pool pool
attribute
private jpicedt.graphic.model.PicAttributeName attribute
setKey
private jpicedt.graphic.io.parser.Pool.Key setKey
PSTColorExpression
public PSTColorExpression(jpicedt.graphic.io.parser.Pool pl,
java.lang.String tag,
jpicedt.graphic.model.PicAttributeName attributeName,
jpicedt.graphic.io.parser.Pool.Key attributeSetKey)