public final class TLcdEngagementBarStyle extends Object implements Serializable, ILcdCloneable
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.
ILcdAPP6ACoded.sEngagementBar
,
ILcdMS2525bCoded.sEngagementBar
,
Serialized FormModifier and Type | Class and Description |
---|---|
static class |
TLcdEngagementBarStyle.Builder
Builder class for
TLcdEngagementBarStyle . |
static class |
TLcdEngagementBarStyle.TargetDesignation
All possible target designation values.
|
Modifier and Type | Method and Description |
---|---|
TLcdEngagementBarStyle.Builder |
asBuilder() |
Object |
clone()
Makes
Object.clone() public. |
boolean |
equals(Object aO) |
Font |
getFont() |
Color |
getFontColor() |
Optional<Color> |
getForcedFillColor() |
Color |
getFrameColor() |
int |
getFrameWidth() |
Optional<TLcdEngagementBarStyle.TargetDesignation> |
getTargetDesignation() |
Color |
getTargetDesignationFillColor(TLcdEngagementBarStyle.TargetDesignation aTargetDesignation) |
int |
hashCode() |
boolean |
isFontScalingEnabled() |
static TLcdEngagementBarStyle.Builder |
newBuilder() |
String |
toString() |
public static TLcdEngagementBarStyle.Builder newBuilder()
TLcdEngagementBarStyle.Builder
with all properties initialized to their default values.public int getFrameWidth()
Defaults to 3.
public Color getFrameColor()
Defaults to Color.BLACK
.
public Optional<Color> getForcedFillColor()
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.
public boolean isFontScalingEnabled()
Defaults to true
ILcdMS2525bStyle.getSizeSymbol()
,
ILcdAPP6AStyle.getSizeSymbol()
public Font getFont()
Defaults to Dialog, BOLD, 12 pts.
public Color getFontColor()
Defaults to Color.BLACK
public Optional<TLcdEngagementBarStyle.TargetDesignation> getTargetDesignation()
Optional
containing this engagement bar's TLcdEngagementBarStyle.TargetDesignation
,
or an empty optional if this engagement bar does not denote a TLcdEngagementBarStyle.TargetDesignation
.
Default to Optional.empty()
public Color getTargetDesignationFillColor(TLcdEngagementBarStyle.TargetDesignation aTargetDesignation)
TLcdEngagementBarStyle.TargetDesignation
Defaults:
public TLcdEngagementBarStyle.Builder asBuilder()
TLcdEngagementBarStyle.Builder
initialized with this TLcdEngagementBarStyle
's property values.public Object clone()
ILcdCloneable
Makes Object.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 );
}
}
clone
in interface ILcdCloneable
clone
in class Object
Object.clone()