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

Quick Search    Search Deep

jpicedt.format.pstricks.parser
Class PSTColorExpression  view PSTColorExpression download PSTColorExpression.java

java.lang.Object
  extended byjpicedt.graphic.io.parser.AbstractRegularExpression
      extended byjpicedt.graphic.io.parser.SequenceExpression
          extended byjpicedt.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 $

Nested Class Summary
private  class PSTColorExpression.ParseColorValue
           
 
Field Summary
private  jpicedt.graphic.model.PicAttributeName attribute
           
private  jpicedt.graphic.io.parser.Pool pool
           
private  jpicedt.graphic.io.parser.Pool.Key setKey
           
 
Fields inherited from class jpicedt.graphic.io.parser.SequenceExpression
 
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
PSTColorExpression(jpicedt.graphic.io.parser.Pool pl, java.lang.String tag, jpicedt.graphic.model.PicAttributeName attributeName, jpicedt.graphic.io.parser.Pool.Key attributeSetKey)
           
 
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.Pool pool

attribute

private jpicedt.graphic.model.PicAttributeName attribute

setKey

private jpicedt.graphic.io.parser.Pool.Key setKey
Constructor Detail

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)