Package 

Class DonutModel


  • 
    public final class DonutModel
    
                        

    Wrapper for all necessary data values used by DonutProgress to draw its content.

    • Constructor Detail

      • DonutModel

        DonutModel(Float cap, Float masterProgress, Float gapWidthDegrees, Float gapAngleDegrees, Float strokeWidth, Color backgroundLineColor, List<DonutSection> sections)
        Parameters:
        cap - Maximum value of sum of all entries in view, after which all lines start to resize proportionally to amounts in their entry categories.
        masterProgress - Percentage of progress shown for all lines.
        gapWidthDegrees - Size of gap opening in degrees.
        gapAngleDegrees - The angle in degrees, at which the gap will be displayed.
        strokeWidth - Stroke width of all lines in pixels.
        backgroundLineColor - The color of the donut background line.
        sections - The data used to define each section of the donut.