Package ptolemy.vergil.kernel
Class AttributeWithIconController
- java.lang.Object
-
- All Implemented Interfaces:
NodeController
- Direct Known Subclasses:
AttributeInOntologyController
,StateController
public class AttributeWithIconController extends AttributeController
This class provides interaction with nodes that represent that can have custom icons. It adds context menu items to edit the custom icons.- Since:
- Ptolemy II 10.0
- Version:
- $Id$
- Author:
- Edward A. Lee
- Pt.AcceptedRating:
- Red (johnr)
- Pt.ProposedRating:
- Red (eal)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class ptolemy.vergil.kernel.AttributeController
AttributeController.Access
-
Nested classes/interfaces inherited from class ptolemy.vergil.basic.IconController
IconController.IconRenderer
-
-
Field Summary
Fields Modifier and Type Field Description protected ptolemy.vergil.kernel.AttributeWithIconController.EditIconAction
_editIconAction
The edit custom icon action.protected ptolemy.vergil.kernel.AttributeWithIconController.RemoveIconAction
_removeIconAction
The remove custom icon action.-
Fields inherited from class ptolemy.vergil.kernel.AttributeController
_appearanceMenuActionFactory, _listenToAction, _renameAction, FULL, PARTIAL
-
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 AttributeWithIconController(GraphController controller)
Create a controller associated with the specified graph controller.AttributeWithIconController(GraphController controller, AttributeController.Access access)
Create a controller associated with the specified graph controller.
-
Method Summary
-
Methods inherited from class ptolemy.vergil.kernel.AttributeController
_getComponentType, _moveToFirstDescription, _moveToLastDescription, addHotKeys, renderDecoratorHighlight, renderHighlight, setConfiguration
-
Methods inherited from class ptolemy.vergil.basic.ParameterizedNodeController
getConfigureMenuFactory
-
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
-
AttributeWithIconController
public AttributeWithIconController(GraphController controller)
Create a controller associated with the specified graph controller.- Parameters:
controller
- The associated graph controller.
-
AttributeWithIconController
public AttributeWithIconController(GraphController controller, AttributeController.Access access)
Create a controller associated with the specified graph controller.- Parameters:
controller
- The associated graph controller.access
- The access level.
-
-