ptolemy.vergil.ptera
Class PteraGraphController
java.lang.Object
diva.graph.AbstractGraphController
ptolemy.vergil.basic.BasicGraphController
ptolemy.vergil.basic.WithIconGraphController
ptolemy.vergil.basic.RunnableGraphController
ptolemy.vergil.modal.FSMViewerGraphController
ptolemy.vergil.modal.FSMGraphController
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:
- Proposed Rating:
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 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 |
_newEventAction
private PteraGraphController.NewEventAction _newEventAction
- The action for creating event.
_prototypeEvent
private static final Location _prototypeEvent
- Prototype state for rendering.
PteraGraphController
public PteraGraphController()
- Create a PteraGraphController.
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