-
public final class ProgressIndicatorSegmentRepresents a segment of the track in a SegmentedProgressIndicator.
-
-
Field Summary
Fields Modifier and Type Field Description private final Floatweightprivate final ColorindicatorColorprivate final ColortrackColorprivate final ColorinProgressTrackColor
-
Constructor Summary
Constructors Constructor Description ProgressIndicatorSegment(Float weight, Color indicatorColor, Color trackColor, Color inProgressTrackColor)
-
Method Summary
Modifier and Type Method Description final FloatgetWeight()final ColorgetIndicatorColor()final ColorgetTrackColor()final ColorgetInProgressTrackColor()-
-
Constructor Detail
-
ProgressIndicatorSegment
ProgressIndicatorSegment(Float weight, Color indicatorColor, Color trackColor, Color inProgressTrackColor)
- Parameters:
weight- The proportion of the overall progress indicator that this segment should take up, as a proportion of the sum of the weights of all the other segments.indicatorColor- The color of the indicator bar.trackColor- The color of the background progress track.inProgressTrackColor- The color of the background progress track when this segment is in progress.
-
-
Method Detail
-
getIndicatorColor
final Color getIndicatorColor()
-
getTrackColor
final Color getTrackColor()
-
getInProgressTrackColor
final Color getInProgressTrackColor()
-
-
-
-