M - the data type used by this seriespublic class GaugeSeries<M> extends AbstractPieSeries<M>
GaugeSeries gauge = new GaugeSeries();
gauge.setAngleField(provider);
gauge.addColor(RGB.GREEN);
gauge.addColor(new RGB("#ddd"));
chart.addSeries(gauge);
First the series is created with its associated data type. Next the value
provider field is set, which provides the value of the gauge. Two colors are
added the first representing the slider color and the second representing the
background. Finally the series is added to the chart where it will be
displayed.Series.LabelPosition| Constructor and Description |
|---|
GaugeSeries()
Creates a gauge
Series. |
| Modifier and Type | Method and Description |
|---|---|
void |
drawSeries()
Draws the series for the current chart.
|
void |
hide(int yFieldIndex)
Hides the given y field index from the series.
|
void |
highlight(int yFieldIndex)
Highlights the series at the given series index.
|
void |
highlightAll(int index)
Highlights all of the items in the series.
|
boolean |
isNeedle()
Returns whether or not the series uses a needle in place of a wedge.
|
int |
onMouseMove(PrecisePoint point,
Event event)
Method used when the series is moused over.
|
void |
onMouseOut(PrecisePoint point,
Event event)
Method used when the mouse leaves the series.
|
void |
setNeedle(boolean needle)
Sets whether or not the series uses a needle in place of a wedge.
|
void |
show(int yFieldIndex)
Shows the given y field index from the series.
|
void |
unHighlight(int yFieldIndex)
Removes highlighting from the given series index.
|
void |
unHighlightAll(int index)
UnHighlights all items in the series.
|
boolean |
visibleInLegend(int index)
Returns whether or not the given series index is visible in legend.
|
getAngleField, getDonut, getLegendLabelProvider, getLegendTitles, setAngleField, setDonut, setLegendLabelProvider, setLegendValueProvideraddColor, addColor, getColor, getColors, removeColor, removeColor, setColoraddSeriesHandler, addSeriesItemOutHandler, addSeriesItemOverHandler, addSeriesItemUpHandler, addSeriesSelectionHandler, calculateBBox, clear, getBBox, getChart, getGutters, getHighlighter, getLabelConfig, getLegendNames, getRenderer, getShadowRenderer, getStroke, getStrokeWidth, getToolTip, getToolTipConfig, getValueProviderName, getXField, hideToolTip, highlightedState, isHighlighting, isShownInLegend, onMouseDown, onMouseUp, removeToolTip, setChart, setHighlighter, setHighlighting, setLabelConfig, setRenderer, setShadowRenderer, setShownInLegend, setStroke, setStrokeWidth, setToolTipConfig, setXFieldpublic GaugeSeries()
Series.public void drawSeries()
SeriesdrawSeries in class Series<M>public void hide(int yFieldIndex)
Seriespublic void highlight(int yFieldIndex)
Seriespublic void highlightAll(int index)
SerieshighlightAll in class Series<M>index - the index of the seriespublic boolean isNeedle()
public int onMouseMove(PrecisePoint point, Event event)
SeriesonMouseMove in class Series<M>point - the point moused overpublic void onMouseOut(PrecisePoint point, Event event)
SeriesonMouseOut in class Series<M>point - the point leftpublic void setNeedle(boolean needle)
needle - true if needlepublic void show(int yFieldIndex)
Seriespublic void unHighlight(int yFieldIndex)
SeriesunHighlight in class Series<M>yFieldIndex - the index to have its highlighting removedpublic void unHighlightAll(int index)
SeriesunHighlightAll in class Series<M>index - the index of the seriespublic boolean visibleInLegend(int index)
SeriesvisibleInLegend in class Series<M>index - the series index to determine visibleCopyright © 2014. All Rights Reserved.