| java.lang.Object org.geotools.geometry.AbstractEnvelope
All known Subclasses: org.geotools.geometry.GeneralEnvelope,
AbstractEnvelope | abstract public class AbstractEnvelope implements Envelope(Code) | | Base class for
implementations. This base class
provides default implementations for
AbstractEnvelope.toString ,
AbstractEnvelope.equals and
AbstractEnvelope.hashCode methods.
This class do not holds any state. The decision to implement
java.io.Serializable or
org.geotools.util.Cloneable interfaces is left to implementors.
since: 2.4 version: $Id: AbstractEnvelope.java 26137 2007-07-03 17:59:44Z desruisseaux $ author: Martin Desruisseaux |
Method Summary | |
public boolean | equals(Object object) Returns
true if the specified object is also an
with equals coordinates and
. | static CoordinateReferenceSystem | getCoordinateReferenceSystem(DirectPosition minDP, DirectPosition maxDP) Returns the common CRS of specified points.
Parameters: minDP - The first position. Parameters: maxDP - The second position. | public DirectPosition | getLowerCorner() A coordinate position consisting of all the
. | public DirectPosition | getUpperCorner() A coordinate position consisting of all the
. | public int | hashCode() Returns a hash value for this envelope. | public String | toString() Returns a string representation of this envelope. | static String | toString(Envelope envelope) Formats the specified envelope. |
AbstractEnvelope | protected AbstractEnvelope()(Code) | | Constructs an envelope.
|
equals | public boolean equals(Object object)(Code) | | Returns
true if the specified object is also an
with equals coordinates and
.
object |
getCoordinateReferenceSystem | static CoordinateReferenceSystem getCoordinateReferenceSystem(DirectPosition minDP, DirectPosition maxDP) throws MismatchedReferenceSystemException(Code) | | Returns the common CRS of specified points.
Parameters: minDP - The first position. Parameters: maxDP - The second position. Their common CRS, or null if none. throws: MismatchedReferenceSystemException - if the two positions don't use the same CRS. |
getLowerCorner | public DirectPosition getLowerCorner()(Code) | | A coordinate position consisting of all the
.
The default implementation returns a direct position backed by this envelope, so changes
in this envelope will be immediately reflected in the direct position.
The lower corner. |
getUpperCorner | public DirectPosition getUpperCorner()(Code) | | A coordinate position consisting of all the
.
The default implementation returns a direct position backed by this envelope, so changes
in this envelope will be immediately reflected in the direct position.
The upper corner. |
hashCode | public int hashCode()(Code) | | Returns a hash value for this envelope.
|
toString | public String toString()(Code) | | Returns a string representation of this envelope. The default implementation is okay
for occasional formatting (for example for debugging purpose). But if there is a lot
of envelopes to format, users will get more control by using their own instance of
org.geotools.measure.CoordinateFormat .
|
toString | static String toString(Envelope envelope)(Code) | | Formats the specified envelope.
|
|
|