Class FSMGraphController

    • Constructor Detail

      • FSMGraphController

        public FSMGraphController()
        Create a new basic controller with default terminal and edge interactors.
    • 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 RunnableGraphController
        Parameters:
        menu - The menu to add to, or null if none.
        toolbar - The toolbar to add to, or null if none.
      • _createControllers

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

        protected void initializeInteraction()
        Initialize 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 FSMViewerGraphController
      • _initializeInteraction

        protected void _initializeInteraction​(NamedObjController controller)
        Initialize interactions for the specified controller. This method is called when a new controller is constructed. In this class, this method attaches a link creator to the controller if the controller is an instance of StateController.
        Overrides:
        _initializeInteraction in class BasicGraphController
        Parameters:
        controller - The controller for which to initialize interaction.