Package ptolemy.vergil.basic
Class ParameterizedNodeController
- java.lang.Object
-
- diva.graph.BasicNodeController
-
- ptolemy.vergil.basic.LocatableNodeController
-
- ptolemy.vergil.basic.NamedObjController
-
- ptolemy.vergil.basic.ParameterizedNodeController
-
- All Implemented Interfaces:
NodeController
- Direct Known Subclasses:
IconController
,RelationController
public class ParameterizedNodeController extends NamedObjController
This class provides interaction with nodes that represent Ptolemy II components with parameters. It provides a context menu item labeled "Configure" for editing those parameters, and binds double click to invoke the dialog that edits those parameters.- Since:
- Ptolemy II 2.0
- Version:
- $Id$
- Author:
- Steve Neuendorffer and Edward A. Lee
- Pt.AcceptedRating:
- Red (johnr)
- Pt.ProposedRating:
- Red (eal)
-
-
Field Summary
Fields Modifier and Type Field Description protected static ConfigureAction
_configureAction
The configure action, which handles edit parameters requests.protected MenuActionFactory
_configureMenuFactory
The submenu for configure actions.protected MenuCreator
_menuCreator
The menu creator.protected PtolemyMenuFactory
_menuFactory
The factory belonging to the menu creator.-
Fields inherited from class ptolemy.vergil.basic.NamedObjController
_configuration
-
Fields inherited from class ptolemy.vergil.basic.LocatableNodeController
_decoratable, CLASS_ELEMENT_HIGHLIGHT_COLOR
-
-
Constructor Summary
Constructors Constructor Description ParameterizedNodeController(GraphController controller)
Create an attribute controller associated with the specified graph controller.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MenuActionFactory
getConfigureMenuFactory()
Return the configuration menu factory.-
Methods inherited from class ptolemy.vergil.basic.NamedObjController
addHotKeys, setConfiguration
-
Methods inherited from class ptolemy.vergil.basic.LocatableNodeController
_drawChildren, _getCompositeFigure, _hide, _isPropertySet, _renderNode, addNode, drawNode, getLocation, hasLocation, locateFigure, setLocation, setSnapResolution
-
Methods inherited from class diva.graph.BasicNodeController
addNode, addNode, addNode, clearNode, drawNode, getController, getNodeInteractor, getNodeRenderer, removeNode, setNodeInteractor, setNodeRenderer
-
-
-
-
Field Detail
-
_configureAction
protected static ConfigureAction _configureAction
The configure action, which handles edit parameters requests.
-
_configureMenuFactory
protected MenuActionFactory _configureMenuFactory
The submenu for configure actions.
-
_menuCreator
protected MenuCreator _menuCreator
The menu creator.
-
_menuFactory
protected PtolemyMenuFactory _menuFactory
The factory belonging to the menu creator.
-
-
Constructor Detail
-
ParameterizedNodeController
public ParameterizedNodeController(GraphController controller)
Create an attribute controller associated with the specified graph controller.- Parameters:
controller
- The associated graph controller.
-
-
Method Detail
-
getConfigureMenuFactory
public MenuActionFactory getConfigureMenuFactory()
Return the configuration menu factory.- Returns:
- The configuration menu factory.
-
-