Class AnnotationEditorFactory

  • All Implemented Interfaces:
    java.lang.Cloneable, Editable, Changeable, Debuggable, DebugListener, Derivable, ModelErrorHandler, MoMLExportable, Moveable, Nameable

    @Deprecated
    public class AnnotationEditorFactory
    extends EditorFactory
    Deprecated.
    Use ptolemy.vergil.kernel.attributes.TextAttribute.
    If this class is contained by a visible attribute (one that has an attribute called "_iconDescription"), then double clicking on that attribute will invoke an editor for a textual annotation. This class is contained by visible attribute in the Vergil utilities library, which provides a facility for adding visual annotations to diagrams.
    Since:
    Ptolemy II 2.0
    Version:
    $Id$
    Author:
    Edward A. Lee
    Pt.AcceptedRating:
    Red (johnr)
    Pt.ProposedRating:
    Red (eal)
    • Constructor Detail

    • Method Detail

      • createEditor

        public void createEditor​(NamedObj object,
                                 java.awt.Frame parent)
        Deprecated.
        Create an editor for configuring the specified object.
        Specified by:
        createEditor in interface Editable
        Specified by:
        createEditor in class EditorFactory
        Parameters:
        object - The object to configure.
        parent - The parent window, or null if there is none.
      • createEditorPane

        public java.awt.Component createEditorPane()
        Deprecated.
        Return a new widget for configuring the container.
        Returns:
        A JPanel that is a text editor for editing the annotation text.