|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object comirva.visu.epsgraphics.objects.EpsShape
public class EpsShape
This class encapsulates a general eps shape object. A shape object provides a path iterator which can be used for postscript code creation
Field Summary | |
---|---|
protected static String[] |
code
an array for the postscript codes |
protected boolean |
filled
specifies whether the shape should be filled or not |
protected static int[] |
params
an array specifying the amount of parameters for the codes |
protected Shape |
shape
the shape that should be drawn |
Constructor Summary | |
---|---|
EpsShape(Shape shape)
construct an eps shape. |
|
EpsShape(Shape shape,
boolean filled)
constructs an eps shape given by the parameters |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
Shape |
getShape()
|
boolean |
isFilled()
|
void |
setFilled(boolean filled)
|
void |
setShape(Shape shape)
|
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 |
---|
protected static final String[] code
protected static final int[] params
protected boolean filled
protected Shape shape
Constructor Detail |
---|
public EpsShape(Shape shape)
public EpsShape(Shape shape, boolean filled)
shape
- The shape representing the geometric objectfilled
- if true the shape will be filled, otherwise notMethod Detail |
---|
public String toEps()
EpsObject
toEps
in interface EpsObject
public boolean isFilled()
public void setFilled(boolean filled)
filled
- Set whether the shape should be filled or not.public Shape getShape()
public void setShape(Shape shape)
shape
- The shape to set.public boolean equals(Object obj)
equals
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |