public abstract class LiveDataSeries extends PointSeries implements IProcessableOption
| Modifier and Type | Field and Description |
|---|---|
static String |
PROCESSING_KEY
The key under which
LiveDataSeries are registered in the parent
options. |
| Constructor and Description |
|---|
LiveDataSeries(Options parentOptions,
int updateIntervalMs)
Constructs a new
LiveDataSeries. |
| Modifier and Type | Method and Description |
|---|---|
LiveDataSeries |
addJavaScriptParameter(String parameterName,
String javascriptExpression)
Adds a javascript parameter that will be passed into the
#update(JavaScriptParameters) method. |
Map<String,String> |
getJavaScriptParameters() |
Options |
getParentOptions() |
String |
getProcessingKey() |
int |
getUpdateIntervalMs() |
LiveDataSeries |
setUpdateIntervalMs(int updateIntervalMs) |
abstract Point |
update(LiveDataUpdateEvent event)
This method is called for each update interval.
|
addNumberPoint, addNumbers, getData, setData, setData, setNumberData, setNumberDataaddPoint, getCenter, getColor, getDashStyle, getDataLabels, getEnableMouseTracking, getInnerSize, getLegendIndex, getMarker, getName, getPointInterval, getPointPlacement, getPointStart, getShowInLegend, getSize, getStack, getStates, getTooltip, getType, getWickedChartsId, getxAxis, getyAxis, setCenter, setColor, setColor, setDashStyle, setDataLabels, setEnableMouseTracking, setInnerSize, setLegendIndex, setMarker, setName, setPointInterval, setPointPlacement, setPointStart, setShowInLegend, setSize, setStack, setStates, setTooltip, setType, setWickedChartsId, setxAxis, setyAxispublic static final String PROCESSING_KEY
LiveDataSeries are registered in the parent
options. See Options.markForProcessing(IProcessableOption) .public LiveDataSeries(Options parentOptions, int updateIntervalMs)
LiveDataSeries.parentOptions - the Options to which this series are added.updateIntervalMs - the interval in which to update the series in milliseconds.public Options getParentOptions()
public LiveDataSeries setUpdateIntervalMs(int updateIntervalMs)
public LiveDataSeries addJavaScriptParameter(String parameterName, String javascriptExpression)
#update(JavaScriptParameters) method.parameterName - the name of the parameterjavascriptExpression - a javascript expression. The value this expression evaluates to
will be transmitted to the server via AJAX and will be passed into
#update(JavaScriptParameters). The javascript expression
may be a function call or a literal. If it is a literal string,
you have to surround the string with quotes.public int getUpdateIntervalMs()
public String getProcessingKey()
getProcessingKey in interface IProcessableOptionpublic abstract Point update(LiveDataUpdateEvent event)
event - the LiveDataUpdateEventCopyright © 2013. All Rights Reserved.