Package ptolemy.vergil.ptera
Class PteraGraphController
- java.lang.Object
-
- 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$
- Author:
- Thomas Huining Feng
- Pt.AcceptedRating:
- Red (tfeng)
- Pt.ProposedRating:
- Red (tfeng)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description 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
-
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
Constructors Constructor Description PteraGraphController()
Create a PteraGraphController.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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, _report, _report, executionError, executionFinished, managerStateChanged
-
Methods inherited from class ptolemy.vergil.basic.WithIconGraphController
getNewPortLocation
-
Methods inherited from class ptolemy.vergil.basic.BasicGraphController
_areThereActiveErrorHighlights, _getClearAllErrorHighlightsChangeRequest, clearAllErrorHighlights, clearAnimation, getAnimationDelay, getConfiguration, getConfigureMenuFactory, getFrame, highlightError, 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
-
-
-
-
Method Detail
-
event
public void event(DebugEvent debugEvent)
React to an event by highlighting the new state.- Specified by:
event
in interfaceDebugListener
- Overrides:
event
in classFSMViewerGraphController
- 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 classFSMGraphController
- 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 classFSMGraphController
-
-