public abstract class RunnableGraphController extends WithIconGraphController implements ExecutionListener
Red (johnr) |
Red (eal) |
WithIconGraphController.NewPortAction
BasicGraphController.OpenBaseClassAction, BasicGraphController.SchematicContextMenuFactory, BasicGraphController.UnitSolverDialogAction
_editIconAction, _portController, _removeIconAction
_animated, _animationRenderer, _configureAction, _configureMenuFactory, _menuCreator, _menuFactory, _openBaseClassAction, _unitSolverDialogAction
Constructor and Description |
---|
RunnableGraphController()
Create a new controller.
|
Modifier and Type | Method and Description |
---|---|
protected void |
_addHotKeys(JGraph jgraph)
Add hot keys to the actions in the given JGraph.
|
protected Manager |
_getManager()
Get the manager for the top-level of the associated model,
if there is one, or create one if there is not.
|
void |
addToMenuAndToolbar(javax.swing.JMenu menu,
javax.swing.JToolBar toolbar)
Add execution commands to the toolbar.
|
void |
executionError(Manager manager,
java.lang.Throwable throwable)
Report that an execution error has occurred.
|
void |
executionFinished(Manager manager)
Report that execution of the model has finished.
|
void |
managerStateChanged(Manager manager)
Report that a manager state has changed.
|
_createControllers, getNewPortLocation, initializeInteraction, setConfiguration
_areThereActiveErrorHighlights, _getClearAllErrorHighlightsChangeRequest, _initializeInteraction, clearAllErrorHighlights, clearAnimation, event, getAnimationDelay, getConfiguration, getConfigureMenuFactory, getFrame, getNodeController, highlightError, message, setAnimationDelay, setFigure, setFrame, valueChanged
addEdge, addEdge, addGraphViewListener, addNode, addNode, addNode, addNode, clear, clearEdge, clearNode, dispatch, drawEdge, drawNode, drawNode, getEdgeController, getFigure, getGraphModel, getGraphPane, getSelectionModel, removeEdge, removeGraphViewListener, removeNode, rerender, rerenderEdge, rerenderNode, setGraphModel, setGraphPane, setSelectionModel
public RunnableGraphController()
public void addToMenuAndToolbar(javax.swing.JMenu menu, javax.swing.JToolBar toolbar)
addToMenuAndToolbar
in class BasicGraphController
menu
- The menu to add to, which is ignored.toolbar
- The toolbar to add to, or null if none.public void executionError(Manager manager, java.lang.Throwable throwable)
executionError
in interface ExecutionListener
manager
- The manager calling this method.throwable
- The throwable being reported.public void executionFinished(Manager manager)
executionFinished
in interface ExecutionListener
manager
- The manager calling this method.public void managerStateChanged(Manager manager)
managerStateChanged
in interface ExecutionListener
manager
- The manager calling this method.Manager.getState()
protected void _addHotKeys(JGraph jgraph)
_addHotKeys
in class BasicGraphController
jgraph
- The JGraph to which hot keys are to be added.protected Manager _getManager() throws IllegalActionException
IllegalActionException
- If the associated model is
not a CompositeActor, or if the manager cannot be created.