public class AdvancedLineAndPointRenderer extends XYSeriesRenderer<XYSeries,AdvancedLineAndPointRenderer.Formatter>
XYSeriesRenderer that provides instrumentation
allowing advanced behaviors like dynamically coloring / styling individual segments of a series, etc. This class
may be removed or renamed in future releases.
Currently has the following constraints:
- Interpolation is not supported
- Only draws lines; no points or fill
- Draws series lines using simple Canvas.drawLine(...) invocations.| Modifier and Type | Class and Description |
|---|---|
static class |
AdvancedLineAndPointRenderer.Formatter
Formatter designed to work in tandem with
AdvancedLineAndPointRenderer. |
| Constructor and Description |
|---|
AdvancedLineAndPointRenderer(XYPlot plot) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doDrawLegendIcon(android.graphics.Canvas canvas,
android.graphics.RectF rect,
AdvancedLineAndPointRenderer.Formatter formatter)
Draw the legend icon in the rect passed in.
|
protected void |
onRender(android.graphics.Canvas canvas,
android.graphics.RectF plotArea,
XYSeries series,
AdvancedLineAndPointRenderer.Formatter formatter,
RenderStack stack) |
void |
setLatestIndex(int latestIndex) |
getUniqueRegionFormattersdrawSeriesLegendIcon, getFormatter, getPlot, getSeriesAndFormatterList, getSeriesList, render, setPlotpublic AdvancedLineAndPointRenderer(XYPlot plot)
protected void onRender(android.graphics.Canvas canvas,
android.graphics.RectF plotArea,
XYSeries series,
AdvancedLineAndPointRenderer.Formatter formatter,
RenderStack stack)
throws PlotRenderException
onRender in class SeriesRenderer<XYPlot,XYSeries,AdvancedLineAndPointRenderer.Formatter>series - The series to be renderedformatter - The getFormatter that should be used to render the seriesstack - Ordered list of all series being renderered. May be manipulated by the Renderer
to gain effect.PlotRenderExceptionprotected void doDrawLegendIcon(android.graphics.Canvas canvas,
android.graphics.RectF rect,
AdvancedLineAndPointRenderer.Formatter formatter)
SeriesRendererdoDrawLegendIcon in class SeriesRenderer<XYPlot,XYSeries,AdvancedLineAndPointRenderer.Formatter>public void setLatestIndex(int latestIndex)