ptolemy.vergil.toolbox
Class AnnotationEditorFactory

java.lang.Object
  extended by ptolemy.kernel.util.NamedObj
      extended by ptolemy.kernel.util.Attribute
          extended by ptolemy.actor.gui.EditorFactory
              extended by ptolemy.vergil.toolbox.AnnotationEditorFactory
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, Changeable, Debuggable, DebugListener, Derivable, ModelErrorHandler, MoMLExportable, Moveable, Nameable

Deprecated. Use ptolemy.vergil.kernel.attributes.TextAttribute.

public class AnnotationEditorFactory
extends EditorFactory

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: AnnotationEditorFactory.java 57040 2010-01-27 20:52:32Z cxh $
Author:
Edward A. Lee
See Also:
Serialized Form
Accepted Rating:
Red (johnr)
Proposed Rating:
Red (eal)

Nested Class Summary
 class AnnotationEditorFactory.AnnotationTextEditor
          Deprecated. A text widget for editing textual annotations (which are visible attributes).
 
Nested classes/interfaces inherited from class ptolemy.kernel.util.NamedObj
NamedObj.ContainedObjectsIterator
 
Field Summary
private  NamedObj _container
          Deprecated. The container.
private  java.lang.String _fontColor
          Deprecated.  
private  java.lang.String _fontFamily
          Deprecated.  
(package private)  Query _fontProperties
          Deprecated. Query box for font properties.
private  java.lang.String _fontSize
          Deprecated. Font characteristic.
private  ConfigurableAttribute _iconDescription
          Deprecated. The attribute containing the icon description.
private  javax.swing.JTextArea _textArea
          Deprecated. The text area of the editor.
 
Fields inherited from class ptolemy.kernel.util.NamedObj
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS
 
Constructor Summary
AnnotationEditorFactory(NamedObj container, java.lang.String name)
          Deprecated. Construct a factory with the specified container and name.
 
Method Summary
 void createEditor(NamedObj object, java.awt.Frame parent)
          Deprecated. Create an editor for configuring the specified object.
 java.awt.Component createEditorPane()
          Deprecated. Return a new widget for configuring the container.
 
Methods inherited from class ptolemy.actor.gui.EditorFactory
createEditor, createEditor
 
Methods inherited from class ptolemy.kernel.util.Attribute
_checkContainer, _getContainedObject, _propagateExistence, clone, getContainer, moveDown, moveToFirst, moveToIndex, moveToLast, moveUp, setContainer, setName, updateContent
 
Methods inherited from class ptolemy.kernel.util.NamedObj
_addAttribute, _adjustOverride, _attachText, _cloneFixAttributeFields, _debug, _debug, _debug, _debug, _debug, _description, _exportMoMLContents, _getIndentPrefix, _isMoMLSuppressed, _markContentsDerived, _propagateValue, _recordDecoratedAttributes, _removeAttribute, _splitName, _stripNumericSuffix, _validateSettables, addChangeListener, addDebugListener, attributeChanged, attributeList, attributeList, attributeTypeChanged, clone, containedObjectsIterator, deepContains, depthInHierarchy, description, description, event, executeChangeRequests, exportMoML, exportMoML, exportMoML, exportMoML, exportMoML, exportMoMLPlain, getAttribute, getAttribute, getAttributes, getChangeListeners, getClassName, getDecoratorAttribute, getDecoratorAttributes, getDerivedLevel, getDerivedList, getDisplayName, getElementName, getFullName, getModelErrorHandler, getName, getName, getPrototypeList, getSource, handleModelError, isDeferringChangeRequests, isOverridden, isPersistent, lazyContainedObjectsIterator, message, propagateExistence, propagateValue, propagateValues, removeChangeListener, removeDebugListener, requestChange, setClassName, setDeferringChangeRequests, setDerivedLevel, setDisplayName, setModelErrorHandler, setPersistent, setSource, sortContainedObjects, toplevel, toString, uniqueName, validateSettables, workspace
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_container

private NamedObj _container
Deprecated. 
The container.


_fontProperties

Query _fontProperties
Deprecated. 
Query box for font properties.


_fontSize

private java.lang.String _fontSize
Deprecated. 
Font characteristic.


_fontFamily

private java.lang.String _fontFamily
Deprecated. 

_fontColor

private java.lang.String _fontColor
Deprecated. 

_iconDescription

private ConfigurableAttribute _iconDescription
Deprecated. 
The attribute containing the icon description.


_textArea

private javax.swing.JTextArea _textArea
Deprecated. 
The text area of the editor.

Constructor Detail

AnnotationEditorFactory

public AnnotationEditorFactory(NamedObj container,
                               java.lang.String name)
                        throws IllegalActionException,
                               NameDuplicationException
Deprecated. 
Construct a factory with the specified container and name.

Parameters:
container - The container.
name - The name of the factory.
Throws:
IllegalActionException - If the factory is not of an acceptable attribute for the container.
NameDuplicationException - If the name coincides with an attribute already in the container.
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 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.