Class PteraGraphFrame

  • All Implemented Interfaces:
    java.awt.datatransfer.ClipboardOwner, java.awt.event.ActionListener, 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

    public class PteraGraphFrame
    extends FSMGraphFrame
    A graph view for Ptolemy Event Relation Actor (PTERA) domain models.
    Since:
    Ptolemy II 8.0
    Version:
    $Id$
    Author:
    Thomas Huining Feng
    See Also:
    Serialized Form
    Pt.AcceptedRating:
    Red (tfeng)
    Pt.ProposedRating:
    Red (tfeng)
    • Constructor Detail

      • PteraGraphFrame

        public PteraGraphFrame​(CompositeEntity entity,
                               Tableau tableau)
        Construct a frame associated with the specified Ptera 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()
      • PteraGraphFrame

        public PteraGraphFrame​(CompositeEntity entity,
                               Tableau tableau,
                               LibraryAttribute defaultLibrary)
        Construct a frame associated with the specified Ptera 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

      • _createGraphPane

        protected GraphPane _createGraphPane​(NamedObj entity)
        Create a new graph pane. Note that this method is called in constructor of the base class, so it must be careful to not reference local variables that may not have yet been created.
        Overrides:
        _createGraphPane in class FSMGraphFrame
        Parameters:
        entity - The object to be displayed in the pane (which must be an instance of CompositeEntity).
        Returns:
        The pane that is created.
      • getAnimationMenuText

        protected java.lang.String getAnimationMenuText()
        Return the text to be used in the animation menu item. In this class, always return "Animate Events".
        Returns:
        The text for the menu item.
      • _getDefaultEventMoML

        protected java.lang.String _getDefaultEventMoML()
        Return the default event MoML.
        Returns:
        The default event MoML.