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

Quick Search    Search Deep

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

java.lang.Object
  extended byjpicedt.graphic.io.parser.AbstractRegularExpression
      extended byjpicedt.graphic.io.parser.SequenceExpression
          extended byjpicedt.format.pstricks.parser.PsPolygonExpression
All Implemented Interfaces:
jpicedt.graphic.io.parser.ExpressionConstants, jpicedt.graphic.model.PicObjectConstants

public class PsPolygonExpression
extends jpicedt.graphic.io.parser.SequenceExpression
implements jpicedt.graphic.model.PicObjectConstants

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

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

Version:
$Id: PsPolygonExpression.java,v 1.2 2002/08/05 16:44:10 reynal Exp $

Field Summary
static java.lang.String DOTS
           
static java.lang.String LINE
           
static java.lang.String POLYGON
           
private  jpicedt.graphic.io.parser.Pool pool
           
private  java.lang.String type
           
 
Fields inherited from class jpicedt.graphic.io.parser.SequenceExpression
 
Fields inherited from interface jpicedt.graphic.model.PicObjectConstants
CROSSHATCH, CROSSHATCH_FILLED, DASH_OPAQUE, DASH_TRANSPARENT, DASH1, DASH2, DASH3, DASHED, DIMEN, DOT_SEP, DOT_SEP1, DOT_SEP2, DOT_SEP3, DOTTED, DOUBLE_COLOR, DOUBLE_LINE, DOUBLE_SEP, FILL_COLOR, FILL_STYLE, HATCH_ANGLE, HATCH_COLOR, HATCH_SEP, HATCH_WIDTH, HLINES, HLINES_FILLED, INNER, LEFT_ARROW, LINE_COLOR, LINE_STYLE, LINE_WIDTH, MaxAttributeNameIndex, MIDDLE, NONE, OUTER, POLYGON_DOTS, POLYGON_SOLID, POLYGON_STYLE, PS_POINT, RIGHT_ARROW, SHADOW, SHADOW_ANGLE, SHADOW_COLOR, SHADOW_SIZE, SOLID, VLINES, VLINES_FILLED
 
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
PsPolygonExpression(jpicedt.graphic.io.parser.Pool pl, java.lang.String type)
          Uses the given type as the default tag
PsPolygonExpression(jpicedt.graphic.io.parser.Pool pl, java.lang.String shape, java.lang.String tag)
           
 
Method Summary
 java.lang.String toString()
          Convert this Object to a human-readable String.
 
Methods inherited from class jpicedt.graphic.io.parser.SequenceExpression
add, interpret
 
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

type

private java.lang.String type

POLYGON

public static final java.lang.String POLYGON
See Also:
Constant Field Values

LINE

public static final java.lang.String LINE
See Also:
Constant Field Values

DOTS

public static final java.lang.String DOTS
See Also:
Constant Field Values
Constructor Detail

PsPolygonExpression

public PsPolygonExpression(jpicedt.graphic.io.parser.Pool pl,
                           java.lang.String type)
Uses the given type as the default tag


PsPolygonExpression

public PsPolygonExpression(jpicedt.graphic.io.parser.Pool pl,
                           java.lang.String shape,
                           java.lang.String tag)
Method Detail

toString

public java.lang.String toString()
Description copied from class: java.lang.Object
Convert this Object to a human-readable String. There are no limits placed on how long this String should be or what it should contain. We suggest you make it as intuitive as possible to be able to place it into System.out.println() 55 and such.

It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.

This method will be called when performing string concatenation with this object. If the result is null, string concatenation will instead use "null".

The default implementation returns getClass().getName() + "@" + Integer.toHexString(hashCode()).