Class OntologySolverGraphFrame

  • 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 OntologySolverGraphFrame
    extends ExtendedGraphFrame
    implements java.awt.event.ActionListener
    This is a graph editor frame for ontology solver models. This class is largely adapted from ActorGraphFrame.
    Since:
    Ptolemy II 10.0
    Version:
    $Id$
    Author:
    Charles Shelton
    See Also:
    Serialized Form
    Pt.AcceptedRating:
    Red (cshelton)
    Pt.ProposedRating:
    Red (cshelton)
    • Field Detail

      • _debugMenu

        protected javax.swing.JMenu _debugMenu
        Debug menu for this frame.
      • _ontologyMenu

        protected javax.swing.JMenu _ontologyMenu
        The ontology menu.
      • _insertOntologyAction

        protected javax.swing.Action _insertOntologyAction
        The action for inserting an ontology into the ontology solver model.
      • _instantiateAttributeAction

        protected javax.swing.Action _instantiateAttributeAction
        The action for instantiating an attribute.
      • _instantiateEntityAction

        protected javax.swing.Action _instantiateEntityAction
        The action for instantiating an entity.
    • Constructor Detail

      • OntologySolverGraphFrame

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

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

      • actionPerformed

        public void actionPerformed​(java.awt.event.ActionEvent e)
        React to the actions specific to this ontology solver graph frame. There are no actions implemented for the ontology solver graph frame so this method does nothing.
        Specified by:
        actionPerformed in interface java.awt.event.ActionListener
        Parameters:
        e - The action event.
      • 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, ExtendedGraphFrame.
        Overrides:
        dispose in class ExtendedGraphFrame
      • _initOntologySolverGraphFrame

        protected void _initOntologySolverGraphFrame()
        Initialize this class. The help file is set, and various actions are instantiated.
      • _addMenus

        protected void _addMenus()
        Create the menus that are used by this frame. It is essential that _createGraphPane() be called before this.
        Overrides:
        _addMenus in class ExtendedGraphFrame
      • _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.
        Specified by:
        _createGraphPane in class BasicGraphFrame
        Parameters:
        entity - The object to be displayed in the pane.
        Returns:
        The pane that is created.