parameter
Class ParameterizedObjectAdaptor

java.lang.Object
  extended bymotris.data.Description
      extended byparameter.ParameterizedObjectAdaptor
All Implemented Interfaces:
ParameterizedObject
Direct Known Subclasses:
Actor, Algorithm, AlgorithmFactory, CarDynamicModelPece, ColorizedLayer, GrayValueDistribution, ImageSequenceData, LayerList, LayerViewer.PixelDetailsEmitter, Logger, MaskComputation, RigidDynamicModel, RigidModel, ScriptInterpreter, State, VolumeRepresentation

public class ParameterizedObjectAdaptor
extends Description
implements ParameterizedObject

Convenience class for parameterized, named objects with the add/remove/fireParameterChanged functionality implemented

Author:
Hendrik Dahlkamp

Nested Class Summary
 
Nested classes inherited from class parameter.ParameterizedObject
ParameterizedObject.ParameterChangedListener, ParameterizedObject.ParameterizedObjectManager
 
Field Summary
protected  java.util.Vector parameterChangedNotifyList
           
 
Fields inherited from class motris.data.Description
 
Constructor Summary
ParameterizedObjectAdaptor()
           
ParameterizedObjectAdaptor(java.lang.String _n, java.lang.String _d)
           
ParameterizedObjectAdaptor(java.lang.String _i, java.lang.String _n, java.lang.String _d)
           
 
Method Summary
 boolean addParameterChangedListener(ParameterizedObject.ParameterChangedListener l)
          Register dependent component that wants to be notified if this object changes parameters
protected  void finalize()
           
 void fireParameterChanged()
           
 ParameterSet getParameters()
          Get a Vector of Strings with a description of each Parameter
 boolean parameterEdited(ParameterSet editedParams)
          Notify when Parameter set was changed during edit
 boolean removeParameterChangedListener(ParameterizedObject.ParameterChangedListener l)
          un-register dependent object
 boolean setParameters(ParameterSet _params)
          Set Parameters of this class
 
Methods inherited from class motris.data.Description
getDescription, getIdentifier, getName, setDescription, setIdentifier, setName
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parameterChangedNotifyList

protected java.util.Vector parameterChangedNotifyList
Constructor Detail

ParameterizedObjectAdaptor

public ParameterizedObjectAdaptor()

ParameterizedObjectAdaptor

public ParameterizedObjectAdaptor(java.lang.String _n,
                                  java.lang.String _d)

ParameterizedObjectAdaptor

public ParameterizedObjectAdaptor(java.lang.String _i,
                                  java.lang.String _n,
                                  java.lang.String _d)
Method Detail

addParameterChangedListener

public boolean addParameterChangedListener(ParameterizedObject.ParameterChangedListener l)
Description copied from interface: ParameterizedObject
Register dependent component that wants to be notified if this object changes parameters

Specified by:
addParameterChangedListener in interface ParameterizedObject
Parameters:
l -
Returns:
false if Notify Capability was not implemented by this object, otherwise true

fireParameterChanged

public void fireParameterChanged()

removeParameterChangedListener

public boolean removeParameterChangedListener(ParameterizedObject.ParameterChangedListener l)
Description copied from interface: ParameterizedObject
un-register dependent object

Specified by:
removeParameterChangedListener in interface ParameterizedObject
Parameters:
l -
Returns:
false if object was not registered or if notify capability is not implemented by this object

getParameters

public ParameterSet getParameters()
Description copied from interface: ParameterizedObject
Get a Vector of Strings with a description of each Parameter

Specified by:
getParameters in interface ParameterizedObject
Returns:
Vector[Parameter]

setParameters

public boolean setParameters(ParameterSet _params)
Description copied from interface: ParameterizedObject
Set Parameters of this class

Specified by:
setParameters in interface ParameterizedObject

parameterEdited

public boolean parameterEdited(ParameterSet editedParams)
Description copied from interface: ParameterizedObject
Notify when Parameter set was changed during edit

Specified by:
parameterEdited in interface ParameterizedObject

finalize

protected void finalize()
                 throws java.lang.Throwable
Throws:
java.lang.Throwable