comirva.visu.epsgraphics.objects
Class EpsPath

java.lang.Object
  extended by comirva.visu.epsgraphics.objects.EpsPath
All Implemented Interfaces:
EpsObject

public class EpsPath
extends Object
implements EpsObject

this class represents a general eps path. An eps path consits of two arrays, one for the x values, the other for the y values.


Field Summary
protected  boolean closed
          true if the path should be closed
protected  boolean filled
          true if the path should be filled
protected  double[] xpoints
          x coordinates of the points
protected  double[] ypoints
          y coordinates of the points
 
Constructor Summary
EpsPath()
          construct a default path (1 point, not closed, not filled
EpsPath(double[] px, double[] py)
          construct a path from the given points, not closed, not filled
EpsPath(double[] px, double[] py, boolean closed)
          construct a path from given points, not filled
EpsPath(double[] px, double[] py, boolean closed, boolean filled)
          construct a path from given points
 
Method Summary
 boolean equals(Object obj)
           
 String toEps()
          returns a String that represents the object in postscript code
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

xpoints

protected double[] xpoints
x coordinates of the points


ypoints

protected double[] ypoints
y coordinates of the points


closed

protected boolean closed
true if the path should be closed


filled

protected boolean filled
true if the path should be filled

Constructor Detail

EpsPath

public EpsPath()
construct a default path (1 point, not closed, not filled


EpsPath

public EpsPath(double[] px,
               double[] py)
construct a path from the given points, not closed, not filled


EpsPath

public EpsPath(double[] px,
               double[] py,
               boolean closed)
construct a path from given points, not filled


EpsPath

public EpsPath(double[] px,
               double[] py,
               boolean closed,
               boolean filled)
construct a path from given points

Method Detail

toEps

public String toEps()
Description copied from interface: EpsObject
returns a String that represents the object in postscript code

Specified by:
toEps in interface EpsObject

equals

public boolean equals(Object obj)
Overrides:
equals in class Object