Package 

Class DataRenderer


  • 
    public abstract class DataRenderer
    extends Renderer
                        

    Superclass of all render classes for the different data types (line, bar, ...).

    • Method Detail

      • getPaintValues

         final Paint getPaintValues()

        paint object for drawing values (text representing values of chart entries)

      • initBuffers

         abstract 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

         abstract Unit drawData(Canvas c)

        Draws the actual data in form of lines, bars, ... depending on Renderer subclass.

      • drawValue

         final Unit drawValue(Canvas c, IValueFormatter formatter, Float value, Entry entry, Integer dataSetIndex, Float x, Float y, Integer color)

        Draws the value of the given entry by using the provided IValueFormatter.

        Parameters:
        c - canvas
        formatter - formatter for custom value-formatting
        value - the value to be drawn
        entry - the entry the value belongs to
        dataSetIndex - the index of the DataSet the drawn Entry belongs to
        x - position
        y - position
      • drawExtras

         abstract Unit drawExtras(Canvas c)

        Draws any kind of additional information (e.g. line-circles).

      • drawHighlighted

         abstract Unit drawHighlighted(Canvas c, Array<Highlight> indices)

        Draws all highlight indicators for the values that are currently highlighted.

        Parameters:
        indices - the highlighted values