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 theFontwidth of the engagement bar.Sets the fontColorof 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 fillColorof the engagement bar.frameColor(Color aFrameColor) Sets the frameColorof the engagement bar.frameWidth(int aFrameWidth) Sets the frame width of the engagement bar.targetDesignation(TLcdEngagementBarStyle.TargetDesignation aTargetDesignation) Sets theTLcdEngagementBarStyle.TargetDesignationof the engagement bar.targetDesignationFillColor(TLcdEngagementBarStyle.TargetDesignation aTargetDesignation, Color aFillColor) Sets the fillColorto be used when the givenTLcdEngagementBarStyle.TargetDesignationis 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:
thisTLcdEngagementBarStyle.Builder.- Throws:
IllegalArgumentException- ifaFrameWidthis smaller than 0.
-
frameColor
Sets the frameColorof the engagement bar.- Parameters:
aFrameColor- The color of the engagement bar's frame.- Returns:
thisTLcdEngagementBarStyle.Builder.- Throws:
NullPointerException- ifaFrameColorisnull.
-
forcedFillColor
Sets the forced fillColorof the engagement bar.- Parameters:
aForcedFillColor- a color which is used to override the default fill color. Settign this value tonullwill restore the default fill color.- Returns:
thisTLcdEngagementBarStyle.Builder.
-
fontScalingEnabled
Sets wether or not font is scaled along with the size of the symbols.- Parameters:
aFontScalingEnabled- the new font scaling value- Returns:
thisTLcdEngagementBarStyle.Builder.
-
font
Sets theFontwidth of the engagement bar.- Parameters:
aFont- The font of the engagement bar's content.- Returns:
thisTLcdEngagementBarStyle.Builder.- Throws:
NullPointerException- ifaFontisnull.
-
fontColor
Sets the fontColorof the engagement bar.- Parameters:
aColor- The font color of the engagement bar's content.- Returns:
thisTLcdEngagementBarStyle.Builder.- Throws:
NullPointerException- ifaColorisnull.
-
targetDesignation
public TLcdEngagementBarStyle.Builder targetDesignation(TLcdEngagementBarStyle.TargetDesignation aTargetDesignation) Sets theTLcdEngagementBarStyle.TargetDesignationof the engagement bar.- Parameters:
aTargetDesignation- theTLcdEngagementBarStyle.TargetDesignationto be set.- Returns:
thisTLcdEngagementBarStyle.Builder.
-
targetDesignationFillColor
public TLcdEngagementBarStyle.Builder targetDesignationFillColor(TLcdEngagementBarStyle.TargetDesignation aTargetDesignation, Color aFillColor) Sets the fillColorto be used when the givenTLcdEngagementBarStyle.TargetDesignationis set on the engagement bar.- Parameters:
aTargetDesignation- theTLcdEngagementBarStyle.TargetDesignationfor which the fill color will be applied.aFillColor- the fill color used for the givenTLcdEngagementBarStyle.TargetDesignation.- Returns:
thisTLcdEngagementBarStyle.Builder.- Throws:
NullPointerException- ifaFillColororaTargetDesignationisnull.
-
build
- Returns:
- a new instance of
TLcdEngagementBarStylewith its styling properties initialized to the values of thisTLcdEngagementBarStyle.Builder's properties.
-