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
coordinates, hidden, markerConfig, max, min, scale, selectionTolerance, xAxisPosition, yAxisPosition, yField
bbox, chart, handlerManager, highlighter, highlighting, labelConfig, labels, lastHighlighted, legendNames, legendTitles, renderer, shadowAttributes, shadowed, shadowGroups, shadowRenderer, shownInLegend, sprites, stroke, strokeWidth, toolTip, toolTipConfig, xField
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.
|
protected int |
getIndex(PrecisePoint point)
Returns the series index from the given point.
|
SeriesRenderer<M> |
getLineRenderer()
Returns the
SeriesRenderer used on the line sprite. |
void |
hide(int yFieldIndex)
Hides the given y field index from the series.
|
protected void |
hideShadows() |
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, drawLabels, drawMarkers, drawShadows, getMarkerConfig, getSelectionTolerance, getStoreIndex, getTitle, getValueProvider, getXAxisPosition, getYAxisPosition, getYField, setLegendTitle, setMarkerConfig, setSelectionTolerance, setXAxisPosition, setYAxisPosition, setYField, shrink
addSeriesHandler, addSeriesItemOutHandler, addSeriesItemOverHandler, addSeriesItemUpHandler, addSeriesSelectionHandler, calculateBBox, ensureHandlers, getBBox, getChart, getGutters, getHighlighter, getLabelConfig, getLegendNames, getLegendTitles, getPointFromCommand, getRenderer, getShadowRenderer, getStroke, getStrokeWidth, getToolTip, getToolTipConfig, getValueProviderName, getXField, hideToolTip, highlightedState, isHighlighting, isShownInLegend, onMouseDown, onMouseMove, onMouseOut, onMouseUp, removeToolTip, setChart, setHighlighter, setHighlighting, setLabelConfig, setLabelContrast, setLabelText, setRenderer, setShadowRenderer, setShownInLegend, setStroke, setStrokeWidth, setToolTipConfig, setXField
public void clear()
Series
public void drawSeries()
Series
drawSeries
in class ScatterSeries<M>
public Color getFill()
public SeriesRenderer<M> getLineRenderer()
SeriesRenderer
used on the line sprite.public void hide(int yFieldIndex)
Series
hide
in class ScatterSeries<M>
yFieldIndex
- the index of the y fieldpublic void highlight(int yFieldIndex)
Series
highlight
in class ScatterSeries<M>
yFieldIndex
- the series index to be highlightedpublic void highlightAll(int index)
Series
highlightAll
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)
Series
show
in class ScatterSeries<M>
yFieldIndex
- the index of the y fieldpublic void unHighlight(int yFieldIndex)
Series
unHighlight
in class ScatterSeries<M>
yFieldIndex
- the index to have its highlighting removedpublic void unHighlightAll(int index)
Series
unHighlightAll
in class ScatterSeries<M>
index
- the index of the seriespublic boolean visibleInLegend(int index)
Series
visibleInLegend
in class ScatterSeries<M>
index
- the series index to determine visibleprotected int getIndex(PrecisePoint point)
Series
getIndex
in class ScatterSeries<M>
point
- the point get the series indexprotected void hideShadows()
hideShadows
in class Series<M>
Copyright © 2018. All rights reserved.