org.graffiti.plugin.parameter
Class SelectionParameter

java.lang.Object
  extended by org.graffiti.plugin.parameter.AbstractSingleParameter<Selection>
      extended by org.graffiti.plugin.parameter.SelectionParameter
All Implemented Interfaces:
Serializable, Displayable<Selection>, Parameter<Selection>, SingleParameter<Selection>

public class SelectionParameter
extends AbstractSingleParameter<Selection>

This class contains a single Node.

Version:
$Revision: 5767 $
See Also:
Serialized Form

Constructor Summary
SelectionParameter(Selection sel, String name, String description)
          Constructs a new selection parameter.
SelectionParameter(String name, String description)
          Constructs a new selection parameter.
SelectionParameter(String name, String description, Selection sel)
          Constructs a new selection parameter.
 
Method Summary
 boolean canCopy()
           
 SelectionParameter copy()
           
 Selection getSelection()
          Returns the selection encapsulated in this parameter.
 void setSelection(Selection selection)
          Sets the selection.
 
Methods inherited from class org.graffiti.plugin.parameter.AbstractSingleParameter
getDependencyParent, getDependencyValue, getDescription, getImage, getName, getStandardXML, getValue, isVisible, setDependency, setDescription, setObjectValue, setValue, setVisible, toString, toXMLString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SelectionParameter

public SelectionParameter(String name,
                          String description)
Constructs a new selection parameter.

Parameters:
name - the name of the parameter.
description - the description of the parameter.

SelectionParameter

public SelectionParameter(String name,
                          String description,
                          Selection sel)
Constructs a new selection parameter.

Parameters:
name -
description -
sel -

SelectionParameter

public SelectionParameter(Selection sel,
                          String name,
                          String description)
Constructs a new selection parameter.

Parameters:
sel -
name -
description -
Method Detail

setSelection

public void setSelection(Selection selection)
Sets the selection.

Parameters:
selection - DOCUMENT ME!

getSelection

public Selection getSelection()
Returns the selection encapsulated in this parameter.

Returns:
DOCUMENT ME!

copy

public SelectionParameter copy()
Specified by:
copy in interface Parameter<Selection>
Overrides:
copy in class AbstractSingleParameter<Selection>

canCopy

public boolean canCopy()
Specified by:
canCopy in interface Parameter<Selection>
Overrides:
canCopy in class AbstractSingleParameter<Selection>


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