public abstract class SeriesRenderer<PlotType extends Plot,SeriesType extends Series,SeriesFormatterType extends Formatter>
extends java.lang.Object
Constructor and Description |
---|
SeriesRenderer(PlotType plot) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
doDrawLegendIcon(android.graphics.Canvas canvas,
android.graphics.RectF rect,
SeriesFormatterType formatter)
Draw the legend icon in the rect passed in.
|
void |
drawSeriesLegendIcon(android.graphics.Canvas canvas,
android.graphics.RectF rect,
SeriesFormatterType formatter) |
SeriesFormatterType |
getFormatter(SeriesType series) |
PlotType |
getPlot() |
java.util.List<SeriesBundle<SeriesType,? extends SeriesFormatterType>> |
getSeriesAndFormatterList() |
java.util.List<SeriesType> |
getSeriesList() |
protected abstract void |
onRender(android.graphics.Canvas canvas,
android.graphics.RectF plotArea,
SeriesType series,
SeriesFormatterType formatter,
RenderStack stack) |
void |
render(android.graphics.Canvas canvas,
android.graphics.RectF plotArea,
SeriesBundle<SeriesType,SeriesFormatterType> sfPair,
RenderStack stack) |
void |
setPlot(PlotType plot) |
public SeriesRenderer(PlotType plot)
public PlotType getPlot()
public void setPlot(PlotType plot)
public SeriesFormatterType getFormatter(SeriesType series)
public void render(android.graphics.Canvas canvas, android.graphics.RectF plotArea, SeriesBundle<SeriesType,SeriesFormatterType> sfPair, RenderStack stack) throws PlotRenderException
canvas
- plotArea
- sfPair
- The series / formatter pair to be renderedPlotRenderException
protected abstract void onRender(android.graphics.Canvas canvas, android.graphics.RectF plotArea, SeriesType series, SeriesFormatterType formatter, RenderStack stack) throws PlotRenderException
canvas
- plotArea
- 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.PlotRenderException
protected abstract void doDrawLegendIcon(android.graphics.Canvas canvas, android.graphics.RectF rect, SeriesFormatterType formatter)
canvas
- rect
- public void drawSeriesLegendIcon(android.graphics.Canvas canvas, android.graphics.RectF rect, SeriesFormatterType formatter)
public java.util.List<SeriesBundle<SeriesType,? extends SeriesFormatterType>> getSeriesAndFormatterList()
SeriesBundle
instances currently associated
with this Renderer.public java.util.List<SeriesType> getSeriesList()