Package ptolemy.chic
Class ChicController
- java.lang.Object
-
- All Implemented Interfaces:
NodeController
public class ChicController extends AttributeController
This class provides interaction with nodes that represent ChicInvoker visible attributes. It provides a double click binding and context menu entry to edit the parameters of the node ("Configure"), a command to get documentation ("Get Documentation"), a command to look inside ("Look Inside") and commands for invoking Chic. It can have one of two access levels, FULL or PARTIAL. If the access level is FULL, then the context menu also contains a command to rename the node ("Customize Name") and a command to set the icon of the node ("Set Icon").- Since:
- Ptolemy II 3.0
- Version:
- $Id$
- Author:
- Eleftherios Matsikoudis
- Pt.AcceptedRating:
- Red (cxh)
- Pt.ProposedRating:
- Red (cxh)
-
-
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.chic.ChicController.LookInsideAction
_lookInsideAction
The action that handles look inside.-
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 ChicController(GraphController controller)
Create a Chic controller associated with the specified graph controller with full access.ChicController(GraphController controller, AttributeController.Access access)
Create a Chic controller associated with the specified graph controller.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setConfiguration(Configuration configuration)
Set the configuration.-
Methods inherited from class ptolemy.vergil.kernel.AttributeController
_getComponentType, _moveToFirstDescription, _moveToLastDescription, addHotKeys, renderDecoratorHighlight, renderHighlight
-
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
-
ChicController
public ChicController(GraphController controller)
Create a Chic controller associated with the specified graph controller with full access.- Parameters:
controller
- The associated graph controller.
-
ChicController
public ChicController(GraphController controller, AttributeController.Access access)
Create a Chic controller associated with the specified graph controller.- Parameters:
controller
- The associated graph controller.access
- The access level.
-
-
Method Detail
-
setConfiguration
public void setConfiguration(Configuration configuration)
Set the configuration. This is used to open documentation files.- Overrides:
setConfiguration
in classAttributeController
- Parameters:
configuration
- The configuration.
-
-