-
public class BarRenderer<FormatterType extends BarFormatter> extends GroupRenderer<FormatterType>
Renders the points in an XYSeries as bars. See BarOrientation javadoc for details on supported presentation styles.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enum
BarRenderer.BarOrientation
How bars should be laid out when in a group of 2 or more series.
public enum
BarRenderer.BarGroupWidthMode
Mode with which to calculate the width of each bar.
public class
BarRenderer.Bar
public class
BarRenderer.BarComparator
Used to determine the order in which bars of the same group will be drawn.
-
Field Summary
Fields Modifier and Type Field Description private BarRenderer.BarOrientation
barOrientation
private BarRenderer.BarGroupWidthMode
barGroupWidthMode
-
Constructor Summary
Constructors Constructor Description BarRenderer(XYPlot plot)
-
Method Summary
Modifier and Type Method Description BarRenderer.BarOrientation
getBarOrientation()
void
setBarOrientation(BarRenderer.BarOrientation renderBarOrientation)
BarRenderer.BarGroupWidthMode
getBarGroupWidthMode()
float
getBarGroupWidth()
void
setBarGroupWidth(BarRenderer.BarGroupWidthMode mode, float width)
void
doDrawLegendIcon(Canvas canvas, RectF rect, BarFormatter formatter)
Draw the legend icon in the rect passed in. FormatterType
getFormatter(int index, XYSeries series)
Retrieves the BarFormatter instance that corresponds with the series passed in.Can be overridden to return other BarFormatters as a result of touch events etc. void
onRender(Canvas canvas, RectF plotArea, List<SeriesBundle<XYSeries, out FormatterType>> sfList, int seriesSize, RenderStack stack)
-
Methods inherited from class com.androidplot.xy.GroupRenderer
onRender
-
Methods inherited from class com.androidplot.xy.XYSeriesRenderer
getUniqueRegionFormatters
-
Methods inherited from class com.androidplot.ui.SeriesRenderer
drawSeriesLegendIcon, getFormatter, getPlot, getSeriesAndFormatterList, getSeriesList, render, setPlot
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
BarRenderer
BarRenderer(XYPlot plot)
-
-
Method Detail
-
getBarOrientation
BarRenderer.BarOrientation getBarOrientation()
-
setBarOrientation
void setBarOrientation(BarRenderer.BarOrientation renderBarOrientation)
-
getBarGroupWidthMode
BarRenderer.BarGroupWidthMode getBarGroupWidthMode()
-
getBarGroupWidth
float getBarGroupWidth()
-
setBarGroupWidth
void setBarGroupWidth(BarRenderer.BarGroupWidthMode mode, float width)
-
doDrawLegendIcon
void doDrawLegendIcon(Canvas canvas, RectF rect, BarFormatter formatter)
Draw the legend icon in the rect passed in.
-
getFormatter
FormatterType getFormatter(int index, XYSeries series)
Retrieves the BarFormatter instance that corresponds with the series passed in.Can be overridden to return other BarFormatters as a result of touch events etc.
- Parameters:
index
- index of the point being rendered.series
- XYSeries to which the point being rendered belongs.
-
onRender
void onRender(Canvas canvas, RectF plotArea, List<SeriesBundle<XYSeries, out FormatterType>> sfList, int seriesSize, RenderStack stack)
-
-
-
-