-
public final class DonutModelWrapper for all necessary data values used by DonutProgress to draw its content.
-
-
Field Summary
Fields Modifier and Type Field Description private final FloatsectionsCapprivate final Floatcapprivate final FloatmasterProgressprivate final FloatgapWidthDegreesprivate final FloatgapAngleDegreesprivate final FloatstrokeWidthprivate final ColorbackgroundLineColorprivate final List<DonutSection>sections
-
Constructor Summary
Constructors Constructor Description DonutModel(Float cap, Float masterProgress, Float gapWidthDegrees, Float gapAngleDegrees, Float strokeWidth, Color backgroundLineColor, List<DonutSection> sections)
-
Method Summary
Modifier and Type Method Description final FloatgetSectionsCap()final FloatgetCap()final FloatgetMasterProgress()final FloatgetGapWidthDegrees()final FloatgetGapAngleDegrees()final FloatgetStrokeWidth()final ColorgetBackgroundLineColor()final List<DonutSection>getSections()-
-
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.
-
-
Method Detail
-
getSectionsCap
final Float getSectionsCap()
-
getMasterProgress
final Float getMasterProgress()
-
getGapWidthDegrees
final Float getGapWidthDegrees()
-
getGapAngleDegrees
final Float getGapAngleDegrees()
-
getStrokeWidth
final Float getStrokeWidth()
-
getBackgroundLineColor
final Color getBackgroundLineColor()
-
getSections
final List<DonutSection> getSections()
-
-
-
-