plugins.adufour.vars.lang
Class VarROIArray

java.lang.Object
  extended by plugins.adufour.vars.lang.Var<A>
      extended by plugins.adufour.vars.lang.VarGenericArray<T[]>
          extended by plugins.adufour.vars.lang.VarArray<icy.roi.ROI>
              extended by plugins.adufour.vars.lang.VarROIArray
All Implemented Interfaces:
icy.file.xml.XMLPersistent, java.lang.Iterable<icy.roi.ROI>, ArrayType, VarListener<icy.roi.ROI[]>

public class VarROIArray
extends VarArray<icy.roi.ROI>


Field Summary
 
Fields inherited from class plugins.adufour.vars.lang.Var
listeners, NO_VALUE, type, XML_KEY_ID
 
Constructor Summary
VarROIArray(java.lang.String name)
           
 
Method Summary
 java.lang.String getValueAsString()
           
 icy.roi.ROI[] parse(java.lang.String input)
          Parses the given String into the current type
 
Methods inherited from class plugins.adufour.vars.lang.VarArray
add, iterator
 
Methods inherited from class plugins.adufour.vars.lang.VarGenericArray
getDimensions, getInnerType, getSeparator, getValue, isAssignableFrom, parseComponent, size, size
 
Methods inherited from class plugins.adufour.vars.lang.Var
addListener, createVarEditor, createVarViewer, fireVariableChanged, fireVariableChanged, getDefaultEditorModel, getDefaultValue, getIterableReferrers, getName, getReference, getReferencingPolicy, getReferrers, getType, getTypeAsString, getValue, getValueAsString, 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
 

Constructor Detail

VarROIArray

public VarROIArray(java.lang.String name)
Method Detail

getValueAsString

public java.lang.String getValueAsString()
Overrides:
getValueAsString in class Var<icy.roi.ROI[]>
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 parse(String) method to ensure proper reloading from XML files.

parse

public icy.roi.ROI[] parse(java.lang.String input)
Description copied from class: Var
Parses the given String into the current type

Overrides:
parse in class VarGenericArray<icy.roi.ROI[]>
Returns:
The variable value corresponding to the given string