Package ptolemy.vergil.modal
Class TransitionController
- java.lang.Object
- 
- diva.graph.BasicEdgeController
- 
- ptolemy.vergil.modal.TransitionController
 
 
- 
- All Implemented Interfaces:
- EdgeController
 - Direct Known Subclasses:
- MatchResultViewer.MatchResultTransitionController,- ModalTransitionController,- SchedulingRelationController,- TransformationEditor.TransformationTransitionController
 
 public class TransitionController extends BasicEdgeController This class provides interaction techniques for transitions in an FSM.- Since:
- Ptolemy II 8.0
- Version:
- $Id$
- Author:
- Steve Neuendorffer, Contributor: Edward A. Lee
- Pt.AcceptedRating:
- Red (johnr)
- Pt.ProposedRating:
- Red (eal)
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description protected classTransitionController.LinkDropperAn inner class that handles interactive changes to connectivity.static classTransitionController.LinkRendererRender a link.static classTransitionController.LinkTargetA Link target.- 
Nested classes/interfaces inherited from class diva.graph.BasicEdgeControllerBasicEdgeController.EdgeDropper
 
- 
 - 
Field SummaryFields Modifier and Type Field Description protected Configuration_configurationThe configuration.protected static ConfigureAction_configureActionThe configure action, which handles edit parameters requests.protected MenuActionFactory_configureMenuFactoryThe submenu for configure actions.protected ptolemy.vergil.modal.TransitionController.LookInsideAction_lookInsideActionThe action that handles look inside.protected MenuActionFactory_lookInsideActionFactoryThe menu factory for _lookInsideAction.protected MenuCreator_menuCreatorThe menu creator.protected PtolemyMenuFactory_menuFactoryThe factory belonging to the menu creator.
 - 
Constructor SummaryConstructors Constructor Description TransitionController(GraphController controller)Create a transition controller associated with the specified graph controller.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void_createEdgeRenderer()Create an edge renderer specifically for instances of Transition.protected void_openInstanceOrModel(Configuration configuration, NamedObj refinement)Open the instance or the model.protected void_setUpLookInsideAction()Set up look inside actions, if appropriate.voidaddHotKeys(JGraph jgraph)Add hot keys to the actions in the given JGraph.voidsetConfiguration(Configuration configuration)Set the configuration.- 
Methods inherited from class diva.graph.BasicEdgeControlleraddEdge, addEdge, clearEdge, drawEdge, getConnectorTarget, getController, getEdgeInteractor, getEdgeRenderer, removeEdge, render, setConnectorTarget, setEdgeInteractor, setEdgeRenderer
 
- 
 
- 
- 
- 
Field Detail- 
_configurationprotected Configuration _configuration The configuration.
 - 
_configureActionprotected static ConfigureAction _configureAction The configure action, which handles edit parameters requests.
 - 
_configureMenuFactoryprotected MenuActionFactory _configureMenuFactory The submenu for configure actions.
 - 
_lookInsideActionprotected ptolemy.vergil.modal.TransitionController.LookInsideAction _lookInsideAction The action that handles look inside.
 - 
_lookInsideActionFactoryprotected MenuActionFactory _lookInsideActionFactory The menu factory for _lookInsideAction. null if the factory has not been added to the context menu.
 - 
_menuCreatorprotected MenuCreator _menuCreator The menu creator.
 - 
_menuFactoryprotected PtolemyMenuFactory _menuFactory The factory belonging to the menu creator.
 
- 
 - 
Constructor Detail- 
TransitionControllerpublic TransitionController(GraphController controller) Create a transition controller associated with the specified graph controller.- Parameters:
- controller- The associated graph controller.
 
 
- 
 - 
Method Detail- 
addHotKeyspublic void addHotKeys(JGraph jgraph) Add hot keys to the actions in the given JGraph. It would be better that this method was added higher in the hierarchy. Now most controllers- Parameters:
- jgraph- The JGraph to which hot keys are to be added.
 
 - 
setConfigurationpublic void setConfiguration(Configuration configuration) Set the configuration. This is may be used by derived controllers to open files or URLs.- Parameters:
- configuration- The configuration.
 
 - 
_createEdgeRendererprotected void _createEdgeRenderer() Create an edge renderer specifically for instances of Transition.
 - 
_openInstanceOrModelprotected void _openInstanceOrModel(Configuration configuration, NamedObj refinement) throws IllegalActionException, NameDuplicationException Open the instance or the model. In this base class, the default look inside action is to open the model. In derived classes such as the Ptera editor, the default action is to open the instance.- Parameters:
- configuration- The configuration with which to open the model or instance.
- refinement- The model or instance to open.
- Throws:
- IllegalActionException- If constructing an effigy or tableau fails.
- NameDuplicationException- If a name conflict occurs (this should not be thrown).
- See Also:
- Configuration.openInstance(NamedObj),- Configuration.openModel(NamedObj)
 
 - 
_setUpLookInsideActionprotected void _setUpLookInsideAction() Set up look inside actions, if appropriate.
 
- 
 
-