com.androidplot.xy
Class BarRenderer<T extends BarFormatter>
java.lang.Object
com.androidplot.ui.SeriesRenderer<XYPlot,XYSeries,XYFormatterType>
com.androidplot.xy.XYSeriesRenderer<T>
com.androidplot.xy.BarRenderer<T>
public class BarRenderer<T extends BarFormatter>
- extends XYSeriesRenderer<T>
Renders a point as a Bar
BarRenderer
public BarRenderer(XYPlot plot)
setBarWidth
public void setBarWidth(float barWidth)
- Sets the width of the bars when using the FIXED_WIDTH render style
- Parameters:
barWidth
-
setBarGap
public void setBarGap(float barGap)
- Sets the size of the gap between the bar (or bar groups) when using the VARIABLE_WIDTH render style
- Parameters:
barGap
-
setBarRenderStyle
public void setBarRenderStyle(BarRenderer.BarRenderStyle renderStyle)
setBarWidthStyle
public void setBarWidthStyle(BarRenderer.BarWidthStyle widthStyle)
setBarWidthStyle
public void setBarWidthStyle(BarRenderer.BarWidthStyle style,
float value)
doDrawLegendIcon
public void doDrawLegendIcon(android.graphics.Canvas canvas,
android.graphics.RectF rect,
BarFormatter formatter)
- Description copied from class:
SeriesRenderer
- Draw the legend icon in the rect passed in.
onRender
public void onRender(android.graphics.Canvas canvas,
android.graphics.RectF plotArea)
throws PlotRenderException
- Specified by:
onRender
in class SeriesRenderer<XYPlot,XYSeries,T extends BarFormatter>
- Throws:
PlotRenderException
Copyright © 2010-2013 androidplot.com. All Rights Reserved.