|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.primordion.xholon.io.AbstractChartViewer
This is the abstract superclass for concrete classes that capture data and display the data in a chart.
Field Summary |
Fields inherited from interface org.primordion.xholon.io.IChartViewer |
WRITE_AS_DOUBLE, WRITE_AS_FLOAT, WRITE_AS_INT, WRITE_AS_LONG, WRITE_AS_NULL, WRITE_AS_SHORT, WRITE_TIME_IN_HEADING |
Constructor Summary | |
AbstractChartViewer()
|
Method Summary | |
abstract void |
capture(double timeStep)
Capture data at each timestep. |
abstract void |
capture(int numTimeSeries,
double xVal,
double[] yVal)
Capture specified data at each time interval. |
abstract void |
chart()
Produce a chart from the captured data. |
abstract void |
remove()
Remove the chart from the screen. |
void |
setXRange(double min,
double max)
Set the X range of the chart. |
void |
setYFormat(java.lang.String yFormat)
Set the format of the y axis of the chart. |
void |
setYRange(double min,
double max)
Set the Y range of the chart. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.primordion.xholon.io.IChartViewer |
chart, createXySeries, initialize |
Constructor Detail |
public AbstractChartViewer()
Method Detail |
public abstract void capture(double timeStep)
IChartViewer
capture
in interface IChartViewer
timeStep
- Time step, or other time interval.public abstract void capture(int numTimeSeries, double xVal, double[] yVal)
IChartViewer
capture
in interface IChartViewer
numTimeSeries
- Number of time series indices.xVal
- X Value.yVal
- Y Values.public abstract void chart()
IChartViewer
chart
in interface IChartViewer
public void setXRange(double min, double max)
IChartViewer
setXRange
in interface IChartViewer
min
- Minimum cutoff value to show in the chart.max
- Maximum cutoff value to show in the chart.public void setYRange(double min, double max)
IChartViewer
setYRange
in interface IChartViewer
min
- Minimum cutoff value to show in the chart.max
- Maximum cutoff value to show in the chart.public void setYFormat(java.lang.String yFormat)
IChartViewer
setYFormat
in interface IChartViewer
yFormat
- A format string (ex: "%.4f" or "%.0f")public abstract void remove()
IChartViewer
remove
in interface IChartViewer
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |