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: ParameterizedNodeController.java 57040 2010-01-27 20:52:32Z cxh $
- Author:
- Steve Neuendorffer and Edward A. Lee
- Accepted Rating:
- Proposed Rating:
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_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.
_contextMenuFactoryCreator
private static ContextMenuFactoryCreator _contextMenuFactoryCreator
- A configurable object that allows a different MenuFactory
to be specified instead of the default ptII one.
The MenuFactory constructs the right-click context menus.
ParameterizedNodeController
public ParameterizedNodeController(GraphController controller)
- Create an attribute controller associated with the specified graph
controller.
- Parameters:
controller
- The associated graph controller.
getConfigureMenuFactory
public MenuActionFactory getConfigureMenuFactory()
- Return the configuration menu factory.
- Returns:
- The configuration menu factory.