ptolemy.vergil.basic
Class ParameterizedNodeController

java.lang.Object
  extended by diva.graph.BasicNodeController
      extended by ptolemy.vergil.basic.LocatableNodeController
          extended by ptolemy.vergil.basic.NamedObjController
              extended by 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:
Red (johnr)
Proposed Rating:
Red (eal)

Field Summary
protected static ConfigureAction _configureAction
          The configure action, which handles edit parameters requests.
protected  MenuActionFactory _configureMenuFactory
          The submenu for configure actions.
private static ContextMenuFactoryCreator _contextMenuFactoryCreator
          A configurable object that allows a different MenuFactory to be specified instead of the default ptII one.
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
ParameterizedNodeController(GraphController controller)
          Create an attribute controller associated with the specified graph controller.
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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.


_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.

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.