Package com.luciad.symbology.common.view
Class TLcdEngagementBarStyle
java.lang.Object
com.luciad.symbology.common.view.TLcdEngagementBarStyle
- All Implemented Interfaces:
ILcdCloneable,Serializable,Cloneable
Styling options for the Engagement Bar graphic amplifier.
A new instance of this class can be built using a TLcdEngagementBarStyle.Builder which can be created using the
newBuilder() method.
You can also create a modified copy of an existing instance.
- Since:
- 2018.2
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder class forTLcdEngagementBarStyle.static enumAll possible target designation values. -
Method Summary
Modifier and TypeMethodDescriptionclone()MakesObject.clone()public.booleangetFont()intgetTargetDesignationFillColor(TLcdEngagementBarStyle.TargetDesignation aTargetDesignation) inthashCode()booleantoString()
-
Method Details
-
newBuilder
- Returns:
- a new instance of
TLcdEngagementBarStyle.Builderwith all properties initialized to their default values.
-
getFrameWidth
public int getFrameWidth()- Returns:
- The width of the engagement bar's frame, in pixels.
Defaults to 3.
-
getFrameColor
- Returns:
- The color of the engagement bar's frame.
Defaults to
Color.BLACK.
-
getForcedFillColor
- Returns:
- An
Optionalcontaining a color which is used to override the default fill color, or an empty optional if the default fill color is used.Default to
Optional.empty().The default fill color is either based on this style's targetDesignation, if it is present. Otherwise the styled symbol's affiliation color will be used.
-
isFontScalingEnabled
public boolean isFontScalingEnabled()- Returns:
- boolean indicating whether font is scaled along with the size of the symbols as defined in the symbols style.
Defaults to
true - See Also:
-
getFont
- Returns:
- The font of the engagement bar's content.
Defaults to Dialog, BOLD, 12 pts.
-
getFontColor
- Returns:
- The font color of the engagement bar's content.
Defaults to
Color.BLACK
-
getTargetDesignation
- Returns:
- An
Optionalcontaining this engagement bar'sTLcdEngagementBarStyle.TargetDesignation, or an empty optional if this engagement bar does not denote aTLcdEngagementBarStyle.TargetDesignation.Default to
Optional.empty()
-
getTargetDesignationFillColor
public Color getTargetDesignationFillColor(TLcdEngagementBarStyle.TargetDesignation aTargetDesignation) - Returns:
- The fill color used for the given
TLcdEngagementBarStyle.TargetDesignationDefaults:
-
equals
-
toString
-
hashCode
public int hashCode() -
asBuilder
- Returns:
- a
TLcdEngagementBarStyle.Builderinitialized with thisTLcdEngagementBarStyle's property values.
-
clone
Description copied from interface:ILcdCloneableMakes
When for example extending fromObject.clone()public.java.lang.Object, it can be implemented like this:public Object clone() { try { return super.clone(); } catch ( CloneNotSupportedException e ) { // Cannot happen: extends from Object and implements Cloneable (see also Object.clone) throw new RuntimeException( e ); } }- Specified by:
clonein interfaceILcdCloneable- Overrides:
clonein classObject- See Also:
-