|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jcckit.graphic.ClippingRectangle
Immutable class of a rectangular clipping area.
Constructor Summary | |
ClippingRectangle(double x1,
double y1,
double x2,
double y2)
Creates an instance for the specified coordinates of two opposite corner points. |
Method Summary | |
ClippingRectangle |
getBoundingBox()
Returns this instance. |
BasicGraphicalElement |
getGraphicalElement()
Returns a Rectangle . |
double |
getMaxX()
Returns the maximum x value. |
double |
getMaxY()
Returns the maximum y value. |
double |
getMinX()
Returns the minimum x value. |
double |
getMinY()
Returns the minimum y value. |
boolean |
isInside(GraphPoint point)
Returns true if the specified point is inside this rectangle. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ClippingRectangle(double x1, double y1, double x2, double y2)
Method Detail |
public boolean isInside(GraphPoint point)
isInside
in interface ClippingShape
public double getMinX()
public double getMaxX()
public double getMinY()
public double getMaxY()
public ClippingRectangle getBoundingBox()
getBoundingBox
in interface ClippingShape
public BasicGraphicalElement getGraphicalElement()
Rectangle
.
getGraphicalElement
in interface ClippingShape
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |