comirva.visu.epsgraphics.objects
Class EpsClip
java.lang.Object
comirva.visu.epsgraphics.objects.EpsShape
comirva.visu.epsgraphics.objects.EpsClip
- All Implemented Interfaces:
- EpsObject
public class EpsClip
- extends EpsShape
This class represents an EpsClip.
It is used to redefine the clipping region
Constructor Summary |
EpsClip(int reset)
constructs an eps clip resetter. |
EpsClip(Shape shape)
construct a new eps clip region. |
EpsClip(Shape shape,
boolean intersect)
construct a new eps clip region. |
Method Summary |
boolean |
equals(Object obj)
|
String |
toEps()
returns a String that represents the object
in postscript code |
EpsClip
public EpsClip(Shape shape)
- construct a new eps clip region. The given shape is
intersected whith the current clip region
- Parameters:
shape
- the intersection of this shape with the current
clip region form together the new clip region
EpsClip
public EpsClip(Shape shape,
boolean intersect)
- construct a new eps clip region.
- Parameters:
shape
- The shape of the new regionintersect
- If this is true, the given shape is
intersected with the current clip, if false a totally
new clip region is defined
EpsClip
public EpsClip(int reset)
- constructs an eps clip resetter. If this constructor is used
it will just restore a clip region which was set previously
(works only for new regions (not for intersections!)
- Parameters:
reset
- reset to previous clip. The number defines the
amount (technically it specifies the amount of "grestores"
that are inserted)
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
- Overrides:
toEps
in class EpsShape
equals
public boolean equals(Object obj)
- Overrides:
equals
in class EpsShape