|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.androidplot.ui.SeriesRenderer<XYPlot,XYSeries,XYFormatterType>
com.androidplot.xy.XYSeriesRenderer<T>
com.androidplot.xy.BarRenderer<T>
public class BarRenderer<T extends BarFormatter>
Renders a point as a Bar
Nested Class Summary | |
---|---|
class |
BarRenderer.Bar
|
class |
BarRenderer.BarComparator
|
static class |
BarRenderer.BarRenderStyle
|
static class |
BarRenderer.BarWidthStyle
|
Constructor Summary | |
---|---|
BarRenderer(XYPlot plot)
|
Method Summary | |
---|---|
void |
doDrawLegendIcon(android.graphics.Canvas canvas,
android.graphics.RectF rect,
BarFormatter formatter)
Draw the legend icon in the rect passed in. |
T |
getFormatter(int index,
XYSeries series)
Retrieves the BarFormatter instance that corresponds with the series passed in. |
void |
onRender(android.graphics.Canvas canvas,
android.graphics.RectF plotArea)
|
void |
setBarComparator(Comparator<BarRenderer.Bar> barComparator)
Sets a Comparator used for sorting bars. |
void |
setBarGap(float barGap)
Sets the size of the gap between the bar (or bar groups) when using the VARIABLE_WIDTH render style |
void |
setBarRenderStyle(BarRenderer.BarRenderStyle renderStyle)
|
void |
setBarWidth(float barWidth)
Sets the width of the bars when using the FIXED_WIDTH render style |
void |
setBarWidthStyle(BarRenderer.BarWidthStyle widthStyle)
|
void |
setBarWidthStyle(BarRenderer.BarWidthStyle style,
float value)
|
Methods inherited from class com.androidplot.xy.XYSeriesRenderer |
---|
getUniqueRegionFormatters |
Methods inherited from class com.androidplot.ui.SeriesRenderer |
---|
drawSeriesLegendIcon, getFormatter, getPlot, getSeriesAndFormatterList, render, setPlot |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BarRenderer(XYPlot plot)
Method Detail |
---|
public void setBarWidth(float barWidth)
barWidth
- public void setBarGap(float barGap)
barGap
- public void setBarRenderStyle(BarRenderer.BarRenderStyle renderStyle)
public void setBarWidthStyle(BarRenderer.BarWidthStyle widthStyle)
public void setBarWidthStyle(BarRenderer.BarWidthStyle style, float value)
public void setBarComparator(Comparator<BarRenderer.Bar> barComparator)
Comparator
used for sorting bars.
public void doDrawLegendIcon(android.graphics.Canvas canvas, android.graphics.RectF rect, BarFormatter formatter)
SeriesRenderer
public T getFormatter(int index, XYSeries series)
index
- index of the point being rendered.series
- XYSeries to which the point being rendered belongs.
public void onRender(android.graphics.Canvas canvas, android.graphics.RectF plotArea) throws PlotRenderException
onRender
in class SeriesRenderer<XYPlot,XYSeries,T extends BarFormatter>
PlotRenderException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |