public abstract class AbstractStyle extends Object implements IStyle
Modifier and Type | Class and Description |
---|---|
static class |
AbstractStyle.RegisterPersistence |
Modifier and Type | Field and Description |
---|---|
static String |
STYLE_PERSISTENCE_DEFINITION_NAME |
Constructor and Description |
---|
AbstractStyle() |
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Creates a copy of the object.
|
String |
getDescription()
Returns the description of a symbol
|
void |
loadFromState(PersistentState state)
Set the state of the object from the state passed as parameter.
|
void |
saveToState(PersistentState state)
Saves the internal state of the object on the provided
PersistentState object.
|
void |
setDescription(String desc)
Defines the description of a symbol.It will be specified with an
string.
|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
drawInsideRectangle, drawOutline, isSuitableFor
public static final String STYLE_PERSISTENCE_DEFINITION_NAME
public final void setDescription(String desc)
IStyle
setDescription
in interface IStyle
public final String getDescription()
IStyle
getDescription
in interface IStyle
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 void loadFromState(PersistentState state) throws PersistenceException
Persistent
loadFromState
in interface Persistent
PersistenceException
public void saveToState(PersistentState state) throws PersistenceException
Persistent
saveToState
in interface Persistent
PersistenceException