|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectAbstractEnvelope
public abstract class AbstractEnvelope
Base class for envelope implementations. This base class
provides default implementations for toString()
, equals(java.lang.Object)
and
hashCode()
methods.
This class do not holds any state. The decision to implement Serializable
or org.geotools.util.Cloneable
interfaces is left to implementors.
Constructor Summary | |
---|---|
protected |
AbstractEnvelope()
Constructs an envelope. |
Method Summary | |
---|---|
boolean |
equals(Object object)
Returns true if the specified object is also an envelope
with equals coordinates and CRS. |
DirectPosition |
getLowerCorner()
A coordinate position consisting of all the minimal ordinates. |
DirectPosition |
getUpperCorner()
A coordinate position consisting of all the maximal ordinates. |
int |
hashCode()
Returns a hash value for this envelope. |
String |
toString()
Returns a string representation of this envelope. |
Methods inherited from class Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface Envelope |
---|
getCoordinateReferenceSystem, getDimension, getMaximum, getMedian, getMinimum, getSpan |
Constructor Detail |
---|
protected AbstractEnvelope()
Method Detail |
---|
public DirectPosition getLowerCorner()
getLowerCorner
in interface Envelope
public DirectPosition getUpperCorner()
getUpperCorner
in interface Envelope
public String toString()
This string 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 CoordinateFormat
.
toString
in class Object
public int hashCode()
hashCode
in class Object
public boolean equals(Object object)
true
if the specified object is also an envelope
with equals coordinates and CRS.
equals
in class Object
object
- The object to compare with this envelope.
true
if the given object is equals to this envelope.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |