Class ExtendedGraphFrame

  • All Implemented Interfaces:
    java.awt.datatransfer.ClipboardOwner, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.event.MouseWheelListener, java.awt.event.WindowFocusListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.awt.print.Printable, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible, javax.swing.RootPaneContainer, javax.swing.WindowConstants, ImageExportable, ChangeListener, StatusHandler, HTMLExportable
    Direct Known Subclasses:
    ActorGraphFrame, FSMGraphFrame, GTFrame, OntologyGraphFrame, OntologySolverGraphFrame

    public abstract class ExtendedGraphFrame
    extends BasicGraphFrame
    An graph view for ptolemy models extended with the capability to display the model in full-screen mode.
    Since:
    Ptolemy II 2.0
    Version:
    $Id$
    Author:
    Edward A. Lee
    See Also:
    Serialized Form
    Pt.AcceptedRating:
    Red (johnr)
    Pt.ProposedRating:
    Red (neuendor)
    • Constructor Detail

      • ExtendedGraphFrame

        public ExtendedGraphFrame​(CompositeEntity entity,
                                  Tableau tableau)
        Construct a frame associated with the specified Ptolemy II model. After constructing this, it is necessary to call setVisible(true) to make the frame appear. This is typically done by calling show() on the controlling tableau. This constructor results in a graph frame that obtains its library either from the model (if it has one) or the default library defined in the configuration.
        Parameters:
        entity - The model to put in this frame.
        tableau - The tableau responsible for this frame.
        See Also:
        Tableau.show()
      • ExtendedGraphFrame

        public ExtendedGraphFrame​(CompositeEntity entity,
                                  Tableau tableau,
                                  LibraryAttribute defaultLibrary)
        Construct a frame associated with the specified Ptolemy II model. After constructing this, it is necessary to call setVisible(true) to make the frame appear. This is typically done by calling show() on the controlling tableau. This constructor results in a graph frame that obtains its library either from the model (if it has one), or the defaultLibrary argument (if it is non-null), or the default library defined in the configuration.
        Parameters:
        entity - The model to put in this frame.
        tableau - The tableau responsible for this frame.
        defaultLibrary - An attribute specifying the default library to use if the model does not have a library.
        See Also:
        Tableau.show()
    • Method Detail

      • cancelFullScreen

        public void cancelFullScreen()
        Cancel full screen mode. Note that this should be called in the swing event thread.
      • fullScreen

        public void fullScreen()
        Go to full screen.
      • dispose

        public void dispose()
        Dispose of this frame. Override this dispose() method to unattach any listeners that may keep this model from getting garbage collected. This method invokes the dispose() method of the superclass, BasicGraphFrame.
        Overrides:
        dispose in class BasicGraphFrame
      • _initExtendedGraphFrame

        protected void _initExtendedGraphFrame()
        Initialize this class. In this base class, a button for the full screen action is added to the toolbar.
      • _addMenus

        protected void _addMenus()
        Create the menus that are used by this frame.
        Overrides:
        _addMenus in class BasicGraphFrame
      • _close

        protected boolean _close()
        Invoke the close() method of the superclass and optionally print a debugging message. If Tableau._debugClosing is true, then a message is printed to standard out. This method is used for debugging memory leaks.
        Overrides:
        _close in class BasicGraphFrame
        Returns:
        True if the close completes, and false otherwise.