public class ClippingRectangle extends Object implements ClippingShape
Constructor and Description |
---|
ClippingRectangle(double x1,
double y1,
double x2,
double y2)
Creates an instance for the specified coordinates of
two opposite corner points.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public ClippingRectangle(double x1, double y1, double x2, double y2)
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
Copyright © 2016. All Rights Reserved.