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
Modifier and TypeClassDescriptionstatic class
Builder class forTLcdEngagementBarStyle
.static enum
All possible target designation values. -
Method Summary
Modifier and TypeMethodDescriptionclone()
MakesObject.clone()
public.boolean
getFont()
int
getTargetDesignationFillColor
(TLcdEngagementBarStyle.TargetDesignation aTargetDesignation) int
hashCode()
boolean
toString()
-
Method Details
-
newBuilder
- Returns:
- a new instance of
TLcdEngagementBarStyle.Builder
with 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
Optional
containing 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
Optional
containing 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.TargetDesignation
Defaults:
-
equals
-
toString
-
hashCode
public int hashCode() -
asBuilder
- Returns:
- a
TLcdEngagementBarStyle.Builder
initialized with thisTLcdEngagementBarStyle
's property values.
-
clone
Description copied from interface:ILcdCloneable
Makes
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:
clone
in interfaceILcdCloneable
- Overrides:
clone
in classObject
- See Also:
-