public class LineAndPointRenderer<FormatterType extends LineAndPointFormatter> extends XYSeriesRenderer<XYSeries,FormatterType>
| Modifier and Type | Field and Description |
|---|---|
protected static int |
ONE |
protected ConcurrentHashMap<XYSeries,ArrayList<android.graphics.PointF>> |
pointsCaches |
protected static int |
ZERO |
| Constructor and Description |
|---|
LineAndPointRenderer(XYPlot plot) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
appendToPath(android.graphics.Path path,
android.graphics.PointF thisPoint,
android.graphics.PointF lastPoint)
This method exists for StepRenderer to override without having to duplicate any
additional code.
|
protected android.graphics.PointF |
convertPoint(XYCoords coord,
android.graphics.RectF plotArea) |
protected void |
cullPointsCache() |
void |
doDrawLegendIcon(android.graphics.Canvas canvas,
android.graphics.RectF rect,
LineAndPointFormatter formatter)
Draw the legend icon in the rect passed in.
|
protected void |
drawSeries(android.graphics.Canvas canvas,
android.graphics.RectF plotArea,
XYSeries series,
LineAndPointFormatter formatter) |
protected Interpolator |
getInterpolator(InterpolationParams params)
TODO: retrieve from a persistent registry
|
protected ArrayList<android.graphics.PointF> |
getPointsCache(XYSeries series)
Retrieves or initializes a list for storing calculated screen-coords to render as points.
|
void |
onRender(android.graphics.Canvas canvas,
android.graphics.RectF plotArea,
XYSeries series,
FormatterType formatter,
RenderStack stack) |
protected void |
renderPath(android.graphics.Canvas canvas,
android.graphics.RectF plotArea,
android.graphics.Path path,
android.graphics.PointF firstPoint,
android.graphics.PointF lastPoint,
LineAndPointFormatter formatter) |
protected void |
renderPoints(android.graphics.Canvas canvas,
android.graphics.RectF plotArea,
XYSeries series,
int iStart,
int iEnd,
List<android.graphics.PointF> points,
LineAndPointFormatter formatter) |
getUniqueRegionFormattersdrawSeriesLegendIcon, getFormatter, getPlot, getSeriesAndFormatterList, getSeriesList, render, setPlotprotected static final int ZERO
protected static final int ONE
protected final ConcurrentHashMap<XYSeries,ArrayList<android.graphics.PointF>> pointsCaches
public LineAndPointRenderer(XYPlot plot)
public void onRender(android.graphics.Canvas canvas,
android.graphics.RectF plotArea,
XYSeries series,
FormatterType formatter,
RenderStack stack)
throws PlotRenderException
onRender in class SeriesRenderer<XYPlot,XYSeries,FormatterType extends LineAndPointFormatter>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.PlotRenderExceptionpublic void doDrawLegendIcon(android.graphics.Canvas canvas,
android.graphics.RectF rect,
LineAndPointFormatter formatter)
SeriesRendererdoDrawLegendIcon in class SeriesRenderer<XYPlot,XYSeries,FormatterType extends LineAndPointFormatter>protected void appendToPath(android.graphics.Path path,
android.graphics.PointF thisPoint,
android.graphics.PointF lastPoint)
protected ArrayList<android.graphics.PointF> getPointsCache(XYSeries series)
series - protected void cullPointsCache()
protected void drawSeries(android.graphics.Canvas canvas,
android.graphics.RectF plotArea,
XYSeries series,
LineAndPointFormatter formatter)
protected Interpolator getInterpolator(InterpolationParams params)
params - protected android.graphics.PointF convertPoint(XYCoords coord, android.graphics.RectF plotArea)
protected void renderPoints(android.graphics.Canvas canvas,
android.graphics.RectF plotArea,
XYSeries series,
int iStart,
int iEnd,
List<android.graphics.PointF> points,
LineAndPointFormatter formatter)
protected void renderPath(android.graphics.Canvas canvas,
android.graphics.RectF plotArea,
android.graphics.Path path,
android.graphics.PointF firstPoint,
android.graphics.PointF lastPoint,
LineAndPointFormatter formatter)