public class RotatedEnvelope extends Object implements Persistent, Cloneable
Modifier and Type | Field and Description |
---|---|
static String |
PERSISTENCE_DEFINITION_NAME |
Constructor and Description |
---|
RotatedEnvelope() |
Modifier and Type | Method and Description |
---|---|
void |
addNonRotatedEnvelope(Envelope env) |
Object |
clone()
Creates a copy of the object.
|
Geometry |
getAsGeometry() |
Envelope |
getEnvelope() |
Envelope |
getNonRotatedEnvelope() |
static RotatedEnvelope |
getRotatedEnvelope(Envelope env,
double rot) |
double |
getRotation() |
void |
loadFromState(PersistentState state)
Set the state of the object from the state passed as parameter.
|
void |
move(double dx,
double dy) |
static void |
registerPersistent() |
void |
saveToState(PersistentState state)
Saves the internal state of the object on the provided
PersistentState object.
|
void |
setNonRotatedEnvelope(Envelope env) |
void |
setRotation(double rot) |
public static final String PERSISTENCE_DEFINITION_NAME
public static RotatedEnvelope getRotatedEnvelope(Envelope env, double rot) throws NullEnvelopeException
NullEnvelopeException
public Geometry getAsGeometry()
public void setNonRotatedEnvelope(Envelope env) throws NullEnvelopeException
NullEnvelopeException
public double getRotation()
public Envelope getNonRotatedEnvelope()
public void setRotation(double rot)
public void addNonRotatedEnvelope(Envelope env) throws NullEnvelopeException
NullEnvelopeException
public void saveToState(PersistentState state) throws PersistenceException
Persistent
saveToState
in interface Persistent
PersistenceException
public void loadFromState(PersistentState state) throws PersistenceException
Persistent
loadFromState
in interface Persistent
PersistenceException
public static void registerPersistent()
public Object clone() throws CloneNotSupportedException
Cloneable
clone
in class Object
CloneNotSupportedException
- if the instance of the object cannot
be cloned. As this is extending Cloneable
so
its sure it implements it, so this exception may be used for problems
on specific object instances.Object#clone()}.
public Envelope getEnvelope()
public void move(double dx, double dy)