public class LineAndPointRenderer<FormatterType extends LineAndPointFormatter> extends XYSeriesRenderer<FormatterType>
Modifier and Type | Field and Description |
---|---|
protected static int |
ONE |
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(XY coord,
android.graphics.RectF plotArea) |
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
|
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,
List<android.graphics.PointF> points,
LineAndPointFormatter formatter) |
getUniqueRegionFormatters
drawSeriesLegendIcon, getFormatter, getPlot, getSeriesList, render, setPlot
protected static final int ZERO
protected static final int ONE
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.PlotRenderException
public void doDrawLegendIcon(android.graphics.Canvas canvas, android.graphics.RectF rect, LineAndPointFormatter formatter)
SeriesRenderer
doDrawLegendIcon
in class SeriesRenderer<XYPlot,XYSeries,FormatterType extends LineAndPointFormatter>
protected void appendToPath(android.graphics.Path path, android.graphics.PointF thisPoint, android.graphics.PointF lastPoint)
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(XY coord, android.graphics.RectF plotArea)
protected void renderPoints(android.graphics.Canvas canvas, android.graphics.RectF plotArea, XYSeries series, 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)