edu.brook.ascape.view
Class TimeSeriesViewModel
java.lang.Object
|
+--java.util.Observable
|
+--jclass.chart.ChartDataModel
|
+--edu.brook.ascape.view.ChartViewModel
|
+--edu.brook.ascape.view.TimeSeriesViewModel
- public class TimeSeriesViewModel
- extends ChartViewModel
A class managing data and display for a time series chart.
Requires KLGroup JCChart.
- Since:
- 1.0
- Version:
- 1.5
- See Also:
- Serialized Form
|
Field Summary |
static int |
ALL_POINTS
Symbol for 'display all data points.' |
protected int |
displayPoints
Number of display points to display. |
|
Method Summary |
int |
getDisplayPoints()
Gets display points, the number of points (iterations) to display
on the chart x-axis. |
java.util.Vector |
getRow(int row)
Data method for JCChart. |
void |
initialize()
Initialize view model, setting min, max, and the like. |
void |
onUpdate()
Update the chart, setting min and max. |
void |
setDisplayPoints(int displayPoints)
Set display points, the number of points (iterations) to display
on the chart x-axis. |
| Methods inherited from class edu.brook.ascape.view.ChartViewModel |
addScape,
getChart,
getDataInterpretation,
getDataItem,
getDataSelection,
getName,
getNumRows,
getPointLabels,
getScape,
getSeriesLabel,
getSeriesName,
onChange,
onIterate,
onSetup,
onStart,
onStop,
removeScape,
scapeUpdated,
setChart,
setDataItem,
setDataSelection,
setName,
update,
updateChart,
updated |
| Methods inherited from class java.util.Observable |
addObserver,
clearChanged,
countObservers,
deleteObserver,
deleteObservers,
hasChanged,
notifyObservers,
notifyObservers,
setChanged |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
ALL_POINTS
public static final int ALL_POINTS
- Symbol for 'display all data points.'
displayPoints
protected int displayPoints
- Number of display points to display. (Default all.)
TimeSeriesViewModel
public TimeSeriesViewModel()
initialize
public void initialize()
- Initialize view model, setting min, max, and the like.
- Overrides:
- initialize in class ChartViewModel
onUpdate
public void onUpdate()
- Update the chart, setting min and max.
- Overrides:
- onUpdate in class ChartViewModel
setDisplayPoints
public void setDisplayPoints(int displayPoints)
- Set display points, the number of points (iterations) to display
on the chart x-axis. One of a positive number or ALL_POINTS.
- Parameters:
displayPoints - the number of points to display
getDisplayPoints
public int getDisplayPoints()
- Gets display points, the number of points (iterations) to display
on the chart x-axis. One of a positive number or ALL_POINTS.
getRow
public java.util.Vector getRow(int row)
- Data method for JCChart.
- Overrides:
- getRow in class jclass.chart.ChartDataModel