http://www.jpicedt.org

jpicedt.format.input.pstricks
Class PSTPicPointExpression

java.lang.Object
  extended by jpicedt.format.input.util.AbstractRegularExpression
      extended by jpicedt.format.input.util.PicPointExpression
          extended by jpicedt.format.input.pstricks.PSTPicPointExpression
All Implemented Interfaces:
ExpressionConstants

public class PSTPicPointExpression
extends PicPointExpression
implements ExpressionConstants

an expression that parses "(x,y)" string (PsTricks-like PicPoint) and gives the corresponding numerical values to the point number "ptNumber" of the current Element, possibly using a given EditPointConstraint.

Since:
jpicedt 1.3.1
Version:
$Id: PSTPicPointExpression.java,v 1.5.2.1 2007/09/02 11:56:12 reynal Exp $
Author:
Sylvain Reynal
See Also:
Element.setPoint(int, jpicedt.graphic.PicPoint)

Field Summary
 
Fields inherited from interface jpicedt.format.input.util.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
PSTPicPointExpression(int ptNumber, EditPointConstraint constraint, Pool pl)
           
PSTPicPointExpression(int ptNumber, Pool pl)
          Initializes this expression with a "null" EditPointConstraint (= default constraint)
 
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.PicPointExpression
getPicPoint, interpret, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PSTPicPointExpression

public PSTPicPointExpression(int ptNumber,
                             Pool pl)
Initializes this expression with a "null" EditPointConstraint (= default constraint)


PSTPicPointExpression

public PSTPicPointExpression(int ptNumber,
                             EditPointConstraint constraint,
                             Pool pl)
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