parameter
Interface ParameterizedObject

All Known Subinterfaces:
Layer
All Known Implementing Classes:
ColorizedLayer, DOFMatrix, ImageView, ParameterizedObjectAdaptor

public interface ParameterizedObject

Represents an Object that publishes its parameters via get/set functions and allows other objects to get notified if its properties change.

Author:
dahlkamp, ottlik

Nested Class Summary
static interface ParameterizedObject.ParameterChangedListener
          Callback interface to notify dependent objects that is ParameterizedObject has changed
static interface ParameterizedObject.ParameterizedObjectManager
          FileHistory uses this interface for callback
 
Method Summary
 boolean addParameterChangedListener(ParameterizedObject.ParameterChangedListener l)
          Register dependent component that wants to be notified if this object changes parameters
 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
 

Method Detail

getParameters

public ParameterSet getParameters()
Get a Vector of Strings with a description of each Parameter

Returns:
Vector[Parameter]

setParameters

public boolean setParameters(ParameterSet _params)
Set Parameters of this class


parameterEdited

public boolean parameterEdited(ParameterSet editedParams)
Notify when Parameter set was changed during edit


addParameterChangedListener

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

Parameters:
l -
Returns:
false if Notify Capability was not implemented by this object, otherwise true

removeParameterChangedListener

public boolean removeParameterChangedListener(ParameterizedObject.ParameterChangedListener l)
un-register dependent object

Parameters:
l -
Returns:
false if object was not registered or if notify capability is not implemented by this object