http://www.jpicedt.org

jpicedt.format.input.pstricks
Class PSTAngleParameter

java.lang.Object
  extended by jpicedt.format.input.util.AbstractRegularExpression
      extended by jpicedt.format.input.util.StatementExpression
          extended by jpicedt.format.input.pstricks.PSTAngleParameter

public class PSTAngleParameter
extends StatementExpression

Used by PSTParametersExpression to parse statements involving angles, for instance "hatchangle=45" or "shadowangle=90".

Version:
$Id: PSTAngleParameter.java,v 1.9 2013/03/31 06:55:49 vincentb1 Exp $
Author:
Sylvain Reynal

Constructor Summary
PSTAngleParameter(Pool pl, String tag, PicAttributeName<Double> attributeName, Pool.Key<PicAttributeSet> attributeSetKey)
           
 
Method Summary
 void action(ParserEvent e)
          Called in the course of the interpret operation at the end of a SUCCESSFUL interpret operation.
 
Methods inherited from class jpicedt.format.input.util.StatementExpression
getValue, interpret, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PSTAngleParameter

public PSTAngleParameter(Pool pl,
                         String tag,
                         PicAttributeName<Double> attributeName,
                         Pool.Key<PicAttributeSet> attributeSetKey)
Parameters:
pl - parser's pool
tag - LHS tag (e.g. "hatchangle" or "shadowangle") 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.
Method Detail

action

public void action(ParserEvent e)
Description copied from class: AbstractRegularExpression
Called in the course of the interpret operation at the end of a SUCCESSFUL interpret operation. Should be overriden by daughter classes to process proper action, e.g. set Element's attributes… Current implementation does nothing, but sending a debugging string.

Overrides:
action in class AbstractRegularExpression

http://www.jpicedt.org

Submit a bug : syd@jpicedt.org