Class ActorEditorGraphController

    • Field Detail

      • _newRelationAction

        protected javax.swing.Action _newRelationAction
        Action for creating a new relation.
    • Constructor Detail

      • ActorEditorGraphController

        public ActorEditorGraphController()
        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.
      • _addHotKeys

        protected void _addHotKeys​(JGraph jgraph)
        Add hot keys to the actions in the given JGraph.
        Overrides:
        _addHotKeys in class ActorViewerGraphController
        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 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 ActorViewerGraphController
      • _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 ExternalIOPortController, IOPortController, or RelationController.
        Overrides:
        _initializeInteraction in class BasicGraphController
        Parameters:
        controller - The controller for which to initialize interaction.
      • 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 ActorViewerGraphController