ptolemy.vergil.fsm
Class StateController

java.lang.Object
  extended bydiva.graph.BasicNodeController
      extended byptolemy.vergil.basic.LocatableNodeController
          extended byptolemy.vergil.basic.NamedObjController
              extended byptolemy.vergil.basic.ParameterizedNodeController
                  extended byptolemy.vergil.basic.IconController
                      extended byptolemy.vergil.kernel.AttributeController
                          extended byptolemy.vergil.fsm.StateController
All Implemented Interfaces:
NodeController
Direct Known Subclasses:
HierarchicalStateController

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 2.0
Version:
$Id: StateController.java,v 1.19.2.1 2004/06/18 00:49:29 cxh Exp $
Author:
Steve Neuendorffer and Edward A. Lee
Accepted Rating:
Red (johnr)
Proposed Rating:
Red (eal)

Nested Class Summary
static class StateController.StateRenderer
          Render the state as a circle.
 
Nested classes inherited from class ptolemy.vergil.kernel.AttributeController
AttributeController.Access
 
Nested classes inherited from class ptolemy.vergil.basic.IconController
IconController.IconRenderer
 
Nested classes inherited from class ptolemy.vergil.basic.NamedObjController
NamedObjController.GetDocumentationAction
 
Field Summary
protected  ptolemy.vergil.fsm.StateController.LookInsideAction _lookInsideAction
          The action that handles look inside.
 
Fields inherited from class ptolemy.vergil.kernel.AttributeController
FULL, PARTIAL
 
Fields inherited from class ptolemy.vergil.basic.ParameterizedNodeController
_configureAction, _menuCreator, _menuFactory
 
Fields inherited from class ptolemy.vergil.basic.NamedObjController
_configuration
 
Fields inherited from class ptolemy.vergil.basic.LocatableNodeController
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
 void setConfiguration(Configuration configuration)
          Set the configuration.
 
Methods inherited from class ptolemy.vergil.basic.LocatableNodeController
_drawChildren, _hide, _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

_lookInsideAction

protected ptolemy.vergil.fsm.StateController.LookInsideAction _lookInsideAction
The action that handles look inside. This is accessed by by ActorViewerController to create a hot key for the editor.

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.
Method Detail

setConfiguration

public void setConfiguration(Configuration configuration)
Set the configuration. This is used to open documentation files.

Overrides:
setConfiguration in class NamedObjController
Parameters:
configuration - The configuration.