|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gvsig.fmap.geom.primitive.impl.DefaultEnvelope
public abstract class DefaultEnvelope
A minimum bounding box or rectangle. Regardless of dimension, an Envelope can be represented without ambiguity as two direct positions (coordinate points). To encode an Envelope, it is sufficient to encode these two points. This is consistent with all of the data types in this specification, their state is represented by their publicly accessible attributes.
| Field Summary | |
|---|---|
protected boolean |
isEmpty
|
protected static String |
LOWERCORNER_FIELD
|
protected static GeometryManager |
manager
|
protected Point |
max
|
protected Point |
min
|
static String |
PERSISTENCE_DEFINITION_NAME
|
protected static String |
UPPERCORNER_FIELD
|
| Constructor Summary | |
|---|---|
DefaultEnvelope()
|
|
DefaultEnvelope(Point min,
Point max)
|
|
| Method Summary | |
|---|---|
void |
add(Envelope envelope)
Adds a envelope to the current envelope. |
Object |
clone()
|
boolean |
contains(Envelope envelope)
Returns true if the new envelope is contained in the
current envelope. |
boolean |
equals(Object other)
|
double |
getCenter(int dimension)
Returns the center ordinate along the specified dimension. |
Geometry |
getGeometry()
It returns the equivalent of an envelope like a geometry. |
double |
getLength(int dimension)
Returns the envelope length along the specified dimension. |
Point |
getLowerCorner()
A coordinate position consisting of all the minimal ordinates for each dimension for all points within the Envelope. |
double |
getMaximum(int dimension)
Returns the maximal ordinate along the specified dimension. |
double |
getMinimum(int dimension)
Returns the minimal ordinate along the specified dimension. |
Point |
getUpperCorner()
A coordinate position consisting of all the maximal ordinates for each dimension for all points within the Envelope. |
boolean |
intersects(Envelope envelope)
Returns true if the new envelope intersects with the
current envelope. |
boolean |
isEmpty()
Gets if the envelope is null or not. |
void |
loadFromState(PersistentState state)
|
static void |
registerPersistent()
|
void |
saveToState(PersistentState state)
|
void |
setLowerCorner(Point lowerCorner)
Sets the coordinate position consisting of all the minimal ordinates for each dimension for all points within the Envelope. |
void |
setUpperCorner(Point upperCorner)
Sets the coordinate position consisting of all the maximal ordinates for each dimension for all points within the Envelope. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.gvsig.fmap.geom.primitive.Envelope |
|---|
convert, getDimension |
| Field Detail |
|---|
public static final String PERSISTENCE_DEFINITION_NAME
protected static final String LOWERCORNER_FIELD
protected static final String UPPERCORNER_FIELD
protected Point min
protected Point max
protected boolean isEmpty
protected static GeometryManager manager
| Constructor Detail |
|---|
public DefaultEnvelope()
public DefaultEnvelope(Point min,
Point max)
| Method Detail |
|---|
public String toString()
toString in class Objectpublic double getCenter(int dimension)
getCenter in interface Envelopedimension - DOCUMENT ME!
public double getLength(int dimension)
getLength in interface Envelopedimension -
public Point getLowerCorner()
getLowerCorner in interface Envelopepublic double getMaximum(int dimension)
getMaximum in interface Envelopedimension -
public double getMinimum(int dimension)
getMinimum in interface Envelopedimension -
public Point getUpperCorner()
getUpperCorner in interface Envelopepublic void add(Envelope envelope)
Envelope
add in interface Envelopeenvelope - The envelope to add.public Geometry getGeometry()
Envelope
getGeometry in interface Envelopepublic boolean contains(Envelope envelope)
Envelopetrue if the new envelope is contained in the
current envelope.
contains in interface Envelopeenvelope - The envelope to compare.
public boolean intersects(Envelope envelope)
Envelopetrue if the new envelope intersects with the
current envelope.
intersects in interface Envelopeenvelope - The envelope to compare.
public boolean equals(Object other)
equals in class Objectpublic void setLowerCorner(Point lowerCorner)
Envelope
setLowerCorner in interface EnvelopelowerCorner - The lower corner.public void setUpperCorner(Point upperCorner)
Envelope
setUpperCorner in interface Envelopepublic static void registerPersistent()
public void loadFromState(PersistentState state)
throws PersistenceException
loadFromState in interface PersistentPersistenceException
public void saveToState(PersistentState state)
throws PersistenceException
saveToState in interface PersistentPersistenceException
public Object clone()
throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionpublic boolean isEmpty()
Envelopenull or not. Is
Empty means that the lower and upper corner are
null.
isEmpty in interface Envelopenull or not if is empty.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||