org.graffiti.plugin.parameter
Interface Parameter<T>

All Superinterfaces:
Displayable<T>, Serializable
All Known Subinterfaces:
LimitableParameter<T>, ParameterList<T>, SingleParameter<T>
All Known Implementing Classes:
AbstractLimitableParameter, AbstractSingleParameter, AttributeParameter, BooleanParameter, DoubleParameter, EdgeParameter, FloatParameter, IntegerParameter, NodeParameter, ObjectParameter, ProbabilityParameter, SelectionParameter, StringParameter, StringSelectionParameter

public interface Parameter<T>
extends Displayable<T>, Serializable

Interface for a parameter used by an Algorithm.

Version:
$Revision: 5767 $
See Also:
Algorithm

Method Summary
 boolean canCopy()
           
 Parameter<T> copy()
           
 Parameter<?> getDependencyParent()
           
 Object getDependencyValue()
           
 BufferedImage getImage()
          Returns an image representing the Parameter.
 boolean isVisible()
           
 void setDependency(Parameter<?> parent, Object value)
          Sets a depencency.
 void setObjectValue(Object value)
           
 void setVisible(boolean visible)
           
 
Methods inherited from interface org.graffiti.plugin.Displayable
getDescription, getName, getValue, setDescription, setValue, toXMLString
 

Method Detail

getImage

BufferedImage getImage()
Returns an image representing the Parameter. May return null if there is no representing image.

Returns:
an image representing the Parameter.

copy

Parameter<T> copy()

canCopy

boolean canCopy()

setObjectValue

void setObjectValue(Object value)

setDependency

void setDependency(Parameter<?> parent,
                   Object value)
Sets a depencency. this is only visible in the parameter dialog, if parent is visible and has the value value.

Parameters:
parent -
value -

getDependencyParent

Parameter<?> getDependencyParent()

getDependencyValue

Object getDependencyValue()

setVisible

void setVisible(boolean visible)

isVisible

boolean isVisible()


Generated at 2012-05-30 11:00:14 PM CEST