M - the data type used by this seriespublic class RadarSeries<M> extends ScatterSeries<M>
RadarSeries radar = new RadarSeries();
radar.setYField(dataAccess.data1());
radar.setStroke(RGB.GREEN);
chart.addSeries(radar);
First the series is created with its associated data type. Next the value
provider field is set, which provides the value of each point on the line.
The stroke is set to represent the color of the line. Finally the series is
added to the chart where it will be displayed.Series.LabelPosition| Constructor and Description |
|---|
RadarSeries()
Creates a radar series.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Removes all the sprites of the series from the surface.
|
void |
drawSeries()
Draws the series for the current chart.
|
Color |
getFill()
Returns the fill of the line in the series.
|
SeriesRenderer<M> |
getLineRenderer()
Returns the
SeriesRenderer used on the line sprite. |
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 |
isShowMarkers()
Returns whether or not the series shows markers.
|
void |
setFill(Color fill)
Sets the fill of the line in the series.
|
void |
setLineRenderer(SeriesRenderer<M> lineRenderer)
Sets the
SeriesRenderer used on the line sprite |
void |
setShowMarkers(boolean showMarkers)
Sets whether or not the series shows markers.
|
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.
|
calculateBounds, getMarkerConfig, getSelectionTolerance, getTitle, getXAxisPosition, getYAxisPosition, getYField, setLegendTitle, setMarkerConfig, setSelectionTolerance, setXAxisPosition, setYAxisPosition, setYFieldaddSeriesHandler, addSeriesItemOutHandler, addSeriesItemOverHandler, addSeriesItemUpHandler, addSeriesSelectionHandler, calculateBBox, getBBox, getChart, getGutters, getHighlighter, getLabelConfig, getLegendNames, getLegendTitles, getRenderer, getShadowRenderer, getStroke, getStrokeWidth, getToolTip, getToolTipConfig, getValueProviderName, getXField, hideToolTip, highlightedState, isHighlighting, isShownInLegend, onMouseDown, onMouseMove, onMouseOut, onMouseUp, removeToolTip, setChart, setHighlighter, setHighlighting, setLabelConfig, setRenderer, setShadowRenderer, setShownInLegend, setStroke, setStrokeWidth, setToolTipConfig, setXFieldpublic void clear()
Seriespublic void drawSeries()
SeriesdrawSeries in class ScatterSeries<M>public Color getFill()
public SeriesRenderer<M> getLineRenderer()
SeriesRenderer used on the line sprite.public void hide(int yFieldIndex)
Serieshide in class ScatterSeries<M>yFieldIndex - the index of the y fieldpublic void highlight(int yFieldIndex)
Serieshighlight in class ScatterSeries<M>yFieldIndex - the series index to be highlightedpublic void highlightAll(int index)
SerieshighlightAll in class ScatterSeries<M>index - the index of the seriespublic boolean isShowMarkers()
public void setFill(Color fill)
fill - the fill of the line in the seriespublic void setLineRenderer(SeriesRenderer<M> lineRenderer)
SeriesRenderer used on the line spritelineRenderer - the series renderer used on the line spritepublic void setShowMarkers(boolean showMarkers)
showMarkers - true if markers shownpublic void show(int yFieldIndex)
Seriesshow in class ScatterSeries<M>yFieldIndex - the index of the y fieldpublic void unHighlight(int yFieldIndex)
SeriesunHighlight in class ScatterSeries<M>yFieldIndex - the index to have its highlighting removedpublic void unHighlightAll(int index)
SeriesunHighlightAll in class ScatterSeries<M>index - the index of the seriespublic boolean visibleInLegend(int index)
SeriesvisibleInLegend in class ScatterSeries<M>index - the series index to determine visibleCopyright © 2014. All Rights Reserved.