org.cafesip.gwtcomp.client.common
Class TimeSeriesPlotData
java.lang.Object
org.cafesip.gwtcomp.client.common.TimeSeriesPlotData
- All Implemented Interfaces:
- Serializable, ChartDataElement, PlotInfo
public class TimeSeriesPlotData
- extends Object
- implements ChartDataElement, PlotInfo, Serializable
This class is used for passing data for a given plot to be displayed by the
org.cafesip.gwtcomp.client.ui.charting.LiveDataService component.
- Author:
- Amit Chatterjee
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TimeSeriesPlotData
public TimeSeriesPlotData()
- A constructor for this class.
TimeSeriesPlotData
public TimeSeriesPlotData(Date timestamp,
Double[] value)
- A constructor for this class.
- Parameters:
timestamp - timestamp for the data point.value - the data, each element of the array represents the Y-value for
a series. If your plot has 3 series, the array must have 3
elements representing the value for each series at the give
time.
getTimestamp
public Date getTimestamp()
- Returns:
- Returns the timestamp.
setTimestamp
public void setTimestamp(Date timestamp)
- Parameters:
timestamp - The timestamp to set.
getValue
public Double[] getValue()
- Returns:
- Returns the value.
setValue
public void setValue(Double[] value)
- Parameters:
value - The value to set.
Copyright © 2010 Cafesip.org. All Rights Reserved.