jpicedt.format.input.pstricks
Class PsPolygonExpression
java.lang.Object
jpicedt.format.input.util.AbstractRegularExpression
jpicedt.format.input.util.SequenceExpression
jpicedt.format.input.pstricks.PsPolygonExpression
public class PsPolygonExpression
- extends SequenceExpression
Parses \\pspolygon, \\psdots and \\psline commands :
- \\pspolygon[param](2,4)(3,15) // NO ARROW ALLOWED HERE !
- \\pspolygon*[param](5,1)(5,8)...(xN,yN)
- \\psline[param]{arrows}(5,1)(5,8)...(xN,yN)
- \\psline*[param]{arrows}(5,1)(5,8)...(xN,yN)
- \\psdots[param,dotstyle=style,dotscale=a b,dotangle=angle]{arrows}(5,1)(5,8)...(xN,yN)
- \\psdots*[param]{arrows}(5,1)(5,8)...(xN,yN) (same as above, '*' being unused)
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
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
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 DOTStag
- if null, default to shape
toString
public String toString()
- Overrides:
toString
in class SequenceExpression
Submit a bug : syd@jpicedt.org