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(LiveDataUpdateEvent)) 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, getPointPadding, getPointPlacement, getPointStart, getShowInLegend, getSize, getStack, getStates, getTooltip, getType, getWickedChartsId, getxAxis, getyAxis, setCenter, setColor, setColor, setDashStyle, setDataLabels, setEnableMouseTracking, setInnerSize, setLegendIndex, setMarker, setName, setPointInterval, setPointPadding, 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(LiveDataUpdateEvent)) 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(LiveDataUpdateEvent). The javascript expression
may be a function call or a literal. If it is a literal string,
you have to surround the string with single quotes. Don't use
double quotes in an expression since they are not escaped correctly.public int getUpdateIntervalMs()
public String getProcessingKey()
getProcessingKey in interface IProcessableOptionpublic abstract Point update(LiveDataUpdateEvent event)
event - the LiveDataUpdateEventCopyright © 2016. All rights reserved.