plugins.adufour.vars.lang
Class VarPoint5D
java.lang.Object
plugins.adufour.vars.lang.Var<icy.type.point.Point5D>
plugins.adufour.vars.lang.VarPoint5D
- All Implemented Interfaces:
- icy.file.xml.XMLPersistent, VarListener<icy.type.point.Point5D>
public class VarPoint5D
- extends Var<icy.type.point.Point5D>
Constructor Summary |
VarPoint5D(java.lang.String name)
|
VarPoint5D(java.lang.String name,
icy.type.point.Point5D defaultValue)
|
Method Summary |
VarEditor<icy.type.point.Point5D> |
createVarEditor()
Creates a new VarEditor object that allows the user to graphically adjust the value
of this variable. |
java.lang.String |
getValueAsString()
|
icy.type.point.Point5D |
parse(java.lang.String text)
Parses the given String into the current type |
Methods inherited from class plugins.adufour.vars.lang.Var |
addListener, createVarViewer, fireVariableChanged, fireVariableChanged, getDefaultEditorModel, getDefaultValue, getIterableReferrers, getName, getReference, getReferencingPolicy, getReferrers, getType, getTypeAsString, getValue, getValue, getValueAsString, isAssignableFrom, isEnabled, isOptional, isReferenced, loadFromXML, prettyPrint, referenceChanged, removeListener, removeListeners, saveToXML, setDefaultEditorModel, setEnabled, setOptional, setReference, setReferencingPolicy, setValue, toString, valueChanged |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
VarPoint5D
public VarPoint5D(java.lang.String name)
VarPoint5D
public VarPoint5D(java.lang.String name,
icy.type.point.Point5D defaultValue)
throws java.lang.NullPointerException
- Throws:
java.lang.NullPointerException
createVarEditor
public VarEditor<icy.type.point.Point5D> createVarEditor()
- Description copied from class:
Var
- Creates a new
VarEditor
object that allows the user to graphically adjust the value
of this variable. By default this editor is an empty label for generic types, but this method
can be overridden to provide a custom editor.
- Overrides:
createVarEditor
in class Var<icy.type.point.Point5D>
- Returns:
- the variable editor embarking the graphical component
parse
public icy.type.point.Point5D parse(java.lang.String text)
- Description copied from class:
Var
- Parses the given String into the current type
- Overrides:
parse
in class Var<icy.type.point.Point5D>
- Returns:
- The variable value corresponding to the given string
getValueAsString
public java.lang.String getValueAsString()
- Overrides:
getValueAsString
in class Var<icy.type.point.Point5D>
- Returns:
- a pretty-printed text representation of the variable's local value (referenced
variables are not followed). This text is used to display the value (e.g. in a
graphical interface) or store the value into XML files. Overriding implementations
should make sure that the result of this method is compatible with the
Var.parse(String)
method to ensure proper reloading from XML files.