Package ptolemy.vergil.basic
Class IconController
- java.lang.Object
-
- All Implemented Interfaces:
NodeController
- Direct Known Subclasses:
AttributeController
public class IconController extends ParameterizedNodeController
This class provides interaction with nodes that represent Ptolemy II objects that are represented on screen as icons, such as attributes and entities. It provides a double click binding to edit the parameters of the node, and a context menu containing a command to edit parameters ("Configure"). This adds to the base class the ability to render an icon for the object being controlled, where the icon is specified by a contained attribute of class EditorIcon (typically, but not necessarily named "_icon").- Since:
- Ptolemy II 2.0
- Version:
- $Id$
- Author:
- Steve Neuendorffer and Edward A. Lee
- Pt.AcceptedRating:
- Red (johnr)
- Pt.ProposedRating:
- Red (eal)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
IconController.IconRenderer
An icon renderer.
-
Field Summary
-
Fields inherited from class ptolemy.vergil.basic.ParameterizedNodeController
_configureAction, _configureMenuFactory, _menuCreator, _menuFactory
-
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 IconController(GraphController controller)
Create a controller associated with the specified graph controller.
-
Method Summary
-
Methods inherited from class ptolemy.vergil.basic.ParameterizedNodeController
getConfigureMenuFactory
-
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
-
-
-
-
Constructor Detail
-
IconController
public IconController(GraphController controller)
Create a controller associated with the specified graph controller.- Parameters:
controller
- The associated graph controller.
-
-