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 Details

    • NodeParameter

      public NodeParameter​(Graph graph, Node initalNode, String name, String description)
      Constructs a new node parameter.
      Parameters:
      name - the name of the parameter.
      description - the description of the parameter.
  • Method Details

    • getNode

      public Node getNode()
      Returns the Node contained in this NodeParameter.
      Returns:
      the Node contained in this NodeParameter.
    • getPossibleNodes

      public Node[] getPossibleNodes()
    • setValue

      public void setValue​(Object val)
      Sets the value of the AttributeParameter.
      Specified by:
      setValue in interface Displayable
      Overrides:
      setValue in class AbstractSingleParameter
      Parameters:
      val - the new value of the AttributeParameter.
    • getValue

      public Object getValue()
      Returns the value of this parameter.
      Specified by:
      getValue in interface Displayable
      Overrides:
      getValue in class AbstractSingleParameter
      Returns:
      the value of this parameter.