Class RunnableGraphController

    • Constructor Detail

      • RunnableGraphController

        public RunnableGraphController()
        Create a new controller.
    • Method Detail

      • addToMenuAndToolbar

        public void addToMenuAndToolbar​(javax.swing.JMenu menu,
                                        javax.swing.JToolBar toolbar)
        Add execution commands to the toolbar.
        Overrides:
        addToMenuAndToolbar in class BasicGraphController
        Parameters:
        menu - The menu to add to, which is ignored.
        toolbar - The toolbar to add to, or null if none.
      • executionError

        public void executionError​(Manager manager,
                                   java.lang.Throwable throwable)
        Report that an execution error has occurred. This method is called by the specified manager.
        Specified by:
        executionError in interface ExecutionListener
        Parameters:
        manager - The manager calling this method.
        throwable - The throwable being reported.
      • executionFinished

        public void executionFinished​(Manager manager)
        Report that execution of the model has finished.
        Specified by:
        executionFinished in interface ExecutionListener
        Parameters:
        manager - The manager calling this method.
      • managerStateChanged

        public void managerStateChanged​(Manager manager)
        Report that a manager state has changed. This method is called by the specified manager.
        Specified by:
        managerStateChanged in interface ExecutionListener
        Parameters:
        manager - The manager calling this method.
        See Also:
        Manager.getState()
      • _addHotKeys

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

        protected Manager _getManager()
                               throws IllegalActionException
        Get the manager for the top-level of the associated model, if there is one, or create one if there is not.
        Returns:
        The manager.
        Throws:
        IllegalActionException - If the associated model is not a CompositeActor, or if the manager cannot be created.
      • _report

        protected void _report​(java.lang.String message)
        If there is an associated BasicGraphFrame, use it to report a message. Otherwise, report to standard output.
        Parameters:
        message - The message.
      • _report

        protected void _report​(java.lang.Throwable error)
        If there is an associated BasicGraphFrame, use it to report an error. Otherwise, report to standard error.
        Parameters:
        error - The throwable.