Package ptolemy.vergil.modal
Class StateController
- java.lang.Object
-
- All Implemented Interfaces:
NodeController
- Direct Known Subclasses:
HierarchicalModeController
,HierarchicalStateController
,MatchResultViewer.MatchResultStateController
,TransformationEditor.TransformationStateController
,TransformEventController
public class StateController extends AttributeWithIconController
This class provides interaction with nodes that represent states in an FSM graph. It provides a double click binding to edit the parameters of the state, and a context menu containing a commands to edit parameters ("Configure"), rename, get documentation, and look inside. The looks inside command opens the refinement of the state, if it exists.- Since:
- Ptolemy II 8.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 protected class
StateController.LookInsideAction
An action to look inside a state at its refinement, if it has one.static class
StateController.StateRenderer
Render the state as a circle, unless it has a custom icon.-
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 inherited from class ptolemy.vergil.kernel.AttributeWithIconController
_editIconAction, _removeIconAction
-
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 StateController(GraphController controller)
Create a state controller associated with the specified graph controller.StateController(GraphController controller, AttributeController.Access access)
Create a state 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
-
StateController
public StateController(GraphController controller)
Create a state controller associated with the specified graph controller.- Parameters:
controller
- The associated graph controller.
-
StateController
public StateController(GraphController controller, AttributeController.Access access)
Create a state controller associated with the specified graph controller.- Parameters:
controller
- The associated graph controller.access
- The access level.
-
-