|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgistoolkit.features.Envelope
Class to represent a 2 dimensional rectangular area in space.
This class is immutable, and can not be changed after instantiated. To create an envelope that can be changed, create an EnvelopeBuffer from the shapeutils package, and use it for dynamic expansions and contractions of envelopes.
Constructor Summary | |
Envelope(double inMinX,
double inMinY,
double inMaxX,
double inMaxY)
Create a new Envelope with the given values. |
Method Summary | |
java.lang.Object |
clone()
Create a copy of the envelope. |
boolean |
contains(double inX,
double inY)
Determines if the point sent in is within the current envelope. |
boolean |
contains(Envelope inEnvelope)
Determines if the Extents sent in is within the current Extents. |
double |
getHeight()
Returns the height of this envelope |
double |
getMaxX()
Returns the maximum X coordinate. |
double |
getMaxY()
Returns the maximum Y coordinate. |
double |
getMinX()
Returns the minimum X coordinate. |
double |
getMinY()
Returns the minimum Y coordinate. |
Envelope |
getOverlap(Envelope inEnvelope)
Return the overlap of these two extents, returns null if they do not overap. |
Polygon |
getPolygon()
Return the polygon for this Shape. |
double |
getWidth()
Returns the width of this envelope |
boolean |
intersects(Envelope inEnvelope)
Determines if the Extents sent in overlap the current extents. |
boolean |
isEqual(Envelope inEnvelope)
Check if the two envelopes are equal. |
boolean |
overlaps(Envelope inEnvelope)
Determines if the Extents sent in is within the current Extents. |
java.lang.String |
toString()
The to string method for debugging. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Envelope(double inMinX, double inMinY, double inMaxX, double inMaxY)
Method Detail |
public double getMinX()
public double getMaxX()
public double getMinY()
public double getMaxY()
public double getWidth()
public double getHeight()
public java.lang.Object clone()
public boolean isEqual(Envelope inEnvelope)
public boolean overlaps(Envelope inEnvelope)
public Envelope getOverlap(Envelope inEnvelope)
public boolean intersects(Envelope inEnvelope)
public boolean contains(Envelope inEnvelope)
public boolean contains(double inX, double inY)
public Polygon getPolygon()
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |