ptolemy.vergil.modal
Class StateController

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
                  extended by ptolemy.vergil.basic.IconController
                      extended by ptolemy.vergil.kernel.AttributeController
                          extended by ptolemy.vergil.modal.StateController
All Implemented Interfaces:
NodeController
Direct Known Subclasses:
HierarchicalStateController, MatchResultViewer.MatchResultStateController, TransformationEditor.TransformationStateController, TransformEventController

public class StateController
extends AttributeController

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: StateController.java 57292 2010-02-23 03:07:47Z cxh $
Author:
Steve Neuendorffer and Edward A. Lee
Accepted Rating:
Red (johnr)
Proposed Rating:
Red (eal)

Nested Class Summary
private  class StateController.EditIconAction
          Customize the icon of the state.
protected  class StateController.LookInsideAction
          An action to look inside a state at its refinement, if it has one.
private static class StateController.RemoveIconAction
          Action to remove a custom icon.
static class StateController.StateRenderer
          Render the state as a circle.
 
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
protected  StateController.EditIconAction _editIconAction
          The edit custom icon action.
private static java.util.Map _iconsPendingContainer
          Map used to keep track of icons that have been created but not yet assigned to a container.
protected  StateController.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
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, addHotKeys, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_editIconAction

protected StateController.EditIconAction _editIconAction
The edit custom icon action.


_removeIconAction

protected StateController.RemoveIconAction _removeIconAction
The remove custom icon action.


_iconsPendingContainer

private static java.util.Map _iconsPendingContainer
Map used to keep track of icons that have been created but not yet assigned to a container.

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.