Package org.graffiti.plugin.parameter
Class SelectionParameter
java.lang.Object
org.graffiti.plugin.parameter.AbstractSingleParameter
org.graffiti.plugin.parameter.SelectionParameter
- All Implemented Interfaces:
Displayable
,Parameter
,SingleParameter
public class SelectionParameter extends AbstractSingleParameter
This class contains a single
Node
.- Version:
- $Revision: 1.5 $
-
Constructor Summary
Constructors Constructor Description SelectionParameter(String name, String description)
Constructs a new selection parameter.SelectionParameter(String name, String description, Selection sel)
Constructs a new selection parameter.SelectionParameter(Selection sel, String name, String description)
Constructs a new selection parameter. -
Method Summary
Modifier and Type Method Description Selection
getSelection()
Returns the selection encapsulated in this parameter.Object
getValue()
Returns the value of this parameter.void
setSelection(Selection selection)
Sets the selection.void
setValue(Object value)
Sets the value of theAttributeParameter
.Methods inherited from class org.graffiti.plugin.parameter.AbstractSingleParameter
getDescription, getIcon, getImage, getName, isLeftAligned, setDescription, setLeftAligned, toString, toXMLString
-
Constructor Details
-
SelectionParameter
Constructs a new selection parameter.- Parameters:
name
- the name of the parameter.description
- the description of the parameter.
-
SelectionParameter
Constructs a new selection parameter.- Parameters:
name
-description
-sel
-
-
SelectionParameter
Constructs a new selection parameter.- Parameters:
sel
-name
-description
-
-
-
Method Details
-
setSelection
Sets the selection.- Parameters:
selection
- DOCUMENT ME!
-
getSelection
Returns the selection encapsulated in this parameter.- Returns:
- DOCUMENT ME!
-
setValue
Sets the value of theAttributeParameter
.- Specified by:
setValue
in interfaceDisplayable
- Overrides:
setValue
in classAbstractSingleParameter
- Parameters:
value
- the new value of theAttributeParameter
.
-
getValue
Returns the value of this parameter.- Specified by:
getValue
in interfaceDisplayable
- Overrides:
getValue
in classAbstractSingleParameter
- Returns:
- the value of this parameter.
-