Class TLcdMilitarySymbolStyle
- All Implemented Interfaces:
ILcdCloneable,Serializable,Cloneable
TLcdMilitarySymbolStyle can be configured on ILcdAPP6AShape and
ILcdMS2525bShape implementations by making them also implement ILcdStyledMilitarySymbol.
See the sample classes samples.symbology.common.app6.StyledEditableAPP6Object and samples.symbology.common.ms2525.StyledEditableMS2525Object
for an example. Alternatively a default TLcdMilitarySymbolStyle can be applied to symbols that do not implement ILcdStyledMilitarySymbol
by configuring it an a TLcdAPP6AGXYPainterProvider/TLcdMS2525bGXYPainterProvider or a
TLspMilitarySymbologyLayerBuilder.- Since:
- 2024.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intAffiliationASSUMED FRIEND.static final intAffiliationASSUMED NEUTRAL.static final intAffiliationEXERCISE ASSUMED FRIEND.static final intAffiliationEXERCISE ASSUMED NEUTRAL.static final intAffiliationEXERCISE FRIEND.static final intAffiliationEXERCISE NEUTRAL.static final intAffiliationEXERCISE PENDING.static final intAffiliationEXERCISE UNKNOWN.static final intAffiliationFAKER.static final intAffiliationFRIEND.static final intAffiliationHOSTILE.static final intAffiliationJOKER.static final intAffiliationNEUTRAL.static final intAffiliationPENDING.static final intAffiliationSUSPECT.static final intAffiliationUNKNOWN.static final intLine style: alternate (small and large) dashing pattern.static final intLine style: alternating black and white dashes.static final intLine style: alternating black and white dots.static final intIndex for centered label position.static final intIndex for label position east.static final String[]Label positions.static final intLine style: large dashing pattern.static final intIndex for label position north.static final intIndex for label position north-east.static final intIndex for label position north-west.static final intLine style: plain.static final intLine style: small dashing pattern.static final intIndex for label position south.static final intIndex for label position south-east.static final intIndex for label position south-west.static final intIndex for label position west. -
Constructor Summary
ConstructorsConstructorDescriptionTLcdMilitarySymbolStyle(Color aColor, Color aSelectionColor, int aLineWidth, int aLineStyle, boolean aIsSymbolFrameEnabled, boolean aIsSymbolFillEnabled, boolean aIsSymbolIconEnabled, String[] aLabel, Color aLabelColor, Font aLabelFont, Color aLabelFilledColor, boolean aIsLabelFramed, boolean aIsLabelFilled, boolean aIsLabelPinned, boolean aIsLabelAnchored, int aLabelPosition, int aSize) Constructs a newTLcdMilitarySymbolStyleobject with the given settings. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPropertyChangeListener(PropertyChangeListener aPropertyChangeListener) Adds the given listener that is notified when a property of this style is changed.voidanchorPointSFCT(Graphics aGraphics, int aMode, ILcdGXYContext aGXYContext, Point aPointSFCT, TLcdXYBounds aBounds, ILcdGXYPainter aGXYPainter) Correction of the anchor point of the label.clone()MakesObject.clone()public.booleangetAffiliationColor(int aAffiliation) Returns the color that is currently used for the given affiliation.getAffiliationColor(String aAffiliationValue) Returns the color that is currently used for the given affiliation.getAlternateAffiliationColor(int aAffiliation) Returns the alternate color that is currently used for the given affiliation.Returns the color used to fill the part of the frame that is not covered by the fill percentage.Returns theFormatto format altitudes in labels.Returns the icon used as an anchor icon for the icon symbol.Returns theFormatto format angles in labels.getColor()Returns the line color for unframed icon symbols, line symbols and off-set lines of icon symbols.doubleReturns the smoothness (or rounding) factor that is used to render corners of polygons.Returns theFormatto format distances in labels.Returns the engagement bar graphic amplifier's styling options.doubleReturns the fill percentage of the frame of icon symbols.Returns the color that currently overrides the normal colors of the icon symbol.Returns the style that currently overrides the normal symbol frame outline line style of the icon symbol.Returns the color that is used for icon and line symbol halos, if enabled (i.e., ifisHaloEnabled()returns true).intReturns the thickness that is used for icon and line symbol halos, if enabled (i.e., ifisHaloEnabled()returns true).static TLcdMilitarySymbolStyleReturns a sharedTLcdMilitarySymbolStyleinstance.Returns the color to use for labels.Returns the color to use for the labels background.Returns the font to use for labels.Returns the color to use for the label frame.intReturns the padding between the label text and the label frame.Returns the color that is used for the label halo of icon and line symbols, if enabled (i.e., ifisLabelHaloEnabled()returns true).intReturns the thickness that is used for the label halo of icon and line symbols, if enabled (i.e., ifisLabelHaloEnabled()returns true).intReturns the relative position of the label with respect to the object.String[]Returns the labels to use for labeling.intReturns the style to use for the offset-line of an icon symbol.intReturns the line width to use for all line symbols, off-set lines and vertical lines of icon symbols.intReturns the X offset of the icon with respect to the location of the icon symbol.intReturns the Y offset of the icon with respect to the location of the icon symbol.Returns the selection color for the construction line of line symbols and for the offset-line and bounding box of icon symbols.Returns the selection color for the halo of the selection rectangle of icon symbols.intReturns the line width in pixels of the halo of the selection rectangle of icon symbols.intReturns the line width of the rectangle in pixels which is displayed when the icon symbol is selected.intReturn the shift to apply to the label position.intReturns the size of the icon symbol that uses this style.doubleReturns the length ratio of the speed leader to the symbol size against the speed value of 1m/s.Returns the frame color used for framed icon symbols.intReturns the frame line width of the icon symbols.inthashCode()booleanReturns whether the affiliation color mode is enabled.booleanReturns a boolean indicating whether the engagement bar graphic amplifier is enabled.booleanReturns whether a halo is enabled for symbols (both icon and line symbols).booleanisLabelEnabled(String aLabel) Returns whether the given label should be displayed.booleanReturns whether the label should be displayed in a filled rectangle.booleanReturns whether the label font size of the label is automatically scaled.booleanReturns whether a halo is enabled for labels of icon and line symbols.booleanReturns whether the label should be displayed with a point on the object.booleanReturns whether the label should be displayed in a frame.booleanReturns whether the label should be displayed with a pin to the object.booleanReturns true if the offset of the icon symbol is editable via CTRL+Drag operation.booleanThis property indicates whether strict segmentation is enabled.booleanReturns whether an icon symbol should be painted filled.booleanReturns whether the frame of an icon symbol should be painted.booleanReturns whether the internal icon in the frame of an icon symbol should be painted.booleanReturns whether a perpendicular line from the center point of the icon symbols to the earth surface is enabled.static TLcdMilitarySymbolStyleReturns a newTLcdMilitarySymbolStyleinstance.voidremovePropertyChangeListener(PropertyChangeListener aPropertyChangeListener) Removes the given listener from the list so that it is no longer notified when a property of this style is changed.voidsetAffiliationColor(int aAffiliation, Color aColor) Sets the color for the given affiliation.voidsetAffiliationColorEnabled(boolean aAffiliationColorEnabled) Sets the affiliation color mode.voidsetAlternateAffiliationColor(int aAffiliation, Color aColor) Sets the alternate color for the given affiliation.voidsetAlternateFillColor(Color aAlternateFillColor) Sets the color to fill the part of the frame that is not covered by the fill percentage.voidsetAltitudeFormat(Format aFormat) Sets a newFormatto format altitudes in labels.voidsetAnchorSymbol(ILcdIcon aSymbol) Sets the icon which is displayed as an anchor icon for the icon symbol.voidsetAngleFormat(Format aAngleFormat) Sets a newFormatto format angles in labels.voidSets the color for unframed icon symbols, line symbols and off-set lines of icon symbols.voidsetCornerSmoothness(double aSmoothnessFactor) Sets the smoothness (or rounding) factor that should be used to render corners of polygons.voidsetDistanceFormat(Format aDistanceFormat) Sets a newFormatto format distances in labels.voidsetEngagementBarEnabled(boolean aEngagementBarEnabled) Sets whether the engagement bar graphic amplifier is enabled.voidsetEngagementBarStyle(TLcdEngagementBarStyle aEngagementBarStyle) Sets the engagement bar graphic amplifier's styling options.voidsetFillPercentage(double aFillPercentage) Sets the fill percentage of the frame of icon symbols.voidsetForcedColor(Color aColor) Sets the color to be used for the icon symbol: this will override the normal colors for the different elements of the symbol.voidsetForcedFrameLineStyle(Integer aForcedFrameLineStyle) Sets the line style to be used for the frame of an icon symbol: this will override the default line style for the outline of the symbol frame as defined by the standard.voidsetHaloColor(Color aColor) Sets the color to be used for icon and line symbol halos, if enabled (i.e., ifisHaloEnabled()returns true).voidsetHaloEnabled(boolean aEnabled) Sets whether a halo should be enabled for symbols (both icon and line symbols).voidsetHaloThickness(int aThickness) Sets the thickness to be used for icon and line symbol halos, if enabled (i.e., ifisHaloEnabled()returns true).static voidsetInstance(TLcdMilitarySymbolStyle aInstance) Sets the sharedTLcdMilitarySymbolStyleinstance to be used.voidsetLabelColor(Color aColor) Sets the color to use for labels.voidsetLabelEnabled(String aLabel, boolean aEnabled) Sets whether the given label should be displayed.voidsetLabelFilled(boolean aLabelFilled) Sets whether the label should be displayed in a filled rectangle.voidsetLabelFilledColor(Color aColor) Sets the color to use for the labels background.voidsetLabelFont(Font aFont) Sets the font to use for labels.voidsetLabelFontScalingEnabled(boolean aLabelFontScalingMode) Sets whether the font size of the label should be automatically scaled for icon symbols.voidsetLabelFrameColor(Color aColor) Sets the color to use for the label frame.voidsetLabelFramePadding(int aPadding) Sets the padding between the label text and the label frame.voidsetLabelHaloColor(Color aColor) Sets the color to be used for the label halo of icon and line symbols, if enabled (i.e., ifisLabelHaloEnabled()returns true).voidsetLabelHaloEnabled(boolean aEnabled) Sets whether a halo should be enabled for labels of icon and line symbols.voidsetLabelHaloThickness(int aThickness) Sets the thickness to be used for the label halo of icon and line symbols, if enabled (i.e., ifisLabelHaloEnabled()returns true).voidsetLabelPosition(int aLabelPosition) Sets the relative position of the label with respect to the object.voidSets the labels to use for labeling.voidsetLabelWithAnchor(boolean aLabelWithAnchor) Sets whether the label should be displayed with a point on the object.voidsetLabelWithFrame(boolean aLabelWithFrame) Sets whether the label should be displayed in a frame.voidsetLabelWithPin(boolean aLabelWithPin) Sets whether the label should be displayed with a pin to the object.voidsetLineStyle(int aLineStyle) Sets the style to use for the offset-line of an icon symbol.voidsetLineWidth(int aWidth) Sets the line width to use for all line symbols, off-set lines and vertical lines of icon symbols.voidsetOffset(int aX, int aY) Sets the X and Y offset of the icon with respect to the location of the icon symbol.voidsetOffsetEditingEnabled(boolean aOffsetEditingEnabled) Sets if the offset of the icon symbol is editable via CTRL+Drag operation.voidsetSelectionColor(Color aColor) Sets the selection color for the construction line of line symbols and for the offset-line and bounding box of icon symbols.voidsetSelectionRectangleHaloColor(Color aColor) Sets the halo color for the selection rectangle of icon symbols.voidsetSelectionRectangleHaloWidth(int aWidth) Sets the line width in pixels of the halo of the selection rectangle of icon symbols.voidsetSelectionRectangleWidth(int aWidth) Sets the line width of the rectangle in pixels which is displayed when the icon symbol is selected.voidsetSizeSymbol(int aSize) Sets the size of the icon symbol that uses this style.voidsetSpeedLeaderLength(double aTimesSymbolSize, ILcdISO19103Measure aSpeed) A convenience method that changes the speed leader length ratio so that the speed leader length is equal to the symbol size timesaTimesSymbolSizeif the symbol has the given speed.voidsetSpeedLeaderLengthRatio(double aRatio) Sets the length ratio of the speed leader to the symbol size against the speed value of 1m/s.
SeesetSpeedLeaderLength(double, ILcdISO19103Measure)for a convenience setter using a speed measure.voidsetStrictSegmentationEnabled(boolean aStrictSegmentationEnabled) Enables or disables strict segmentation.voidsetSymbolFillEnabled(boolean aSymbolFillEnabled) Sets whether an icon symbol should be painted filled.voidsetSymbolFrameColor(Color aSymbolFrameColor) Sets the frame color to be used for framed icon symbols.voidsetSymbolFrameEnabled(boolean aSymbolFrameEnabled) Sets whether the frame of an icon symbol should be painted.voidsetSymbolFrameLineWidth(int aWidth) Sets the frame line width of the icon symbols in pixels.voidsetSymbolIconEnabled(boolean aSymbolIconEnabled) Sets whether the internal icon in the frame of an icon symbol should be painted.voidsetVerticalLineEnabled(boolean aEnabled) Sets whether a perpendicular line from the center point of the icon symbols to the earth surface is enabled.
-
Field Details
-
LABEL_POSITIONS
Label positions. -
EAST
public static final int EASTIndex for label position east.- See Also:
-
WEST
public static final int WESTIndex for label position west.- See Also:
-
NORTH
public static final int NORTHIndex for label position north.- See Also:
-
SOUTH
public static final int SOUTHIndex for label position south.- See Also:
-
SOUTHEAST
public static final int SOUTHEASTIndex for label position south-east.- See Also:
-
NORTHEAST
public static final int NORTHEASTIndex for label position north-east.- See Also:
-
SOUTHWEST
public static final int SOUTHWESTIndex for label position south-west.- See Also:
-
NORTHWEST
public static final int NORTHWESTIndex for label position north-west.- See Also:
-
CENTER
public static final int CENTERIndex for centered label position.- See Also:
-
PLAIN
public static final int PLAINLine style: plain.- See Also:
-
SMALL_DASH
public static final int SMALL_DASHLine style: small dashing pattern.- See Also:
-
LARGE_DASH
public static final int LARGE_DASHLine style: large dashing pattern.- See Also:
-
ALTERNATE_DASH
public static final int ALTERNATE_DASHLine style: alternate (small and large) dashing pattern.- See Also:
-
BLACK_AND_WHITE_DOTTED
public static final int BLACK_AND_WHITE_DOTTEDLine style: alternating black and white dots.- See Also:
-
BLACK_AND_WHITE_DASHES
public static final int BLACK_AND_WHITE_DASHESLine style: alternating black and white dashes.- See Also:
-
AFFILIATION_PENDING
public static final int AFFILIATION_PENDINGAffiliationPENDING.- See Also:
-
AFFILIATION_UNKNOWN
public static final int AFFILIATION_UNKNOWNAffiliationUNKNOWN.- See Also:
-
AFFILIATION_ASSUMED_FRIEND
public static final int AFFILIATION_ASSUMED_FRIENDAffiliationASSUMED FRIEND.- See Also:
-
AFFILIATION_FRIEND
public static final int AFFILIATION_FRIENDAffiliationFRIEND.- See Also:
-
AFFILIATION_ASSUMED_NEUTRAL
public static final int AFFILIATION_ASSUMED_NEUTRALAffiliationASSUMED NEUTRAL.- See Also:
-
AFFILIATION_NEUTRAL
public static final int AFFILIATION_NEUTRALAffiliationNEUTRAL.- See Also:
-
AFFILIATION_SUSPECT
public static final int AFFILIATION_SUSPECTAffiliationSUSPECT.- See Also:
-
AFFILIATION_HOSTILE
public static final int AFFILIATION_HOSTILEAffiliationHOSTILE.- See Also:
-
AFFILIATION_EXERCISE_PENDING
public static final int AFFILIATION_EXERCISE_PENDINGAffiliationEXERCISE PENDING.- See Also:
-
AFFILIATION_EXERCISE_UNKNOWN
public static final int AFFILIATION_EXERCISE_UNKNOWNAffiliationEXERCISE UNKNOWN.- See Also:
-
AFFILIATION_EXERCISE_ASSUMED_FRIEND
public static final int AFFILIATION_EXERCISE_ASSUMED_FRIENDAffiliationEXERCISE ASSUMED FRIEND.- See Also:
-
AFFILIATION_EXERCISE_FRIEND
public static final int AFFILIATION_EXERCISE_FRIENDAffiliationEXERCISE FRIEND.- See Also:
-
AFFILIATION_EXERCISE_ASSUMED_NEUTRAL
public static final int AFFILIATION_EXERCISE_ASSUMED_NEUTRALAffiliationEXERCISE ASSUMED NEUTRAL.- See Also:
-
AFFILIATION_EXERCISE_NEUTRAL
public static final int AFFILIATION_EXERCISE_NEUTRALAffiliationEXERCISE NEUTRAL.- See Also:
-
AFFILIATION_JOKER
public static final int AFFILIATION_JOKERAffiliationJOKER.- See Also:
-
AFFILIATION_FAKER
public static final int AFFILIATION_FAKERAffiliationFAKER.- See Also:
-
-
Constructor Details
-
TLcdMilitarySymbolStyle
public TLcdMilitarySymbolStyle(Color aColor, Color aSelectionColor, int aLineWidth, int aLineStyle, boolean aIsSymbolFrameEnabled, boolean aIsSymbolFillEnabled, boolean aIsSymbolIconEnabled, String[] aLabel, Color aLabelColor, Font aLabelFont, Color aLabelFilledColor, boolean aIsLabelFramed, boolean aIsLabelFilled, boolean aIsLabelPinned, boolean aIsLabelAnchored, int aLabelPosition, int aSize) Constructs a newTLcdMilitarySymbolStyleobject with the given settings.- Parameters:
aColor- The line color for line symbols and off-set lines of icon symbols.aSelectionColor- The selection color for the construction line of line symbols and for the offset-line and bounding box of icon symbols.aLineWidth- The line width to use for all line symbols and off-set lines of icon symbols.aLineStyle- The style to use for the offset-line of an icon symbol. The options areTLcdMilitarySymbolStyle.PLAIN,TLcdMilitarySymbolStyle.SMALL_DASH,TLcdMilitarySymbolStyle.LARGE_DASHandTLcdMilitarySymbolStyle.ALTERNATE_DASH.aIsSymbolFrameEnabled- Whether the frame of an icon symbol should be painted.aIsSymbolFillEnabled- Whether an icon symbol should be painted filled.aIsSymbolIconEnabled- Whether the internal icon in the frame of an icon symbol should be painted.aLabel- The labels to use for labeling. These labels are only used when the particular symbols that use this style don't make use of the text modifiers as labels. This is the case for most of the line symbols.aLabelColor- The color to use for labels.aLabelFont- The font to use for labels.aLabelFilledColor- The fill color of the labels. This has only effect when the argument aIsLabelFilled == true.aIsLabelFramed- Whether the labels should be surrounded by a border.aIsLabelFilled- Whether the labels should be displayed in a filled rectangle.aIsLabelPinned- Whether the labels should be displayed with a pin to the object. This option is only used for symbols that use the labelsgetLabels(). Symbols which use the text modifiers as labels don't make use of this option, because the label layout is predefined by the Military Symbology standards.aIsLabelAnchored- Whether the labels should be displayed with a point on the object. This option is only used for symbols that use the labelsgetLabels(). Symbols which use the text modifiers as labels don't make use of this option, because the label layout is predefined by the Military Symbology standards.aLabelPosition- The position of this label from its anchor point. This option is only used for symbols that use the labelsgetLabels(). Symbols which use the text modifiers as labels don't make use of this option, because the label layout is predefined by the Military Symbology standards.aSize- The size of the symbol.
-
-
Method Details
-
getInstance
Returns a sharedTLcdMilitarySymbolStyleinstance.- Returns:
- a shared
TLcdMilitarySymbolStyleinstance.
-
newInstance
Returns a newTLcdMilitarySymbolStyleinstance.- Returns:
- a new
TLcdMilitarySymbolStyleinstance.
-
setInstance
Sets the sharedTLcdMilitarySymbolStyleinstance to be used.- Parameters:
aInstance- the sharedTLcdMilitarySymbolStyleinstance to be used.
-
getColor
Returns the line color for unframed icon symbols, line symbols and off-set lines of icon symbols. The default value isColor.BLUE.- Returns:
- the line color for unframed icon symbols, line symbols and off-set lines of icon symbols.
-
isAffiliationColorEnabled
public boolean isAffiliationColorEnabled()Returns whether the affiliation color mode is enabled. When this mode is enabled, the color for unframed icon symbols, line symbols and off-set lines of icon symbols will automatically be adapted to the affiliation of a symbol. If the affiliation is not determined, the color returned bygetColor()will be used; otherwise, the affiliation color has precedence. The default value isfalse.- Returns:
- True if the affiliation color mode is enabled.
-
getAffiliationColor
Returns the color that is currently used for the given affiliation. The default values are the ones defined in the Military Symbology specifications. The specifications define four different colors in the RGB space, namely yellow (255,255,128), blue (128,224,255), green (171,255,171) and red (255,128,128). These colors are used for all affiliations:AFFILIATION_PENDING; yellowAFFILIATION_UNKNOWN; yellowAFFILIATION_ASSUMED_FRIEND; blueAFFILIATION_FRIEND; blueAFFILIATION_ASSUMED_NEUTRAL; greenAFFILIATION_NEUTRAL; greenAFFILIATION_SUSPECT; redAFFILIATION_HOSTILE; redAFFILIATION_EXERCISE_PENDING; yellowAFFILIATION_EXERCISE_UNKNOWN; yellowAFFILIATION_EXERCISE_ASSUMED_FRIEND; blueAFFILIATION_EXERCISE_FRIEND; blueAFFILIATION_EXERCISE_ASSUMED_NEUTRAL; greenAFFILIATION_EXERCISE_NEUTRAL; greenAFFILIATION_JOKER; redAFFILIATION_FAKER; red
- Parameters:
aAffiliation- The affiliation for which the current color must be returned.- Returns:
- The color that is currently used for the given affiliation.
-
getAffiliationColor
Returns the color that is currently used for the given affiliation. The default values are the ones defined in the MIL-STD 2525 specification. The specification defines four different colors in the RGB space, namely yellow (255,255,128), blue (128,224,255), green (171,255,171) and red (255,128,128). The affiliation value can be obtained by callingTLcdEditableAPP6AObject.getAffiliationValue()orTLcdEditableMS2525bObject.getAffiliationValue()- Parameters:
aAffiliationValue- The affiliation value for which the current color must be returned.
-
getAlternateAffiliationColor
Returns the alternate color that is currently used for the given affiliation. If no alternate color was configured, this call will be equivalent as the callgetAffiliationColor(aAffiliation)- Parameters:
aAffiliation- The affiliation for which the alternate color must be returned.- Returns:
- The alternate color that is currently used for the given affiliation or the affiliation color if no alternate color was configured.
-
getFillPercentage
public double getFillPercentage()Returns the fill percentage of the frame of icon symbols. This factor is a value in the interval [0.0, 1.0].- Returns:
- the fill percentage to of the frame of icon symbols.
- See Also:
-
getAlternateFillColor
Returns the color used to fill the part of the frame that is not covered by the fill percentage. By default,nullis returned.- Returns:
- the color used to fill the part of the frame that is not covered by the fill percentage.
- See Also:
-
getForcedColor
Returns the color that currently overrides the normal colors of the icon symbol. The value isnull, indicating that the normal colors of an icon symbol will be used.- Returns:
- the color that currently overrides the normal colors of the icon symbol.
-
getSelectionColor
Returns the selection color for the construction line of line symbols and for the offset-line and bounding box of icon symbols. The default value isColor.red.- Returns:
- the color for line and icon symbols in selection mode.
-
getLineWidth
public int getLineWidth()Returns the line width to use for all line symbols, off-set lines and vertical lines of icon symbols. The default value is 1.- Returns:
- the line width to use for all line symbols, off-set lines and vertical lines of icon symbols.
-
getSymbolFrameLineWidth
public int getSymbolFrameLineWidth()Returns the frame line width of the icon symbols.- Returns:
- the frame line width of the icon symbols.
-
getLineStyle
public int getLineStyle()Returns the style to use for the offset-line of an icon symbol. The default value isPLAIN.- Returns:
- the style to use for the offset-line of an icon symbol.
- See Also:
-
getLabelColor
Returns the color to use for labels. The default value isColor.blue.- Returns:
- the color to use for labels.
-
getLabelFont
Returns the font to use for labels. The default value isnull, which results in the use of an internally defined default font: the 'Dialog' font with styleFont.PLAIN. The size may vary depending on the symbol's size (seeisLabelFontScalingEnabled()).- Returns:
- the font to use for labels.
- See Also:
-
isLabelFontScalingEnabled
public boolean isLabelFontScalingEnabled()Returns whether the label font size of the label is automatically scaled. If enabled, the font size for labels will be scaled according to the size of the symbol. If disabled, the original label font size of the font configured withsetLabelFont(Font)will be used. The default value istrue.- Returns:
- True if the label font size of the label is automatically scaled.
- See Also:
-
getLabelFilledColor
Returns the color to use for the labels background. This option is only used whenisLabelFilled()returns "true". The default value isColor.blue.- Returns:
- the color to use for the labels background.
-
isLabelWithPin
public boolean isLabelWithPin()Returns whether the label should be displayed with a pin to the object. This option is only used for symbols that use the labelsgetLabels(). Symbols which use the text modifiers as labels don't make use of this option, because the label layout is predefined by the Military Symbology standards. The default value isfalse.- Returns:
- true if the label should be displayed with a pin to the object.
-
isLabelWithAnchor
public boolean isLabelWithAnchor()Returns whether the label should be displayed with a point on the object. This option is only used for symbols that use the labelsgetLabels(). Symbols which use the text modifiers as labels don't make use of this option, because the label layout is predefined by the Military Symbology standards. The default value isfalse.- Returns:
- true if the label should be displayed with a point on the object.
-
isLabelWithFrame
public boolean isLabelWithFrame()Returns whether the label should be displayed in a frame. This option is only used for symbols that use the labelsgetLabels(). Symbols which use the text modifiers as labels don't make use of this option, because the label layout is predefined by the Military Symbology standards. The default value isfalse.- Returns:
- true if the label should be displayed in a frame.
-
isLabelFilled
public boolean isLabelFilled()Returns whether the label should be displayed in a filled rectangle. This option is only used for symbols that use the labelsgetLabels(). Symbols which use the text modifiers as labels don't make use of this option, because the label layout is predefined by the Military Symbology standards. The default value isfalse.- Returns:
- true if the label should be displayed in a filled rectangle.
-
getLabelPosition
public int getLabelPosition()Returns the relative position of the label with respect to the object. This option is used for symbols that use the labelsgetLabels()and for line symbols that are represented by a point list. The default value isEAST.- Returns:
- the relative position of the label with respect to the object.
-
getShiftLabelPosition
public int getShiftLabelPosition()Return the shift to apply to the label position. This option is only used for symbols that use the labelsgetLabels(). Symbols which use the text modifiers as labels don't make use of this option, because the label layout is predefined by the Military Symbology standards. The default value is the result of (getSizeSymbol()/ 2) + 10.- Returns:
- the shift to apply to the label position.
-
getSizeSymbol
public int getSizeSymbol()Returns the size of the icon symbol that uses this style. The default value is 64.- Returns:
- The size of the icon symbol.
-
anchorPointSFCT
public void anchorPointSFCT(Graphics aGraphics, int aMode, ILcdGXYContext aGXYContext, Point aPointSFCT, TLcdXYBounds aBounds, ILcdGXYPainter aGXYPainter) throws TLcdNoBoundsException Correction of the anchor point of the label.- Parameters:
aPointSFCT- the corrected anchor point of the label.aBounds- the bounds of the object.- Throws:
TLcdNoBoundsException
-
setLineWidth
public void setLineWidth(int aWidth) Sets the line width to use for all line symbols, off-set lines and vertical lines of icon symbols.- Parameters:
aWidth- the new line width to use for all line symbols, off-set lines and vertical lines of icon symbols.
-
setSymbolFrameLineWidth
public void setSymbolFrameLineWidth(int aWidth) Sets the frame line width of the icon symbols in pixels. The frame line width is only used whenisSymbolFrameEnabled()returns true.- Parameters:
aWidth- the new frame line width for icon symbols.
-
setSizeSymbol
public void setSizeSymbol(int aSize) Sets the size of the icon symbol that uses this style.- Parameters:
aSize- - The size of the icon symbol.
-
setOffset
public void setOffset(int aX, int aY) Sets the X and Y offset of the icon with respect to the location of the icon symbol. These values must be given in pixels.- Parameters:
aX- - The X offset.aY- - The Y offset.
-
getOffsetX
public int getOffsetX()Returns the X offset of the icon with respect to the location of the icon symbol. The offset is given in pixels. The default value is 0.- Returns:
- the X offset of the icon with respect to the location of the icon symbol.
-
getOffsetY
public int getOffsetY()Returns the Y offset of the icon with respect to the location of the icon symbol. The offset is given in pixels. The default value is 0.- Returns:
- the Y offset of the icon with respect to the location of the icon symbol.
-
setAnchorSymbol
Sets the icon which is displayed as an anchor icon for the icon symbol. The anchor icon is only displayed in 3D projection, and it is placed above terrain. If set to null, no anchor icon will be displayed. The default anchor icon is a filled circle, colored in the symbol's affiliation color.- Parameters:
aSymbol- a ILcdIcon implementation to be displayed as the anchor icon
-
getAnchorSymbol
Returns the icon used as an anchor icon for the icon symbol.- Returns:
- the icon used as an anchor icon for the icon symbol.
-
setSelectionRectangleWidth
public void setSelectionRectangleWidth(int aWidth) Sets the line width of the rectangle in pixels which is displayed when the icon symbol is selected. The default width value is 1 pixel.- Parameters:
aWidth- line width of the selection rectangle in pixels.
-
getSelectionRectangleWidth
public int getSelectionRectangleWidth()Returns the line width of the rectangle in pixels which is displayed when the icon symbol is selected.- Returns:
- the line width of the rectangle in pixels which is displayed when the icon symbol is selected.
-
setSelectionRectangleHaloColor
Sets the halo color for the selection rectangle of icon symbols.- Parameters:
aColor- the selection halo color for the selection rectangle of icon symbols.
-
getSelectionRectangleHaloColor
Returns the selection color for the halo of the selection rectangle of icon symbols. The default value isColor.BLUE- Returns:
- the color for halo of the selection rectangle of icon symbols.
-
setSelectionRectangleHaloWidth
public void setSelectionRectangleHaloWidth(int aWidth) Sets the line width in pixels of the halo of the selection rectangle of icon symbols.- Parameters:
aWidth- line width in pixels of the halo of the selection rectangle of icon symbols.
-
getSelectionRectangleHaloWidth
public int getSelectionRectangleHaloWidth()Returns the line width in pixels of the halo of the selection rectangle of icon symbols.- Returns:
- the line width in pixels of the halo of the selection rectangle of icon symbols. The default width value is 0 pixels.
-
setAltitudeFormat
Sets a new
Formatto format altitudes in labels.This property is currently used to format altitude labels in the following symbols:
- Weapon/Sensor Range Fan Circular
- Weapon/Sensor Range Fan Sector
The format needs to accept
Doubleobjects in its format method. AllDoubleinstances passed to this method are altitudes expressed in meters.- Parameters:
aFormat- The newFormatto format an altitude- See Also:
-
getAltitudeFormat
Returns theFormatto format altitudes in labels.- Returns:
- the
Formatto format altitudes in labels. - See Also:
-
setDistanceFormat
Sets a new
Formatto format distances in labels.This property is currently used to format distance labels in the following symbols:
- Weapon/Sensor Range Fan Circular
- Weapon/Sensor Range Fan Sector
The format needs to accept
Doubleobjects in its format method. AllDoubleinstances passed to this method are distances expressed in meters.- Parameters:
aDistanceFormat- The newFormatto format a distance- See Also:
-
getDistanceFormat
Returns theFormatto format distances in labels.- Returns:
- the
Formatto format distances in labels. - See Also:
-
setAngleFormat
Sets a new
Formatto format angles in labels.This property is currently used to format angle labels in the following symbols:
- Weapon/Sensor Range Fan Circular
- Weapon/Sensor Range Fan Sector
The format needs to accept
Doubleobjects in its format method. AllDoubleinstances passed to this method are angles expressed in degrees.- Parameters:
aAngleFormat- The newFormatto format an angle- See Also:
-
getAngleFormat
Returns theFormatto format angles in labels.- Returns:
- the
Formatto format angles in labels. - See Also:
-
setOffsetEditingEnabled
public void setOffsetEditingEnabled(boolean aOffsetEditingEnabled) Sets if the offset of the icon symbol is editable via CTRL+Drag operation. The default value istrue.- Parameters:
aOffsetEditingEnabled- the offset is editable if this is true
-
isOffsetEditingEnabled
public boolean isOffsetEditingEnabled()Returns true if the offset of the icon symbol is editable via CTRL+Drag operation.- Returns:
- true if the offset of the icon symbol is editable via CTRL+Drag operation.
-
setLineStyle
public void setLineStyle(int aLineStyle) Sets the style to use for the offset-line of an icon symbol. Possible values are:TLcdMilitarySymbolStyle.PLAIN: plain.TLcdMilitarySymbolStyle.SMALL_DASH: small dashing pattern.TLcdMilitarySymbolStyle.LARGE_DASH: large dashing pattern.TLcdMilitarySymbolStyle.ALTERNATE_DASH: alternate (small and large) dashing pattern.
- Parameters:
aLineStyle- the new style to use for the offset-line of an icon symbol.
-
setSymbolFrameEnabled
public void setSymbolFrameEnabled(boolean aSymbolFrameEnabled) Sets whether the frame of an icon symbol should be painted.- Parameters:
aSymbolFrameEnabled- Whether the frame of an icon symbol should be painted.
-
isSymbolFrameEnabled
public boolean isSymbolFrameEnabled()Returns whether the frame of an icon symbol should be painted. The default value istrue.- Returns:
- True if the frame of an icon symbol should be painted.
-
setSymbolFillEnabled
public void setSymbolFillEnabled(boolean aSymbolFillEnabled) Sets whether an icon symbol should be painted filled.- Parameters:
aSymbolFillEnabled- Whether an icon symbol should be painted filled.
-
isSymbolFillEnabled
public boolean isSymbolFillEnabled()Returns whether an icon symbol should be painted filled. The default value istrue.- Returns:
- True if an icon symbol should be painted filled.
-
setSymbolIconEnabled
public void setSymbolIconEnabled(boolean aSymbolIconEnabled) Sets whether the internal icon in the frame of an icon symbol should be painted.- Parameters:
aSymbolIconEnabled- Whether the internal icon in the frame of an icon symbol should be painted.
-
isSymbolIconEnabled
public boolean isSymbolIconEnabled()Returns whether the internal icon in the frame of an icon symbol should be painted. The default value istrue.- Returns:
- True if the internal icon in the frame of an icon symbol should be painted.
-
setSymbolFrameColor
Sets the frame color to be used for framed icon symbols. This color is also used to paint the echelon, status (Exercise, Simulation, Damaged, etc.) icons. When symbol fill is disabled, the symbol's affiliation color will be used as frame color, regardless of the configured symbol frame color. Additionally, the frame color will always be black and white dotted, for symbols of assumed affiliations (Assumed Friend, Assumed Neutral, etc.) for APP-6B/C/D and MIL-STD-2525C/D.- Throws:
NullPointerException- when providingnullas frame color.- Since:
- 2025.0
- See Also:
-
getSymbolFrameColor
Returns the frame color used for framed icon symbols. This color is also used to paint the echelon and status (Exercise, Simulation, Damaged, etc.) icons. When symbol fill is disabled, the symbol's affiliation color will be used as frame color, regardless of the configured symbol frame color. Additionally, the frame color will always be black and white dotted, for symbols of assumed affiliations (Assumed Friend, Assumed Neutral, etc.) for APP-6B/C/D and MIL-STD-2525C/D. The default value isColor.BLACK.- Returns:
- the frame color used for framed icon symbols, never
null. - Since:
- 2025.0
- See Also:
-
getForcedFrameLineStyle
Returns the style that currently overrides the normal symbol frame outline line style of the icon symbol. By default,nullis returned, indicating that the line style of the icon determined by the affiliation and status are used as defined in the standard.- Returns:
- an Integer representing the currently forced line style of the icon symbol frame,
or
nullif the default line style is used.
-
setForcedFrameLineStyle
Sets the line style to be used for the frame of an icon symbol: this will override the default line style for the outline of the symbol frame as defined by the standard. To revert to the default behavior,nullmust be supplied. Possible values are:PLAIN: plain (solid line).SMALL_DASH: small dashing pattern.LARGE_DASH: large dashing pattern.ALTERNATE_DASH: alternate (small and large) dashing pattern.BLACK_AND_WHITE_DOTTED: alternating black and white dots pattern.BLACK_AND_WHITE_DASHES: dashed stroke of alternating black and white dots pattern.
- Parameters:
aForcedFrameLineStyle- an Integer representing the line style to be used.- Since:
- 2022.0
-
getLabels
Returns the labels to use for labeling. These labels are only used when the particular symbols that use this style don't make use of the text modifiers as labels. This is the case for most of the line symbols.- Returns:
- the labels to use for labeling.
-
setLabels
Sets the labels to use for labeling. These labels are only used when the particular symbols that use this style don't make use of the text modifiers as labels. This is the case for most of the line symbols.- Parameters:
aLabels- the labels to use for labeling.
-
setLabelColor
Sets the color to use for labels.- Parameters:
aColor- the color to use for labels.
-
setLabelFont
Sets the font to use for labels.- Parameters:
aFont- the font to use for labels.
-
setLabelFontScalingEnabled
public void setLabelFontScalingEnabled(boolean aLabelFontScalingMode) Sets whether the font size of the label should be automatically scaled for icon symbols. If enabled, the font size for labels around icon symbols will be scaled according to the size of the symbol. If disabled, the original font size of the font returned bygetLabelFont()will be used.- Parameters:
aLabelFontScalingMode- The font size scaling mode.
-
setColor
Sets the color for unframed icon symbols, line symbols and off-set lines of icon symbols.- Parameters:
aColor- the line color for unframed icon symbols, line symbols and off-set lines of icon symbols.
-
setAffiliationColorEnabled
public void setAffiliationColorEnabled(boolean aAffiliationColorEnabled) Sets the affiliation color mode. When this mode is enabled, the color for unframed icon symbols, line symbols and off-set lines of icon symbols will automatically be adapted to the affiliation of a symbol. If the affiliation is not determined, the color returned bygetColor()will be used; otherwise, the affiliation color has precedence.- Parameters:
aAffiliationColorEnabled- The affiliation color mode.
-
setAffiliationColor
Sets the color for the given affiliation. These colors will be used for all framed icon symbols; for unframed icon symbols and line symbols, affiliation colors are only used when the affiliation color mode has been enabled - seeisAffiliationColorEnabled().- Parameters:
aAffiliation- The affiliation for which a color is set.aColor- The color to be used for the given affiliation.
-
setAlternateAffiliationColor
Sets the alternate color for the given affiliation. This alternate color is in used by some tactical graphics that can be painted in multiple colors. An example of such a symbol is MIL-STD-2525c symbol 2.X.2.1.2.3 'Line of contact', for which each side of the line of contact can have a different color.- Parameters:
aAffiliation- The affiliation for which an alternate color is set.aColor- The alternate color to be used for the given affiliation.
-
setFillPercentage
public void setFillPercentage(double aFillPercentage) Sets the fill percentage of the frame of icon symbols. This factor must be a value in the interval [0.0, 1.0], with 0.0 indicating no fill and 1.0 indicating a complete fill, starting from the bottom of the frame.This property is only taken into account when the symbol frame is enabled, i.e. when
isSymbolFrameEnabled()returnstrue.- Parameters:
aFillPercentage- the fill percentage of the frame of icon symbols.- See Also:
-
setAlternateFillColor
Sets the color to fill the part of the frame that is not covered by the fill percentage. Ifnullis supplied, the uncovered part of the frame is not filled.This property is only taken into account when the symbol frame is enabled, i.e. when
isSymbolFrameEnabled()returnstrue.- Parameters:
aAlternateFillColor- the color to fill the part of the frame that is not covered by the fill percentage.- See Also:
-
setForcedColor
Sets the color to be used for the icon symbol: this will override the normal colors for the different elements of the symbol. To revert to the normal colors of the military symbol,nullmust be supplied. Note that a selected symbol will always be displayed using the selection colors, even if a forced color is configured.- Parameters:
aColor- the color to be used for the military symbol.
-
setSelectionColor
Sets the selection color for the construction line of line symbols and for the offset-line and bounding box of icon symbols.- Parameters:
aColor- the selection color for the construction line of line symbols and for the offset-line and bounding box of icon symbols.
-
setLabelFilledColor
Sets the color to use for the labels background. This option is only used whenisLabelFilled()returns "true".- Parameters:
aColor- the color to use for the labels background.
-
setLabelWithPin
public void setLabelWithPin(boolean aLabelWithPin) Sets whether the label should be displayed with a pin to the object. This option is only used for symbols that use the labelsgetLabels(). Symbols which use the text modifiers as labels don't make use of this option, because the label layout is predefined by the Military Symbology standards.- Parameters:
aLabelWithPin- whether the label should be displayed with a pin to the object.
-
setLabelWithAnchor
public void setLabelWithAnchor(boolean aLabelWithAnchor) Sets whether the label should be displayed with a point on the object. This option is only used for symbols that use the labelsgetLabels(). Symbols which use the text modifiers as labels don't make use of this option, because the label layout is predefined by the Military Symbology standards.- Parameters:
aLabelWithAnchor- whether the label should be displayed with a point on the object.
-
setLabelWithFrame
public void setLabelWithFrame(boolean aLabelWithFrame) Sets whether the label should be displayed in a frame. This option is only used for symbols that use the labelsgetLabels(). Symbols which use the text modifiers as labels don't make use of this option, because the label layout is predefined by the Military Symbology standards.- Parameters:
aLabelWithFrame- whether the label should be displayed in a frame.
-
getLabelFrameColor
Returns the color to use for the label frame. This option is only used whenisLabelWithFrame()returnstrue. Anullvalue indicates that thegetLabelColor()should be used instead. This is also the default.- Returns:
- the color to use for the label frame or
null
-
setLabelFrameColor
Sets the color to use for the label frame.- Parameters:
aColor- the color to use for the label frame ornull- See Also:
-
getLabelFramePadding
public int getLabelFramePadding()Returns the padding between the label text and the label frame. This option is only used whenisLabelWithFrame()returnstrue. The default value is1.- Returns:
- the number of pixels between the label text and label frame
-
setLabelFramePadding
public void setLabelFramePadding(int aPadding) Sets the padding between the label text and the label frame.- Parameters:
aPadding- the number of pixels between the label text and label frame- See Also:
-
setLabelFilled
public void setLabelFilled(boolean aLabelFilled) Sets whether the label should be displayed in a filled rectangle.- Parameters:
aLabelFilled- whether the label should be displayed in a filled rectangle.
-
setLabelPosition
public void setLabelPosition(int aLabelPosition) Sets the relative position of the label with respect to the object. This option is used for symbols that use the labelsgetLabels()and for line symbols that are represented by a point list.- Parameters:
aLabelPosition- the relative position of the label with respect to the object.
-
setLabelEnabled
Sets whether the given label should be displayed.- Parameters:
aLabel- A label.aEnabled- whether the label should be displayed.
-
isLabelEnabled
Returns whether the given label should be displayed. The possible labels are the text modifiers defined by the static members ofILcdAPP6ACodedandILcdMS2525bCoded.- Parameters:
aLabel- A label as defined by the static members ofILcdAPP6ACodedandILcdMS2525bCoded>.- Returns:
- True if the given label should be displayed. False otherwise or for unknown labels.
-
getCornerSmoothness
public double getCornerSmoothness()Returns the smoothness (or rounding) factor that is used to render corners of polygons. This factor is a value in the interval [0.0, 1.0].- Returns:
- the smoothness (or rounding) factor for polygon corners.
- See Also:
-
setCornerSmoothness
public void setCornerSmoothness(double aSmoothnessFactor) Sets the smoothness (or rounding) factor that should be used to render corners of polygons. This factor must be a value in the interval [0.0, 1.0], with 0.0 indicating no rounding and 1.0 indicating a maximum rounding, which results in a very smooth corner.- Parameters:
aSmoothnessFactor- the smoothness (or rounding) factor for polygon corners.
-
isHaloEnabled
public boolean isHaloEnabled()Returns whether a halo is enabled for symbols (both icon and line symbols).By default,
falseis returned.- Returns:
- if a halo is enabled for icon and line symbols.
-
setHaloEnabled
public void setHaloEnabled(boolean aEnabled) Sets whether a halo should be enabled for symbols (both icon and line symbols).The halo color and thickness can be configured respectively through
setHaloColor(java.awt.Color)andsetHaloThickness(int).- Parameters:
aEnabled- whether a halo should be enabled for symbols (both icon and line symbols).- See Also:
-
getHaloColor
Returns the color that is used for icon and line symbol halos, if enabled (i.e., ifisHaloEnabled()returns true).By default,
Color.WHITEis returned.- Returns:
- the color that is used for icon and line symbol halos, if enabled.
-
setHaloColor
Sets the color to be used for icon and line symbol halos, if enabled (i.e., ifisHaloEnabled()returns true).- Parameters:
aColor- the color to be used for icon and line symbol halos, if enabled.
-
getHaloThickness
public int getHaloThickness()Returns the thickness that is used for icon and line symbol halos, if enabled (i.e., ifisHaloEnabled()returns true).By default, 1 is returned.
- Returns:
- the thickness that is used for icon and line symbol halos, if enabled.
-
setHaloThickness
public void setHaloThickness(int aThickness) Sets the thickness to be used for icon and line symbol halos, if enabled (i.e., ifisHaloEnabled()returns true).- Parameters:
aThickness- the thickness to be used for icon and line symbol halos, if enabled.
-
isLabelHaloEnabled
public boolean isLabelHaloEnabled()Returns whether a halo is enabled for labels of icon and line symbols.By default,
falseis returned.- Returns:
- if a halo is enabled for labels of icon and line symbols.
-
setLabelHaloEnabled
public void setLabelHaloEnabled(boolean aEnabled) Sets whether a halo should be enabled for labels of icon and line symbols.The label halo color and thickness can be configured respectively through
setLabelHaloColor(java.awt.Color)andsetLabelHaloThickness(int).- Parameters:
aEnabled- whether a halo should be enabled for labels of icon and line symbols.- See Also:
-
getLabelHaloColor
Returns the color that is used for the label halo of icon and line symbols, if enabled (i.e., ifisLabelHaloEnabled()returns true).By default,
Color.GRAYis returned.- Returns:
- the color that is used for the label halo of icon and line symbols, if enabled.
-
setLabelHaloColor
Sets the color to be used for the label halo of icon and line symbols, if enabled (i.e., ifisLabelHaloEnabled()returns true).- Parameters:
aColor- the color to be used for the label halo of icon and line symbols, if enabled.
-
getLabelHaloThickness
public int getLabelHaloThickness()Returns the thickness that is used for the label halo of icon and line symbols, if enabled (i.e., ifisLabelHaloEnabled()returns true).By default, 1 is returned.
- Returns:
- the thickness that is used for the label halo of icon and line symbols, if enabled.
-
setLabelHaloThickness
public void setLabelHaloThickness(int aThickness) Sets the thickness to be used for the label halo of icon and line symbols, if enabled (i.e., ifisLabelHaloEnabled()returns true).- Parameters:
aThickness- the thickness to be used for the label halo of icon and line symbols, if enabled.
-
isVerticalLineEnabled
public boolean isVerticalLineEnabled()Returns whether a perpendicular line from the center point of the icon symbols to the earth surface is enabled. This visualizes the projection of the icon symbols onto a terrain.Vertical lines are only applicable for icon symbols with an altitude value bigger than 0 in a 3D view.
- The vertical line width can be set by calling
setLineWidth(int). - The color of the vertical line depends on
isAffiliationColorEnabled(). If affiliation color is enabled, it's determined by affiliation of the symbol's affiliation otherwise it's determined bygetColor().
true.- Returns:
- if a perpendicular line from the center point of the icon symbols to the earth surface is enabled.
- See Also:
- The vertical line width can be set by calling
-
setVerticalLineEnabled
public void setVerticalLineEnabled(boolean aEnabled) Sets whether a perpendicular line from the center point of the icon symbols to the earth surface is enabled. If enabled, it visualizes the projection of the icon symbols onto a terrain.Vertical lines are only applicable for the icon symbols with an altitude value bigger than 0 in a 3D view.
- Parameters:
aEnabled- whether a perpendicular line from the center point of the icon symbols to the earth surface is enabled.- See Also:
-
setSpeedLeaderLengthRatio
public void setSpeedLeaderLengthRatio(double aRatio) Sets the length ratio of the speed leader to the symbol size against the speed value of 1m/s.
SeesetSpeedLeaderLength(double, ILcdISO19103Measure)for a convenience setter using a speed measure.- Parameters:
aRatio- the length ratio of speed leader to the symbol size against the speed value of 1m/s.- See Also:
-
getSpeedLeaderLengthRatio
public double getSpeedLeaderLengthRatio()Returns the length ratio of the speed leader to the symbol size against the speed value of 1m/s.- If aRatio is 1, 1m/s of speed value will be visualized with the speed leader having the length of 1 x
getSizeSymbol() - If aRatio is 10, 1m/s of speed value will be visualized with the speed leader having the length of 10 x
getSizeSymbol()
Speed leaders are only applicable to APP-6C/D and MIL-STD 2525C/D.
The default value for the length ratio is 0.05- Returns:
- the length ratio of the speed leader to the symbol size against the speed value of 1m/s.
- See Also:
- If aRatio is 1, 1m/s of speed value will be visualized with the speed leader having the length of 1 x
-
setSpeedLeaderLength
A convenience method that changes the speed leader length ratio so that the speed leader length is equal to the symbol size timesaTimesSymbolSizeif the symbol has the given speed. For example, if the symbol size is 64 pixels and the method is called withaTimesSymbolSize == 3and a speed of Mach 1, the symbol's speed leader will be3*64=192pixels long travelling at Mach 1, and3*64*2=384pixels at Mach 2.- Parameters:
aTimesSymbolSize- the length ratio of speed leader to the symbol size against the speed value of 1m/s.aSpeed- A speed measure which will be the reference for calculating length ratio of the speed leader.- Throws:
IllegalArgumentException- if the unit measure type code of aSpeed is not equals toTLcdISO19103MeasureTypeCode.VELOCITY- See Also:
-
isEngagementBarEnabled
public boolean isEngagementBarEnabled()Returns a boolean indicating whether the engagement bar graphic amplifier is enabled.- Returns:
- boolean indicating whether the engagement bar graphic amplifier is enabled.
- See Also:
-
setEngagementBarEnabled
public void setEngagementBarEnabled(boolean aEngagementBarEnabled) Sets whether the engagement bar graphic amplifier is enabled.- See Also:
-
getEngagementBarStyle
Returns the engagement bar graphic amplifier's styling options.- Returns:
- The engagement bar graphic amplifier's styling options.
- See Also:
-
setEngagementBarStyle
Sets the engagement bar graphic amplifier's styling options.- See Also:
-
isStrictSegmentationEnabled
public boolean isStrictSegmentationEnabled()This property indicates whether strict segmentation is enabled. Strictly speaking, the standard defines that some symbols need to repeat all information for each segment of 2 consecutive anchor points. This can cause issues in realistic situations.
For example, if you create a "Main Supply Route" that matches an actual route, in the real world. It would be constructed out of many thousands of anchor points, forming very small segments. Having to repeat the information thousands of times is not desired as labels will overlap each other and can cause performance issues when zooming out far enough where you are able to see the whole symbol.
If this property returns
false, the information of the symbol will be repeated across the symbols in segments that are larger than 2 anchor points, if the information is repeated often enough.Strict segmentation is disabled by default.
- Returns:
- a boolean indicating whether strict segmentation is enabled
-
setStrictSegmentationEnabled
public void setStrictSegmentationEnabled(boolean aStrictSegmentationEnabled) Enables or disables strict segmentation. This property can be used to limit the amount of times information is repeated across a symbol. Strictly speaking, the standard defines that some symbols need to repeat all information for each segment of 2 consecutive anchor points. This can cause issues in realistic situations.
For example, if you create a "Main Supply Route" that matches an actual route, in the real world. It would be constructed out of many thousands of anchor points, forming very small segments. Having to repeat the information thousands of times is not desired as labels will overlap each other and can cause performance issues when zooming out far enough where you are able to see the whole symbol.
If this property is set to
false, the information of the symbol will be repeated across the symbols in segments that are larger than 2 anchor points, if the information is repeated often enough.Strict segmentation is disabled by default.
- Parameters:
aStrictSegmentationEnabled- a boolean indicating whether strict segmentation is enabled
-
addPropertyChangeListener
Adds the given listener that is notified when a property of this style is changed.- Parameters:
aPropertyChangeListener- the object to notify when a property of this style is changed.
-
removePropertyChangeListener
Removes the given listener from the list so that it is no longer notified when a property of this style is changed.- Parameters:
aPropertyChangeListener- the listener that should no longer be notified when a property of this style is changed.
-
equals
-
hashCode
public int hashCode() -
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:
-