|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 Object
public double getCenter(int dimension)
getCenter
in interface Envelope
dimension
- DOCUMENT ME!
public double getLength(int dimension)
getLength
in interface Envelope
dimension
-
public Point getLowerCorner()
getLowerCorner
in interface Envelope
public double getMaximum(int dimension)
getMaximum
in interface Envelope
dimension
-
public double getMinimum(int dimension)
getMinimum
in interface Envelope
dimension
-
public Point getUpperCorner()
getUpperCorner
in interface Envelope
public void add(Envelope envelope)
Envelope
add
in interface Envelope
envelope
- The envelope to add.public Geometry getGeometry()
Envelope
getGeometry
in interface Envelope
public boolean contains(Envelope envelope)
Envelope
true
if the new envelope is contained in the
current envelope.
contains
in interface Envelope
envelope
- The envelope to compare.
public boolean intersects(Envelope envelope)
Envelope
true
if the new envelope intersects with the
current envelope.
intersects
in interface Envelope
envelope
- The envelope to compare.
public boolean equals(Object other)
equals
in class Object
public void setLowerCorner(Point lowerCorner)
Envelope
setLowerCorner
in interface Envelope
lowerCorner
- The lower corner.public void setUpperCorner(Point upperCorner)
Envelope
setUpperCorner
in interface Envelope
public static void registerPersistent()
public void loadFromState(PersistentState state) throws PersistenceException
loadFromState
in interface Persistent
PersistenceException
public void saveToState(PersistentState state) throws PersistenceException
saveToState
in interface Persistent
PersistenceException
public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public boolean isEmpty()
Envelope
null
or not. Is
Empty means that the lower and upper corner are
null
.
isEmpty
in interface Envelope
null
or not if is empty.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |