Class GTFrame

    • Constructor Detail

      • GTFrame

        public GTFrame​(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()
      • GTFrame

        public GTFrame​(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

      • isFullscreen

        public boolean isFullscreen()
      • _close

        protected boolean _close()
        Description copied from class: ExtendedGraphFrame
        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 ExtendedGraphFrame
        Returns:
        True if the close completes, and false otherwise.
      • _createGraphPane

        protected GraphPane _createGraphPane​(NamedObj entity)
        Description copied from class: BasicGraphFrame
        Create a new graph pane. Subclasses will override this to change the pane that is created. Note that this method is called in constructor, so derived classes must be careful to not reference local variables that may not have yet been created.
        Specified by:
        _createGraphPane in class BasicGraphFrame
        Parameters:
        entity - The object to be displayed in the pane.
        Returns:
        The pane that is created.
      • _createRightComponent

        protected javax.swing.JComponent _createRightComponent​(NamedObj entity)
        Description copied from class: BasicGraphFrame
        Create the component that goes to the right of the library.
        Overrides:
        _createRightComponent in class BasicGraphFrame
        Parameters:
        entity - The entity to display in the component.
        Returns:
        The component that goes to the right of the library.