|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectdiva.graph.AbstractGraphController
ptolemy.vergil.basic.BasicGraphController
ptolemy.vergil.basic.WithIconGraphController
ptolemy.vergil.basic.RunnableGraphController
ptolemy.vergil.fsm.FSMViewerGraphController
ptolemy.vergil.fsm.FSMGraphController
public class FSMGraphController
A Graph Controller for FSM models. This controller allows states to be dragged and dropped onto its graph. Arcs can be created by control-clicking and dragging from one state to another.
| Red (johnr) |
| Red (eal) |
| Nested Class Summary | |
|---|---|
protected class |
FSMGraphController.LinkCreator
An interactor that interactively drags edges from one terminal to another. |
class |
FSMGraphController.NewStateAction
An action to create a new state. |
| 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 ConfigureUnitsAction |
_configureUnitsAction
|
private FSMGraphController.LinkCreator |
_linkCreator
The interactor that interactively creates edges. |
private javax.swing.Action |
_newInOutMultiportAction
Action for creating a new inout multiport. |
private javax.swing.Action |
_newInOutPortAction
Action for creating a new input/output port. |
private javax.swing.Action |
_newInputMultiportAction
Action for creating a new input multiport. |
private javax.swing.Action |
_newInputPortAction
Action for creating a new input port. |
private javax.swing.Action |
_newOutputMultiportAction
Action for creating a new output multiport. |
private javax.swing.Action |
_newOutputPortAction
Action for creating a new output port. |
private FSMGraphController.NewStateAction |
_newStateAction
The action for creating states. |
private PortDialogAction |
_portDialogAction
The port dialog factory. |
private static Location |
_prototypeState
Prototype state for rendering. |
private MouseFilter |
_shortcutFilter
The filter for shortcut operations. |
| Fields inherited from class ptolemy.vergil.fsm.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 | |
|---|---|
FSMGraphController()
Create a new basic controller with default terminal and edge interactors. |
|
| Method Summary | |
|---|---|
protected void |
_createControllers()
Create the controllers for nodes in this graph. |
protected void |
_initializeInteraction(NamedObjController controller)
Initialize interactions for the specified controller. |
void |
addToMenuAndToolbar(javax.swing.JMenu menu,
javax.swing.JToolBar toolbar)
Add commands to the specified menu and toolbar, as appropriate for this controller. |
protected void |
initializeInteraction()
Initialize interaction on the graph pane. |
void |
setConfiguration(Configuration configuration)
Set the configuration. |
| Methods inherited from class ptolemy.vergil.fsm.FSMViewerGraphController |
|---|
_addHotKeys, event, 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 |
|---|
private ConfigureUnitsAction _configureUnitsAction
private FSMGraphController.LinkCreator _linkCreator
private FSMGraphController.NewStateAction _newStateAction
private MouseFilter _shortcutFilter
private javax.swing.Action _newInputPortAction
private javax.swing.Action _newOutputPortAction
private javax.swing.Action _newInOutPortAction
private javax.swing.Action _newInputMultiportAction
private javax.swing.Action _newOutputMultiportAction
private javax.swing.Action _newInOutMultiportAction
private PortDialogAction _portDialogAction
private static Location _prototypeState
| Constructor Detail |
|---|
public FSMGraphController()
| Method Detail |
|---|
public void addToMenuAndToolbar(javax.swing.JMenu menu,
javax.swing.JToolBar toolbar)
addToMenuAndToolbar in class RunnableGraphControllermenu - The menu to add to, or null if none.toolbar - The toolbar to add to, or null if none.public void setConfiguration(Configuration configuration)
setConfiguration in class FSMViewerGraphControllerconfiguration - The configuration.BasicGraphController.getConfiguration()protected void _createControllers()
_createControllers in class FSMViewerGraphControllerprotected void initializeInteraction()
initializeInteraction in class FSMViewerGraphControllerprotected void _initializeInteraction(NamedObjController controller)
_initializeInteraction in class BasicGraphControllercontroller - The controller for which to initialize interaction.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||