M
- the data type of the seriespublic abstract class MultipleColorSeries<M> extends Series<M>
Series.LabelPosition
Modifier and Type | Field and Description |
---|---|
protected ArrayList<Color> |
colors |
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 |
---|
MultipleColorSeries() |
Modifier and Type | Method and Description |
---|---|
boolean |
addColor(Color color)
Adds a color to the list of colors used in the series.
|
void |
addColor(int index,
Color color)
Adds a color to the list of colors used in the series.
|
Color |
getColor(int index)
Returns the color at the given index.
|
List<Color> |
getColors()
Returns the list of colors used by the series.
|
boolean |
removeColor(Color color)
Removes the first occurrence given color.
|
Color |
removeColor(int index)
Removes the color at the given index.
|
Color |
setColor(int index,
Color color)
Sets the color at the given index.
|
addSeriesHandler, addSeriesItemOutHandler, addSeriesItemOverHandler, addSeriesItemUpHandler, addSeriesSelectionHandler, calculateBBox, clear, drawSeries, ensureHandlers, getBBox, getChart, getGutters, getHighlighter, getIndex, getLabelConfig, getLegendNames, getLegendTitles, getPointFromCommand, getRenderer, getShadowRenderer, getStoreIndex, getStroke, getStrokeWidth, getToolTip, getToolTipConfig, getValueProvider, getValueProviderName, getXField, hide, hideShadows, hideToolTip, highlight, highlightAll, highlightedState, isHighlighting, isShownInLegend, onMouseDown, onMouseMove, onMouseOut, onMouseUp, removeToolTip, setChart, setHighlighter, setHighlighting, setLabelConfig, setLabelContrast, setLabelText, setRenderer, setShadowRenderer, setShownInLegend, setStroke, setStrokeWidth, setToolTipConfig, setXField, show, unHighlight, unHighlightAll, visibleInLegend
public boolean addColor(Color color)
color
- the color to addpublic void addColor(int index, Color color)
index
- the index to add the colorcolor
- the color to be addedpublic Color getColor(int index)
index
- the index of the colorpublic List<Color> getColors()
public boolean removeColor(Color color)
color
- the color to be removedpublic Color removeColor(int index)
index
- the index of the colorCopyright © 2018. All rights reserved.