Package org.graffiti.plugin.parameter
Class NodeParameter
java.lang.Object
org.graffiti.plugin.parameter.AbstractSingleParameter
org.graffiti.plugin.parameter.NodeParameter
- All Implemented Interfaces:
Displayable
,Parameter
,SingleParameter
public class NodeParameter extends AbstractSingleParameter
This class contains a single
Node
.- Version:
- $Revision: 1.5 $
-
Constructor Summary
Constructors Constructor Description NodeParameter(Graph graph, Node initalNode, String name, String description)
Constructs a new node parameter. -
Method Summary
Methods inherited from class org.graffiti.plugin.parameter.AbstractSingleParameter
getDescription, getIcon, getImage, getName, isLeftAligned, setDescription, setLeftAligned, toString, toXMLString
-
Constructor Details
-
NodeParameter
Constructs a new node parameter.- Parameters:
name
- the name of the parameter.description
- the description of the parameter.
-
-
Method Details
-
getNode
Returns theNode
contained in thisNodeParameter
.- Returns:
- the
Node
contained in thisNodeParameter
.
-
getPossibleNodes
-
setValue
Sets the value of theAttributeParameter
.- Specified by:
setValue
in interfaceDisplayable
- Overrides:
setValue
in classAbstractSingleParameter
- Parameters:
val
- 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.
-