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
NullEnvelopeExceptionpublic Geometry getAsGeometry()
public void setNonRotatedEnvelope(Envelope env) throws NullEnvelopeException
NullEnvelopeExceptionpublic double getRotation()
public Envelope getNonRotatedEnvelope()
public void setRotation(double rot)
public void addNonRotatedEnvelope(Envelope env) throws NullEnvelopeException
NullEnvelopeExceptionpublic void saveToState(PersistentState state) throws PersistenceException
PersistentsaveToState in interface PersistentPersistenceExceptionpublic void loadFromState(PersistentState state) throws PersistenceException
PersistentloadFromState in interface PersistentPersistenceExceptionpublic static void registerPersistent()
public Object clone() throws CloneNotSupportedException
Cloneableclone in class ObjectCloneNotSupportedException - 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)