ptolemy.vergil.fsm.ia
Class InterfaceAutomatonGraphController

java.lang.Object
  extended bydiva.graph.AbstractGraphController
      extended byptolemy.vergil.basic.BasicGraphController
          extended byptolemy.vergil.basic.WithIconGraphController
              extended byptolemy.vergil.basic.RunnableGraphController
                  extended byptolemy.vergil.fsm.FSMViewerGraphController
                      extended byptolemy.vergil.fsm.FSMGraphController
                          extended byptolemy.vergil.fsm.ia.InterfaceAutomatonGraphController
All Implemented Interfaces:
DebugListener, ExecutionListener, GraphController, ValueListener

public class InterfaceAutomatonGraphController
extends FSMGraphController

A Graph Controller for interface automata models. This controller adds the "Compose With" menu item to the Graph menu.

Since:
Ptolemy II 2.0
Version:
$Id: InterfaceAutomatonGraphController.java,v 1.17 2004/04/13 05:12:31 cxh Exp $
Author:
Steve Neuendorffer, Yuhong Xiong, Contributor: Edward A. Lee
Accepted Rating:
Red (johnr)
Proposed Rating:
Red (yuhong)

Nested Class Summary
 class InterfaceAutomatonGraphController.ComposeWithAction
          An action to perform composition.
 
Nested classes inherited from class ptolemy.vergil.fsm.FSMGraphController
FSMGraphController.LinkCreator, FSMGraphController.NewStateAction
 
Nested classes inherited from class ptolemy.vergil.basic.WithIconGraphController
WithIconGraphController.NewPortAction
 
Nested classes inherited from class ptolemy.vergil.basic.BasicGraphController
BasicGraphController.OpenBaseClassAction, BasicGraphController.SchematicContextMenuFactory, BasicGraphController.UnitSolverDialogAction
 
Field Summary
 
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, _menuCreator, _menuFactory, _openBaseClassAction, _unitSolverDialogAction
 
Constructor Summary
InterfaceAutomatonGraphController(java.io.File directory)
          Create a new controller with the specified directory of the current model.
 
Method Summary
 void addToMenuAndToolbar(javax.swing.JMenu menu, javax.swing.JToolBar toolbar)
          Add commands to the specified menu and toolbar, as appropriate for this controller.
 
Methods inherited from class ptolemy.vergil.fsm.FSMGraphController
_createControllers, _initializeInteraction, initializeInteraction, setConfiguration
 
Methods inherited from class ptolemy.vergil.fsm.FSMViewerGraphController
event, getEdgeController, getNodeController
 
Methods inherited from class ptolemy.vergil.basic.RunnableGraphController
_getManager, executionError, executionFinished, managerStateChanged
 
Methods inherited from class ptolemy.vergil.basic.BasicGraphController
clearAnimation, getAnimationDelay, getConfiguration, 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
 

Constructor Detail

InterfaceAutomatonGraphController

public InterfaceAutomatonGraphController(java.io.File directory)
Create a new controller with the specified directory of the current model. The directory is for setting the current directory of the file chooser invoked by the "Compose With" menu item.

Parameters:
directory - An instance of File that specifies the directory of the current model.
Method Detail

addToMenuAndToolbar

public void addToMenuAndToolbar(javax.swing.JMenu menu,
                                javax.swing.JToolBar toolbar)
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.