com.androidplot.ui.widget.renderer
Class DataRenderer<PlotType extends Plot,SeriesFormatterType extends Formatter>

java.lang.Object
  extended by com.androidplot.ui.widget.renderer.DataRenderer<PlotType,SeriesFormatterType>
Direct Known Subclasses:
XYSeriesRenderer

public abstract class DataRenderer<PlotType extends Plot,SeriesFormatterType extends Formatter>
extends Object


Constructor Summary
DataRenderer(PlotType plot)
           
 
Method Summary
abstract  void drawLegendIcon(android.graphics.Canvas canvas, android.graphics.RectF rect, String text, SeriesFormatterType formatter)
          Draw the legend icon in the rect passed in.
 SeriesFormatterType getFormatter(Series series)
           
 PlotType getPlot()
           
abstract  void onRender(android.graphics.Canvas canvas, android.graphics.RectF plotArea)
           
 void render(android.graphics.Canvas canvas, android.graphics.RectF plotArea)
           
 void setPlot(PlotType plot)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataRenderer

public DataRenderer(PlotType plot)
Method Detail

getPlot

public PlotType getPlot()

setPlot

public void setPlot(PlotType plot)

getFormatter

public SeriesFormatterType getFormatter(Series series)

render

public void render(android.graphics.Canvas canvas,
                   android.graphics.RectF plotArea)
            throws PlotRenderException
Throws:
PlotRenderException

onRender

public abstract void onRender(android.graphics.Canvas canvas,
                              android.graphics.RectF plotArea)
                       throws PlotRenderException
Throws:
PlotRenderException

drawLegendIcon

public abstract void drawLegendIcon(android.graphics.Canvas canvas,
                                    android.graphics.RectF rect,
                                    String text,
                                    SeriesFormatterType formatter)
Draw the legend icon in the rect passed in.

Parameters:
canvas -
rect -
text -


Copyright © 2011. All Rights Reserved.