jpicedt.format.input.pstricks
Class PSTColorExpression
java.lang.Object
jpicedt.format.input.util.AbstractRegularExpression
jpicedt.format.input.util.SequenceExpression
jpicedt.format.input.pstricks.PSTColorExpression
public class PSTColorExpression
- extends 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.9 2013/03/31 06:55:34 vincentb1 Exp $
- Author:
- Sylvain Reynal
PSTColorExpression
public PSTColorExpression(Pool pl,
String tag,
PicAttributeName<Color> attributeName,
Pool.Key<PicAttributeSet> attributeSetKey)
- Parameters:
pl - parser's pooltag - LHS tag (e.g. "linecolor" or "fillcolor") for the StatementExpressionattributeName - name of attribute to modify (must be a predefined
PicAttributeName of type "Color")attributeSetKey - used to fetch the attribute set in which parsed parameters are stored.
Submit a bug : syd@jpicedt.org