comirva.visu.epsgraphics.objects
Class EpsClip

java.lang.Object
  extended by comirva.visu.epsgraphics.objects.EpsShape
      extended by 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


Field Summary
 
Fields inherited from class comirva.visu.epsgraphics.objects.EpsShape
code, filled, params, shape
 
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
 
Methods inherited from class comirva.visu.epsgraphics.objects.EpsShape
getShape, isFilled, setFilled, setShape
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 region
intersect - 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)
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
Overrides:
toEps in class EpsShape

equals

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