Package com.luciad.symbology.common.view
Class TLcdEngagementBarStyle.Builder
java.lang.Object
com.luciad.symbology.common.view.TLcdEngagementBarStyle.Builder
- Enclosing class:
TLcdEngagementBarStyle
Builder class for
TLcdEngagementBarStyle
.- Since:
- 2018.2
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Sets theFont
width of the engagement bar.Sets the fontColor
of the engagement bar.fontScalingEnabled
(boolean aFontScalingEnabled) Sets wether or not font is scaled along with the size of the symbols.forcedFillColor
(Color aForcedFillColor) Sets the forced fillColor
of the engagement bar.frameColor
(Color aFrameColor) Sets the frameColor
of the engagement bar.frameWidth
(int aFrameWidth) Sets the frame width of the engagement bar.targetDesignation
(TLcdEngagementBarStyle.TargetDesignation aTargetDesignation) Sets theTLcdEngagementBarStyle.TargetDesignation
of the engagement bar.targetDesignationFillColor
(TLcdEngagementBarStyle.TargetDesignation aTargetDesignation, Color aFillColor) Sets the fillColor
to be used when the givenTLcdEngagementBarStyle.TargetDesignation
is set on the engagement bar.
-
Method Details
-
frameWidth
Sets the frame width of the engagement bar.- Parameters:
aFrameWidth
- The width of the engagement bar's frame, in pixels.- Returns:
this
TLcdEngagementBarStyle.Builder
.- Throws:
IllegalArgumentException
- ifaFrameWidth
is smaller than 0.
-
frameColor
Sets the frameColor
of the engagement bar.- Parameters:
aFrameColor
- The color of the engagement bar's frame.- Returns:
this
TLcdEngagementBarStyle.Builder
.- Throws:
NullPointerException
- ifaFrameColor
isnull
.
-
forcedFillColor
Sets the forced fillColor
of the engagement bar.- Parameters:
aForcedFillColor
- a color which is used to override the default fill color. Settign this value tonull
will restore the default fill color.- Returns:
this
TLcdEngagementBarStyle.Builder
.
-
fontScalingEnabled
Sets wether or not font is scaled along with the size of the symbols.- Parameters:
aFontScalingEnabled
- the new font scaling value- Returns:
this
TLcdEngagementBarStyle.Builder
.
-
font
Sets theFont
width of the engagement bar.- Parameters:
aFont
- The font of the engagement bar's content.- Returns:
this
TLcdEngagementBarStyle.Builder
.- Throws:
NullPointerException
- ifaFont
isnull
.
-
fontColor
Sets the fontColor
of the engagement bar.- Parameters:
aColor
- The font color of the engagement bar's content.- Returns:
this
TLcdEngagementBarStyle.Builder
.- Throws:
NullPointerException
- ifaColor
isnull
.
-
targetDesignation
public TLcdEngagementBarStyle.Builder targetDesignation(TLcdEngagementBarStyle.TargetDesignation aTargetDesignation) Sets theTLcdEngagementBarStyle.TargetDesignation
of the engagement bar.- Parameters:
aTargetDesignation
- theTLcdEngagementBarStyle.TargetDesignation
to be set.- Returns:
this
TLcdEngagementBarStyle.Builder
.
-
targetDesignationFillColor
public TLcdEngagementBarStyle.Builder targetDesignationFillColor(TLcdEngagementBarStyle.TargetDesignation aTargetDesignation, Color aFillColor) Sets the fillColor
to be used when the givenTLcdEngagementBarStyle.TargetDesignation
is set on the engagement bar.- Parameters:
aTargetDesignation
- theTLcdEngagementBarStyle.TargetDesignation
for which the fill color will be applied.aFillColor
- the fill color used for the givenTLcdEngagementBarStyle.TargetDesignation
.- Returns:
this
TLcdEngagementBarStyle.Builder
.- Throws:
NullPointerException
- ifaFillColor
oraTargetDesignation
isnull
.
-
build
- Returns:
- a new instance of
TLcdEngagementBarStyle
with its styling properties initialized to the values of thisTLcdEngagementBarStyle.Builder
's properties.
-