http://www.jpicedt.org

jpicedt.format.input.pstricks
Class PsPolygonExpression

java.lang.Object
  extended by jpicedt.format.input.util.AbstractRegularExpression
      extended by jpicedt.format.input.util.SequenceExpression
          extended by jpicedt.format.input.pstricks.PsPolygonExpression

public class PsPolygonExpression
extends SequenceExpression

Parses \\pspolygon, \\psdots and \\psline commands :

Note : PsPolygon -> close path ; PsLine -> open path ; PsDots -> dots only

Since:
jpicedt 1.3.2
Version:
$Id: PsPolygonExpression.java,v 1.9 2013/03/31 06:53:59 vincentb1 Exp $

Author:
Sylvain Reynal

Field Summary
static String DOTS
          parses a \\psdots command
static String LINE
          parses a \\psline command
static String POLYGON
          parses a \\pspolygon command
 
Constructor Summary
PsPolygonExpression(Pool pl, String type)
          Uses the given type as the default tag
PsPolygonExpression(Pool pl, String shape, String tag)
           
 
Method Summary
 String toString()
           
 
Methods inherited from class jpicedt.format.input.util.SequenceExpression
add, interpret
 
Methods inherited from class jpicedt.format.input.util.AbstractRegularExpression
action
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

POLYGON

public static final String POLYGON
parses a \\pspolygon command

See Also:
Constant Field Values

LINE

public static final String LINE
parses a \\psline command

See Also:
Constant Field Values

DOTS

public static final String DOTS
parses a \\psdots command

See Also:
Constant Field Values
Constructor Detail

PsPolygonExpression

public PsPolygonExpression(Pool pl,
                           String type)
Uses the given type as the default tag


PsPolygonExpression

public PsPolygonExpression(Pool pl,
                           String shape,
                           String tag)
Parameters:
shape - POLYGON, LINE or DOTS
tag - if null, default to shape
Method Detail

toString

public String toString()
Overrides:
toString in class SequenceExpression

http://www.jpicedt.org

Submit a bug : syd@jpicedt.org