Class FSMViewerGraphController

  • All Implemented Interfaces:
    GraphController, ExecutionListener, DebugListener, ValueListener
    Direct Known Subclasses:
    FSMGraphController

    public class FSMViewerGraphController
    extends RunnableGraphController
    A graph controller for the Ptolemy II finite-state machine viewer. This controller allows states to be moved and context menus to be accessed, but does not provide interaction for adding or removing states or transitions.
    Since:
    Ptolemy II 8.0
    Version:
    $Id$
    Author:
    Steve Neuendorffer, Contributor: Edward A. Lee
    Pt.AcceptedRating:
    Red (johnr)
    Pt.ProposedRating:
    Red (eal)
    • Field Detail

      • _attributeController

        protected NamedObjController _attributeController
        The attribute controller.
      • _stateController

        protected StateController _stateController
        The state controller.
      • _transitionController

        protected TransitionController _transitionController
        The transition controller.
      • _modalTransitionController

        protected TransitionController _modalTransitionController
        The modal transition controller.
    • Constructor Detail

      • FSMViewerGraphController

        public FSMViewerGraphController()
        Create a new controller with default port, state, and transition controllers.
    • Method Detail

      • _addHotKeys

        protected void _addHotKeys​(JGraph jgraph)
        Add hot keys to the actions in the given JGraph.
        Overrides:
        _addHotKeys in class RunnableGraphController
        Parameters:
        jgraph - The JGraph to which hot keys are to be added.
      • _createControllers

        protected void _createControllers()
        Create the controllers for nodes in this graph. In this base class, controllers with PARTIAL 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 class WithIconGraphController
      • initializeInteraction

        protected void initializeInteraction()
        Initialize all interaction on the graph pane. This method is called by the setGraphPane() method of the superclass. This initialization cannot be done in the constructor because the controller does not yet have a reference to its pane at that time.
        Overrides:
        initializeInteraction in class WithIconGraphController