ptolemy.vergil.ptera
Class PteraGraphController

java.lang.Object
  extended by diva.graph.AbstractGraphController
      extended by ptolemy.vergil.basic.BasicGraphController
          extended by ptolemy.vergil.basic.WithIconGraphController
              extended by ptolemy.vergil.basic.RunnableGraphController
                  extended by ptolemy.vergil.modal.FSMViewerGraphController
                      extended by ptolemy.vergil.modal.FSMGraphController
                          extended by ptolemy.vergil.ptera.PteraGraphController
All Implemented Interfaces:
GraphController, ExecutionListener, DebugListener, ValueListener

public class PteraGraphController
extends FSMGraphController

A controller for a Ptera model.

Since:
Ptolemy II 8.0
Version:
$Id: PteraGraphController.java 57046 2010-01-27 23:35:53Z cxh $
Author:
Thomas Huining Feng
Accepted Rating:
Red (tfeng)
Proposed Rating:
Red (tfeng)

Nested Class Summary
 class PteraGraphController.NewEventAction
          An action to create a new event.
 
Nested classes/interfaces inherited from class ptolemy.vergil.modal.FSMGraphController
FSMGraphController.LinkCreator, FSMGraphController.NewStateAction
 
Nested classes/interfaces inherited from class ptolemy.vergil.basic.WithIconGraphController
WithIconGraphController.NewPortAction
 
Nested classes/interfaces inherited from class ptolemy.vergil.basic.BasicGraphController
BasicGraphController.OpenBaseClassAction, BasicGraphController.SchematicContextMenuFactory, BasicGraphController.UnitSolverDialogAction
 
Field Summary
private  PteraGraphController.NewEventAction _newEventAction
          The action for creating event.
private static Location _prototypeEvent
          Prototype state for rendering.
 
Fields inherited from class ptolemy.vergil.modal.FSMViewerGraphController
_attributeController, _modalTransitionController, _stateController, _transitionController
 
Fields inherited from class ptolemy.vergil.basic.WithIconGraphController
_editIconAction, _portController, _removeIconAction
 
Fields inherited from class ptolemy.vergil.basic.BasicGraphController
_animated, _animationRenderer, _configureAction, _configureMenuFactory, _menuCreator, _menuFactory, _openBaseClassAction, _unitSolverDialogAction
 
Constructor Summary
PteraGraphController()
          Create a PteraGraphController.
 
Method Summary
protected  void _createControllers()
          Create the controllers for nodes in this graph.
 void addToMenuAndToolbar(javax.swing.JMenu menu, javax.swing.JToolBar toolbar)
          Add commands to the specified menu and toolbar, as appropriate for this controller.
 void event(DebugEvent debugEvent)
          React to an event by highlighting the new state.
 
Methods inherited from class ptolemy.vergil.modal.FSMGraphController
_initializeInteraction, initializeInteraction, setConfiguration
 
Methods inherited from class ptolemy.vergil.modal.FSMViewerGraphController
_addHotKeys, getEdgeController, getNodeController
 
Methods inherited from class ptolemy.vergil.basic.RunnableGraphController
_getManager, executionError, executionFinished, managerStateChanged
 
Methods inherited from class ptolemy.vergil.basic.WithIconGraphController
getNewPortLocation
 
Methods inherited from class ptolemy.vergil.basic.BasicGraphController
clearAnimation, getAnimationDelay, getConfiguration, getConfigureMenuFactory, getFrame, message, setAnimationDelay, setFigure, setFrame, valueChanged
 
Methods inherited from class diva.graph.AbstractGraphController
addEdge, addEdge, addGraphViewListener, addNode, addNode, addNode, addNode, clear, clearEdge, clearNode, dispatch, drawEdge, drawNode, drawNode, getFigure, getGraphModel, getGraphPane, getSelectionModel, removeEdge, removeGraphViewListener, removeNode, rerender, rerenderEdge, rerenderNode, setGraphModel, setGraphPane, setSelectionModel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_newEventAction

private PteraGraphController.NewEventAction _newEventAction
The action for creating event.


_prototypeEvent

private static final Location _prototypeEvent
Prototype state for rendering.

Constructor Detail

PteraGraphController

public PteraGraphController()
Create a PteraGraphController.

Method Detail

event

public void event(DebugEvent debugEvent)
React to an event by highlighting the new state.

Specified by:
event in interface DebugListener
Overrides:
event in class FSMViewerGraphController
Parameters:
debugEvent - The debug event.

addToMenuAndToolbar

public void addToMenuAndToolbar(javax.swing.JMenu menu,
                                javax.swing.JToolBar toolbar)
Description copied from class: FSMGraphController
Add commands to the specified menu and toolbar, as appropriate for this controller. In this class, commands are added to create ports and relations.

Overrides:
addToMenuAndToolbar in class FSMGraphController
Parameters:
menu - The menu to add to, or null if none.
toolbar - The toolbar to add to, or null if none.

_createControllers

protected void _createControllers()
Description copied from class: FSMGraphController
Create the controllers for nodes in this graph. In this class, controllers with FULL access are created. This is called by the constructor, so derived classes that override this must be careful not to reference local variables defined in the derived classes, because the derived classes will not have been fully constructed by the time this is called.

Overrides:
_createControllers in class FSMGraphController