|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Envelope is a helper interface that represents an OGC-specified envelope, which is usually an aligned Minimum Bounding Rectangle of a geometry object.
Method Summary | |
java.lang.Object |
clone()
Clones this envelope to generate another envelope object. |
boolean |
contains(CoordPoint point)
Determines if this envelope object (MBR) contains the input coordinate point. |
boolean |
contains(double x,
double y)
Determines if this envelope object (MBR) contains the input (x, y) coordinate. |
boolean |
contains(Envelope envelope)
Determines if this envelope object (MBR) contains the input envelope. |
Envelope |
expand(CoordPoint point)
Expands this envelope object (MBR) to contain the input coordinate point. |
Envelope |
expand(double x,
double y)
Expands this envelope object (MBR) to contain the input coordinates. |
Envelope |
expand(Envelope envelope)
Expands this envelope object (MBR) to contain the input envelope. |
Envelope |
expandBy(double w,
double h)
Expands this envelope by w amount in X-axis (w/2 on each side); also expands by h amount in Y-axis (h/2 on each side). |
double |
getHeight()
Gets the height of this envelope (MBR). |
CoordPoint |
getLowerLeft()
Gets the lower-left coordinate point. |
void |
getLowerLeft(CoordPoint point)
Gets the lower-left coordinate point. |
double |
getMaxOrd(int i)
Gets the i-th ordinate of upper-right corner. |
double |
getMaxX()
Gets the x coordinate of upper-right corner. |
double |
getMaxY()
Gets the y coordinate of upper-right corner. |
double |
getMinOrd(int i)
Gets the i-th ordinate of lower-left corner. |
double |
getMinX()
Gets the x coordinate of lower-left corner. |
double |
getMinY()
Gets the y coordinate of lower-left corner. |
CoordPoint |
getUpperRight()
Gets the upper-right coordinate point. |
void |
getUpperRight(CoordPoint point)
Gets the upper-right coordinate point. |
double |
getWidth()
Gets the width of this envelope (MBR). |
boolean |
isEmpty()
Determines if this envelope (MBR) is empty, that is, if the lower-left corner has x, y coordinates greater than the x, y coordinates of the upper-right corner, respectively. |
boolean |
overlaps(Envelope envelope)
Determines if two envelopes (MBRs) overlap each other. |
Method Detail |
public double getMinX()
public double getMinY()
public double getMinOrd(int i)
i
- the 0-based index of the ordinates. For example,
i = 0 means the first dimension (or x by convention), etc.public double getMaxX()
public double getMaxY()
public double getMaxOrd(int i)
i
- the 0-based index of the ordinates. For example,
i = 0 means the first dimension (or x by convention), etc.public CoordPoint getLowerLeft()
public void getLowerLeft(CoordPoint point)
point
- a preallocated coordinate point that is to be filled with
the ordinates of the lower-left coordinate point.public CoordPoint getUpperRight()
public void getUpperRight(CoordPoint point)
point
- a preallocated coordinate point that is to be filled with
the ordinates of the upper-right coordinate point.public boolean isEmpty()
true
if this envelope is valid;
false
otherwisepublic double getWidth()
public double getHeight()
public boolean contains(CoordPoint point)
point
- the coordinate point to test containment againsttrue
if this envelope contains the input point;
false
otherwisepublic boolean contains(double x, double y)
x
- the x coordinate of the point to test containment againsty
- the y coordinate of the point to test containment againsttrue
if this envelope contains the input coordinate;
false
otherwisepublic boolean contains(Envelope envelope)
envelope
- the envelope to test containment againsttrue
if this envelope contains the input envelope;
false
otherwisepublic boolean overlaps(Envelope envelope)
envelope
- the envelope to test againsttrue
if this envelope overlaps with the input envelope;
false
otherwisepublic Envelope expand(CoordPoint point)
point
- the coordinate point to expand this envelopepublic Envelope expand(double x, double y)
x
- the x coordinate of the point to expand this envelopey
- the y coordinate of the point to expand this envelopepublic Envelope expand(Envelope envelope)
envelope
- the envelope to expand this envelopepublic Envelope expandBy(double w, double h)
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |