com.androidplot.xy
Class BarRenderer

java.lang.Object
  extended by com.androidplot.ui.widget.renderer.DataRenderer<XYPlot,XYFormatterType>
      extended by com.androidplot.xy.XYSeriesRenderer<BarFormatter>
          extended by com.androidplot.xy.BarRenderer

public class BarRenderer
extends XYSeriesRenderer<BarFormatter>

Renders a point as a Bar


Nested Class Summary
static class BarRenderer.BarRenderStyle
           
static class BarRenderer.BarWidthStyle
           
 
Constructor Summary
BarRenderer(XYPlot plot)
           
 
Method Summary
 void drawLegendIcon(android.graphics.Canvas canvas, android.graphics.RectF rect, String text, BarFormatter formatter)
          Draw the legend icon in the rect passed in.
 void onRender(android.graphics.Canvas canvas, android.graphics.RectF plotArea)
           
 void setBarWidth(float barWidth, BarRenderer.BarWidthStyle style)
          Sets the width of the bars draw.
 
Methods inherited from class com.androidplot.ui.widget.renderer.DataRenderer
getFormatter, getPlot, render, setPlot
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BarRenderer

public BarRenderer(XYPlot plot)
Method Detail

setBarWidth

public void setBarWidth(float barWidth,
                        BarRenderer.BarWidthStyle style)
Sets the width of the bars draw.

Parameters:
barWidth -
style -

onRender

public void onRender(android.graphics.Canvas canvas,
                     android.graphics.RectF plotArea)
              throws PlotRenderException
Specified by:
onRender in class DataRenderer<XYPlot,BarFormatter>
Throws:
PlotRenderException

drawLegendIcon

public void drawLegendIcon(android.graphics.Canvas canvas,
                           android.graphics.RectF rect,
                           String text,
                           BarFormatter formatter)
Description copied from class: DataRenderer
Draw the legend icon in the rect passed in.

Specified by:
drawLegendIcon in class DataRenderer<XYPlot,BarFormatter>


Copyright © 2011. All Rights Reserved.