Class InterfaceAutomatonGraphController

  • All Implemented Interfaces:
    GraphController, ExecutionListener, DebugListener, ValueListener

    public class InterfaceAutomatonGraphController
    extends FSMGraphController
    A Graph Controller for interface automata models. This controller adds the "Compose With" menu item to the Graph menu.
    Since:
    Ptolemy II 8.0
    Version:
    $Id$
    Author:
    Steve Neuendorffer, Yuhong Xiong, Contributor: Edward A. Lee
    Pt.AcceptedRating:
    Red (johnr)
    Pt.ProposedRating:
    Red (yuhong)
    • Constructor Detail

      • InterfaceAutomatonGraphController

        public InterfaceAutomatonGraphController​(java.io.File directory)
        Create a new controller with the specified directory of the current model. The directory is for setting the current directory of the file chooser invoked by the "Compose With" menu item.
        Parameters:
        directory - An instance of File that specifies the directory of the current model.
    • 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 FSMGraphController
        Parameters:
        menu - The menu to add to, or null if none.
        toolbar - The toolbar to add to, or null if none.