
EditorFactory |
ptolemy.actor.gui.EditorFactory |
This is an attribute that can create an editor for interactively
configuring its container. If you place an instance of this class
inside a Ptolemy II object, then when a user double clicks on the
object or selects Configure from the context menu, instead of
the default behavior (which is to edit parameters), the createEditor()
method of this class is called.
This differs from EditorPaneFactory
in that it is responsible to every aspect of creating the editor.
Thus, it has to create a top-level window, rather than just a pane
to insert in a top-level window.
In this base class, the createEditor() method is abstract.
Derived classes must override this method to present a user
interface for configuring the object.
For example, a digital filter actor could present a filter
design interface. A plotter actor could present a panel for
configuring a plot. A file reader actor could present a file
browser.
Author(s): Edward A. Lee
Version:$Id: EditorFactory.java,v 1.22 2006/03/28 23:56:12 cxh Exp $
Pt.Proposed Rating:Red (eal)
Pt.Accepted Rating:Red (johnr)