| Constructor and Description |
|---|
DisplayPosition()
Constructs an uninitialized display position.
|
DisplayPosition(String name,
double[] matrix)
Constructs a display position.
|
| Modifier and Type | Method and Description |
|---|---|
void |
discard()
Called when this object is being discarded in favor of another object with
a matching state.
|
double[] |
getMatrix()
Gets the position's description.
|
String |
getName()
Gets the positions's name.
|
void |
initState(Dynamic dyn)
Modifies this object's state to match that of the given object.
|
boolean |
isCompatible(Dynamic dyn)
Tests whether the given dynamic object can be used as an argument to
initState, for initializing this dynamic object.
|
boolean |
matches(Dynamic dyn)
Tests whether two dynamic objects have matching states.
|
void |
restoreState(Element el)
Restores the current state from the given DOM element ("DisplayPosition").
|
void |
saveState(Element el)
Writes the current state to the given DOM element ("Capture").
|
String |
toString()
Gets the position's string representation (name).
|
public DisplayPosition()
public DisplayPosition(String name, double[] matrix)
public String toString()
public String getName()
public double[] getMatrix()
public boolean matches(Dynamic dyn)
public boolean isCompatible(Dynamic dyn)
isCompatible in interface Dynamicpublic void initState(Dynamic dyn)
public void discard()
public void saveState(Element el) throws SaveException
saveState in interface SaveableSaveExceptionpublic void restoreState(Element el) throws SaveException
restoreState in interface SaveableSaveExceptionCopyright © 2015–2022 SciJava. All rights reserved.