All Packages Class Hierarchy This Package Previous Next Index
Class ptolemy.plot.PlotFrame
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Window
|
+----java.awt.Frame
|
+----ptolemy.plot.PlotFrame
- public class PlotFrame
- extends Frame
PlotFrame is a versatile two-dimensional data plotter that runs as
part of an application, but in its own window. It can read files
compatible with the Ptolemy plot file format (currently only ASCII),
or the application can interact directly with the contained Plot
object, which is visible as a public member. For a description of
the file format, see the Plot and PlotBox classes.
An application that uses this class should set up the handling of
window-closing events. Presumably, the application will exit when
all windows have been closed. This is done with code something like:
plotFrameInstance.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
// Handle the event
}
});
- Version:
- $Id: PlotFrame.java,v 1.6 1998/11/21 02:09:06 lmuliadi Exp $
- Author:
- Christopher Hylands and Edward A. Lee
- See Also:
- Plot, PlotBox
-
_directory
-
-
_fileMenu
-
-
_filename
-
-
_menubar
-
-
_specialMenu
-
-
plot
- The plot object held by this frame.
-
PlotFrame()
- Construct a plot frame with a default title.
-
PlotFrame(String)
- Construct a plot frame with the specified title.
-
_about()
- Display basic information about the application.
-
_close()
- Close the window.
-
_help()
- Display more detailed information than given by _about().
-
_open()
- Open a new file and plot its data.
-
_print()
- Print the plot.
-
_save()
- Save the plot to the current file, determined by the _directory
and _filename protected variables.
-
_saveAs()
- Query the user for a filename and save the plot to that file.
-
samplePlot()
- Create a sample plot.
plot
public Plot plot
- The plot object held by this frame.
_menubar
protected MenuBar _menubar
_fileMenu
protected Menu _fileMenu
_specialMenu
protected Menu _specialMenu
_directory
protected String _directory
_filename
protected String _filename
PlotFrame
public PlotFrame()
- Construct a plot frame with a default title.
PlotFrame
public PlotFrame(String title)
- Construct a plot frame with the specified title.
samplePlot
public void samplePlot()
- Create a sample plot.
_about
protected void _about()
- Display basic information about the application.
_close
protected void _close()
- Close the window.
_help
protected void _help()
- Display more detailed information than given by _about().
_open
protected void _open()
- Open a new file and plot its data.
_print
protected void _print()
- Print the plot.
_save
protected void _save()
- Save the plot to the current file, determined by the _directory
and _filename protected variables.
_saveAs
protected void _saveAs()
- Query the user for a filename and save the plot to that file.
All Packages Class Hierarchy This Package Previous Next Index