-
public class HorizontalBarChartRenderer extends BarChartRenderer
Renderer for the HorizontalBarChart.
-
-
Field Summary
Fields Modifier and Type Field Description public BarDataProviderchartprivate final BarLineScatterCandleBubbleRenderer.XBoundsxBoundsprivate PaintpaintRenderprivate PaintpaintHighlightprivate PaintpaintValues
-
Constructor Summary
Constructors Constructor Description HorizontalBarChartRenderer(BarDataProvider chart, ChartAnimator animator, ViewPortHandler viewPortHandler)
-
Method Summary
Modifier and Type Method Description final PaintgetPaintRender()main paint object used for rendering final UnitsetPaintRender(Paint paintRender)final PaintgetPaintHighlight()paint used for highlighting values final UnitsetPaintHighlight(Paint paintHighlight)final PaintgetPaintValues()paint object for drawing values (text representing values of chart entries) final UnitsetPaintValues(Paint paintValues)UnitinitBuffers()Initializes the buffers used for rendering with a new size. UnitdrawValues(Canvas c)Loops over all Entries and draws their values. -
Methods inherited from class com.github.mikephil.charting.renderer.BarLineScatterCandleBubbleRenderer
drawValue -
Methods inherited from class com.github.mikephil.charting.renderer.HorizontalBarChartRenderer
drawData, drawExtras, drawHighlighted -
Methods inherited from class com.github.mikephil.charting.renderer.BarChartRenderer
isInBoundsX, shouldDrawValues -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
HorizontalBarChartRenderer
HorizontalBarChartRenderer(BarDataProvider chart, ChartAnimator animator, ViewPortHandler viewPortHandler)
-
-
Method Detail
-
getPaintRender
final Paint getPaintRender()
main paint object used for rendering
-
setPaintRender
final Unit setPaintRender(Paint paintRender)
-
getPaintHighlight
final Paint getPaintHighlight()
paint used for highlighting values
-
setPaintHighlight
final Unit setPaintHighlight(Paint paintHighlight)
-
getPaintValues
final Paint getPaintValues()
paint object for drawing values (text representing values of chart entries)
-
setPaintValues
final Unit setPaintValues(Paint paintValues)
-
initBuffers
Unit initBuffers()
Initializes the buffers used for rendering with a new size. Since this method performs memory allocations, it should only be called if necessary.
-
drawValues
Unit drawValues(Canvas c)
Loops over all Entries and draws their values.
-
-
-
-