All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ptplot.demo.PlotLiveDemo

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----ptplot.PlotBox
                                   |
                                   +----ptplot.Plot
                                           |
                                           +----ptplot.PlotLive
                                                   |
                                                   +----ptplot.demo.PlotLiveDemo

public class PlotLiveDemo
extends PlotLive
Dynamically plot a test signal, illustrating how to use the PlotLive class.

Version:
@(#)PlotLiveDemo.java 1.23 04/29/98
Author:
Edward A. Lee

Constructor Index

 o PlotLiveDemo()

Method Index

 o addPoints()
Add points to the plot.
 o init()
Define static properties of the plot, such as the title and axis labels.
 o main(String[])
Run as an application for testing.

Constructors

 o PlotLiveDemo
 public PlotLiveDemo()

Methods

 o addPoints
 public synchronized void addPoints()
Add points to the plot. This is called by the base class run() method while live plotting is enabled.

Overrides:
addPoints in class PlotLive
 o init
 public void init()
Define static properties of the plot, such as the title and axis labels. This also calls the base class init(), which performs various initialization functions and reads commands from a file given by a URL, if the dataurl applet parameter is given. Since the base class init() is called after the static plot parameters are defined, then the commands from the file will override the static ones given here. This method also creates start and stop buttons to control the plot.

Overrides:
init in class Plot
 o main
 public static void main(String args[])
Run as an application for testing. Run with:
java -classpath ../..:/opt/jdk1.1.4/lib/classes.zip ptplot.demo.PlotLiveDemo
 


All Packages  Class Hierarchy  This Package  Previous  Next  Index