public class SinePlot
extends java.lang.Object
Two alternative ways of setting up the plot are provided by way of example, but they have the same effect.
To use this class invoke the main() method from the command line. Use the -h flag for options.
Modifier and Type | Class | Description |
---|---|---|
static interface |
SinePlot.PlanePlotter |
Abstracts the way that the table is turned into a 2d plot component.
|
Constructor | Description |
---|---|
SinePlot(SinePlot.PlanePlotter planePlotter,
int count) |
Constructor.
|
Modifier and Type | Method | Description |
---|---|---|
static void |
main(java.lang.String[] args) |
Main method.
|
void |
run(int updateMillis) |
Constructs a plot and posts it to the screen.
|
public SinePlot(SinePlot.PlanePlotter planePlotter, int count) throws java.lang.Exception
planePlotter
- object that does the plotcount
- number of points to plotjava.lang.Exception
public void run(int updateMillis) throws java.lang.Exception
updateMillis
- if positive, gives an interval in millisecnds
at which the plot should be refreshed;
if non-positive, the data is considered staticjava.lang.Exception
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
Copyright © 2018 Central Laboratory of the Research Councils. All Rights Reserved.