public class SelectionCellImpl extends java.lang.Object implements SelectionCell
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PERSISTENCE_DEFINITION_NAME |
Constructor and Description |
---|
SelectionCellImpl() |
Modifier and Type | Method and Description |
---|---|
void |
add(Cell cell) |
void |
clear() |
java.lang.Object |
clone()
Creates a copy of the object.
|
java.awt.geom.Rectangle2D |
getRectangle() |
Cell |
getStartCell() |
boolean |
isSelected(Cell cell) |
void |
loadFromState(PersistentState state)
Set the state of the object from the state passed as parameter.
|
static void |
registerPersistent() |
void |
saveToState(PersistentState state)
Saves the internal state of the object on the provided
PersistentState object.
|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
cloneQuietly, cloneQuietly
public static final java.lang.String PERSISTENCE_DEFINITION_NAME
public void add(Cell cell)
add
in interface SelectionCell
public boolean isSelected(Cell cell)
isSelected
in interface SelectionCell
public void clear()
clear
in interface SelectionCell
public Cell getStartCell()
getStartCell
in interface SelectionCell
public java.awt.geom.Rectangle2D getRectangle()
getRectangle
in interface SelectionCell
public static void registerPersistent()
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 java.lang.Object clone() throws java.lang.CloneNotSupportedException
Cloneable
clone
in class java.lang.Object
java.lang.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()}.