public abstract class XyPlotBase<X extends Comparable> extends Object implements XyPlot<X>
This is open source software released under the Apache 2.0 License
| Modifier and Type | Class and Description |
|---|---|
private class |
XyPlotBase.StyleAdapter
A XyStyle adapter implementation
|
| Modifier and Type | Field and Description |
|---|---|
private ColorModel |
colorModel |
private Map<Comparable,XyPlotBase.StyleAdapter> |
styleMap |
| Modifier | Constructor and Description |
|---|---|
protected |
XyPlotBase()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
ColorModel |
getColorModel()
Returns a reference to the color model for this chart
|
Color |
getSeriesColor(Comparable seriesKey)
Returns the series override color, or null if not set
|
Float |
getSeriesLineWidth(Comparable seriesKey)
Returns the series override line width, or null if not set
This is only relevant for series rendered with lines
|
ChartShape |
getSeriesPointShape(Comparable seriesKey)
Returns the series override shape, or null if not set
This is only relevant for series rendered with points
|
Boolean |
isSeriesDashedLine(Comparable seriesKey)
Returns the series override to control whether line is dashed or not
|
Boolean |
isSeriesPointsVisible(Comparable seriesKey)
Returns the series override point visibility, or null if not set
|
XyStyle |
style(Comparable seriesKey)
Returns the series style interface for the series key specified
|
XyPlot<X> |
withColorModel(ColorModel colorModel)
Applies a color model to choose series colors for this plot
|
private ColorModel colorModel
private Map<Comparable,XyPlotBase.StyleAdapter> styleMap
public ColorModel getColorModel()
public XyPlot<X> withColorModel(ColorModel colorModel)
XyPlotwithColorModel in interface XyPlot<X extends Comparable>colorModel - the color model for plotpublic XyStyle style(Comparable seriesKey)
XyPlotstyle in interface XyPlot<X extends Comparable>seriesKey - the series key to operatepublic Color getSeriesColor(Comparable seriesKey)
seriesKey - the series keypublic Float getSeriesLineWidth(Comparable seriesKey)
seriesKey - the series keypublic ChartShape getSeriesPointShape(Comparable seriesKey)
seriesKey - the series keypublic Boolean isSeriesPointsVisible(Comparable seriesKey)
seriesKey - the series keypublic Boolean isSeriesDashedLine(Comparable seriesKey)
seriesKey - the series keyCopyright 2014-2017, Xavier Witdouck