public static class TLcdEngagementBarStyle.Builder extends Object
TLcdEngagementBarStyle
.public TLcdEngagementBarStyle.Builder frameWidth(int aFrameWidth)
aFrameWidth
- The width of the engagement bar's frame, in pixels.this
TLcdEngagementBarStyle.Builder
.IllegalArgumentException
- if aFrameWidth
is smaller than 0.public TLcdEngagementBarStyle.Builder frameColor(Color aFrameColor)
Color
of the engagement bar.aFrameColor
- The color of the engagement bar's frame.this
TLcdEngagementBarStyle.Builder
.NullPointerException
- if aFrameColor
is null
.public TLcdEngagementBarStyle.Builder forcedFillColor(Color aForcedFillColor)
Color
of the engagement bar.aForcedFillColor
- a color which is used to override the default fill color. Settign this value to null
will restore the default fill color.this
TLcdEngagementBarStyle.Builder
.public TLcdEngagementBarStyle.Builder fontScalingEnabled(boolean aFontScalingEnabled)
aFontScalingEnabled
- the new font scaling valuethis
TLcdEngagementBarStyle.Builder
.public TLcdEngagementBarStyle.Builder font(Font aFont)
Font
width of the engagement bar.aFont
- The font of the engagement bar's content.this
TLcdEngagementBarStyle.Builder
.NullPointerException
- if aFont
is null
.public TLcdEngagementBarStyle.Builder fontColor(Color aColor)
Color
of the engagement bar.aColor
- The font color of the engagement bar's content.this
TLcdEngagementBarStyle.Builder
.NullPointerException
- if aColor
is null
.public TLcdEngagementBarStyle.Builder targetDesignation(TLcdEngagementBarStyle.TargetDesignation aTargetDesignation)
TLcdEngagementBarStyle.TargetDesignation
of the engagement bar.aTargetDesignation
- the TLcdEngagementBarStyle.TargetDesignation
to be set.this
TLcdEngagementBarStyle.Builder
.public TLcdEngagementBarStyle.Builder targetDesignationFillColor(TLcdEngagementBarStyle.TargetDesignation aTargetDesignation, Color aFillColor)
Color
to be used when the given TLcdEngagementBarStyle.TargetDesignation
is set on the engagement bar.aTargetDesignation
- the TLcdEngagementBarStyle.TargetDesignation
for which the fill color will be applied.aFillColor
- the fill color used for the given TLcdEngagementBarStyle.TargetDesignation
.this
TLcdEngagementBarStyle.Builder
.NullPointerException
- if aFillColor
or aTargetDesignation
is null
.public TLcdEngagementBarStyle build()
TLcdEngagementBarStyle
with its styling properties initialized
to the values of this TLcdEngagementBarStyle.Builder
's properties.