-
public final class LineChartRenderer extends LineRadarRenderer
-
-
Field Summary
Fields Modifier and Type Field Description private Bitmap.ConfigbitmapConfigpublic LineDataProviderchartprivate final BarLineScatterCandleBubbleRenderer.XBoundsxBoundsprivate PaintpaintRenderprivate PaintpaintHighlightprivate PaintpaintValues
-
Constructor Summary
Constructors Constructor Description LineChartRenderer(LineDataProvider chart, ChartAnimator animator, ViewPortHandler viewPortHandler)
-
Method Summary
Modifier and Type Method Description final Bitmap.ConfiggetBitmapConfig()Returns the Bitmap.Config that is used by this renderer. final UnitsetBitmapConfig(Bitmap.Config bitmapConfig)Sets the Bitmap.Config to be used by this renderer. 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. UnitdrawData(Canvas c)Draws the actual data in form of lines, bars, ... UnitdrawValues(Canvas c)Loops over all Entries and draws their values. UnitdrawExtras(Canvas c)Draws any kind of additional information (e.g. UnitdrawHighlighted(Canvas c, Array<Highlight> indices)Draws all highlight indicators for the values that are currently highlighted. final UnitreleaseBitmap()Releases the drawing bitmap. -
Methods inherited from class com.github.mikephil.charting.renderer.BarLineScatterCandleBubbleRenderer
drawValue -
Methods inherited from class com.github.mikephil.charting.renderer.LineScatterCandleRadarRenderer
isInBoundsX, shouldDrawValues -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
LineChartRenderer
LineChartRenderer(LineDataProvider chart, ChartAnimator animator, ViewPortHandler viewPortHandler)
-
-
Method Detail
-
getBitmapConfig
final Bitmap.Config getBitmapConfig()
Returns the Bitmap.Config that is used by this renderer.
-
setBitmapConfig
final Unit setBitmapConfig(Bitmap.Config bitmapConfig)
Sets the Bitmap.Config to be used by this renderer. Default: Bitmap.Config.ARGB_8888 Use Bitmap.Config.ARGB_4444 to consume less memory.
-
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.
-
drawData
Unit drawData(Canvas c)
Draws the actual data in form of lines, bars, ... depending on Renderer subclass.
-
drawValues
Unit drawValues(Canvas c)
Loops over all Entries and draws their values.
-
drawExtras
Unit drawExtras(Canvas c)
Draws any kind of additional information (e.g. line-circles).
-
drawHighlighted
Unit drawHighlighted(Canvas c, Array<Highlight> indices)
Draws all highlight indicators for the values that are currently highlighted.
- Parameters:
indices- the highlighted values
-
releaseBitmap
final Unit releaseBitmap()
Releases the drawing bitmap. This should be called when LineChart.onDetachedFromWindow.
-
-
-
-