public class TLcdDefaultAPP6AStyle extends Object implements ILcdAPP6AStyle, Serializable
AFFILIATION_ASSUMED_FRIEND, AFFILIATION_ASSUMED_NEUTRAL, AFFILIATION_EXERCISE_ASSUMED_FRIEND, AFFILIATION_EXERCISE_ASSUMED_NEUTRAL, AFFILIATION_EXERCISE_FRIEND, AFFILIATION_EXERCISE_HOSTILE, AFFILIATION_EXERCISE_NEUTRAL, AFFILIATION_EXERCISE_PENDING, AFFILIATION_EXERCISE_SUSPECT, AFFILIATION_EXERCISE_UNKNOWN, AFFILIATION_FAKER, AFFILIATION_FRIEND, AFFILIATION_HOSTILE, AFFILIATION_JOKER, AFFILIATION_NEUTRAL, AFFILIATION_PENDING, AFFILIATION_SUSPECT, AFFILIATION_UNKNOWN, ALTERNATE_DASH, BLACK_AND_WHITE_DASHES, BLACK_AND_WHITE_DOTTED, CENTER, EAST, LARGE_DASH, NORTH, NORTHEAST, NORTHWEST, PLAIN, sLabelPositions, SMALL_DASH, SOUTH, SOUTHEAST, SOUTHWEST, WEST
Constructor and Description |
---|
TLcdDefaultAPP6AStyle(Color aColor,
Color aSelectionColor,
Color aFilledColor,
int aLineWidth,
int aLineStyle,
boolean aIsFilled,
boolean aIsOutlined,
String[] aLabel,
Color aLabelColor,
Font aLabelFont,
Color aLabelFilledColor,
boolean aIsLabelFramed,
boolean aIsLabelFilled,
boolean aIsLabelPined,
boolean aIsLabelAnchored,
int aLabelPosition,
int aSize)
Deprecated.
|
TLcdDefaultAPP6AStyle(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 aIsLabelPined,
boolean aIsLabelAnchored,
int aLabelPosition,
int aSize)
Constructs a new
TLcdDefaultAPP6AStyle object with the given settings. |
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds the given listener that is notified when a property of this style is changed.
|
void |
anchorPointSFCT(Graphics graphics,
int mode,
ILcdGXYContext gxyContext,
Point point,
TLcdXYBounds bounds,
ILcdGXYPainter gxyPainter)
Correction of the anchor point of the label.
|
Object |
clone()
Makes
Object.clone() public. |
boolean |
equals(Object aO) |
Color |
getAffiliationColor(ELcdAPP6Standard aStandard,
String aAffiliationValue) |
Color |
getAffiliationColor(int aAffiliation)
Returns the color that is currently used for the given affiliation.
|
Color |
getAlternateAffiliationColor(int aAffiliation)
Returns the alternate color that is currently used for the given affiliation.
|
Color |
getAlternateFillColor()
Returns the color used to fill the part of the frame that is not covered
by the fill percentage.
|
Format |
getAltitudeFormat()
Returns the
Format to format altitudes in labels. |
ILcdIcon |
getAnchorSymbol()
Returns the icon used as an anchor icon for the icon symbol.
|
Format |
getAngleFormat()
Returns the
Format to format angles in labels. |
double |
getArrowCurvedness()
Returns the curvedness factor that is used to render aviation-related arrow symbols
that consist of exactly 2 points.
|
Color |
getColor()
Returns the line color for unframed icon symbols, line symbols and off-set lines of icon symbols.
|
double |
getCornerSmoothness()
Returns the smoothness (or rounding) factor that is used to render corners of polygons.
|
Format |
getDistanceFormat()
Returns the
Format to format distances in labels. |
TLcdEngagementBarStyle |
getEngagementBarStyle() |
Color |
getFilledColor()
Returns the fill color for areas in default mode.
|
double |
getFillPercentage()
Returns the fill percentage used to fill the frame of icon symbols.
|
Color |
getForcedColor()
Returns the color that currently overrides the normal colors of the icon symbol.
|
Integer |
getForcedFrameLineStyle()
Returns the style that currently overrides the normal symbol frame outline line style of the icon symbol.
|
Color |
getHaloColor()
Returns the color that is used for icon and line symbol halos, if enabled
(i.e., if
ILcdAPP6AStyle.isHaloEnabled() returns true). |
int |
getHaloThickness()
Returns the thickness that is used for icon and line symbol halos, if enabled
(i.e., if
ILcdAPP6AStyle.isHaloEnabled() returns true). |
static TLcdDefaultAPP6AStyle |
getInstance()
Returns a shared
TLcdDefaultAPP6AStyle instance. |
Color |
getLabelColor()
Returns the color to use for labels.
|
Color |
getLabelFilledColor()
Returns the color to use for the labels background.
|
Font |
getLabelFont()
Returns the font to use for labels.
|
Color |
getLabelFrameColor()
Returns the color to use for the label frame.
|
int |
getLabelFramePadding()
Returns the padding between the label text and the label frame.
|
Color |
getLabelHaloColor()
Returns the color that is used for the label halo of icon and line symbols, if enabled
(i.e., if
ILcdAPP6AStyle.isLabelHaloEnabled() returns true). |
int |
getLabelHaloThickness()
Returns the thickness that is used for the label halo of icon and line symbols, if enabled
(i.e., if
ILcdAPP6AStyle.isLabelHaloEnabled() returns true). |
int |
getLabelPosition()
Returns the relative position of the label with respect to the object.
|
int |
getLineStyle()
Returns the style to use for the offset-line of an icon symbol.
|
int |
getLineWidth()
Returns the line width to use for all line symbols, off-set lines and vertical lines of icon symbols.
|
static TLcdDefaultAPP6AStyle |
getNewInstance()
Returns a new
TLcdDefaultAPP6AStyle instance. |
int |
getOffsetX()
Returns the X offset of the icon with respect to the location of the icon symbol.
|
int |
getOffsetY()
Returns the Y offset of the icon with respect to the location of the icon symbol.
|
boolean |
getOutlined()
Returns whether an icon symbol should be painted outlined.
|
Color |
getSelectionColor()
Returns the selection color for the construction line of line symbols and for the
offset-line and bounding box of icon symbols.
|
Color |
getSelectionRectangleHaloColor()
Returns the selection color for the halo of the selection rectangle of icon symbols.
|
int |
getSelectionRectangleHaloWidth()
The default width value is 0 pixels.
|
int |
getSelectionRectangleWidth()
Returns the line width of the rectangle in pixels which is displayed when the icon symbol is selected
|
int |
getShiftLabelPosition()
Return the shift to apply to the label position.
|
int |
getSizeSymbol()
Returns the size of the icon symbol that uses this style.
|
double |
getSpeedLeaderLengthRatio()
Returns the length ratio of the speed leader to the symbol size against the speed value of 1m/s.
|
int |
getSymbolFrameLineWidth()
Returns the frame line width of the icon symbols.
|
String |
getTextureFilePath()
Returns the path to the texture images.
|
double |
getTransparency()
Do not use this method.
|
double |
getWidth()
Deprecated.
This method is replaced by
getWidth() in ILcdAPP6AShape . |
int |
hashCode() |
boolean |
isAffiliationColorEnabled()
Returns whether the affiliation color mode is enabled.
|
boolean |
isEngagementBarEnabled() |
boolean |
isFilled()
Returns whether an area should be filled.
|
boolean |
isHaloEnabled()
Returns whether a halo is enabled for symbols (both icon and line symbols).
|
boolean |
isLabelEnabled(String aLabel)
Returns whether the given label should be displayed.
|
boolean |
isLabelFilled()
Returns whether the label should be displayed in a filled rectangle.
|
boolean |
isLabelFontScalingEnabled()
Returns whether the label font size of the label is automatically scaled.
|
boolean |
isLabelHaloEnabled()
Returns whether a halo is enabled for labels of icon and line symbols.
|
boolean |
isLabelWithAnchor()
Returns whether the label should be displayed with a point on the object.
|
boolean |
isLabelWithFrame()
Returns whether the label should be displayed in a frame.
|
boolean |
isLabelWithPin()
Returns whether the label should be displayed with a pin to the object.
|
boolean |
isOffsetEditingEnabled()
Returns true if the offset of the icon symbol is editable via CTRL+Drag operation.
|
boolean |
isStrictSegmentationEnabled()
This property indicates whether or not strict segmentation is enabled.
|
boolean |
isSymbolFillEnabled()
Returns whether an icon symbol should be painted filled.
|
boolean |
isSymbolFrameEnabled()
Returns whether the frame of an icon symbol should be painted.
|
boolean |
isSymbolIconEnabled()
Returns whether the internal icon in the frame of an icon symbol should be painted.
|
boolean |
isVerticalLineEnabled()
Returns whether a perpendicular line from the center point of the icon symbols to the earth surface is enabled.
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes the given listener from the list so that it is no longer notified when a property of this style is changed.
|
String[] |
retrieveLabels()
Returns the labels to use for labeling.
|
void |
setAffiliationColor(int aAffiliation,
Color aColor)
Sets the color for the given affiliation.
|
void |
setAffiliationColorEnabled(boolean aAffiliationColorEnabled)
Sets the affiliation color mode.
|
void |
setAlternateAffiliationColor(int aAffiliation,
Color aColor)
Sets the alternate color for the given affiliation.
|
void |
setAlternateFillColor(Color aAlternateFillColor)
Sets the color to fill the part of the frame that is not covered
by the fill percentage.
|
void |
setAltitudeFormat(Format aFormat)
Sets a new
Format to format altitudes in labels. |
void |
setAnchorSymbol(ILcdIcon aSymbol)
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.
|
void |
setAngleFormat(Format aAngleFormat)
Sets a new
Format to format angles in labels. |
void |
setArrowCurvedness(double aBulgeFactor)
Sets the curvedness factor for aviation-related arrow symbols that consist of exactly 2 points.
|
void |
setColor(Color color)
Sets the color for unframed icon symbols, line symbols, off-set lines and vertical lines of icon symbols.
|
void |
setCornerSmoothness(double aFactor)
Sets the smoothness (or rounding) factor that should be used to render corners of polygons.
|
void |
setDistanceFormat(Format aDistanceFormat)
Sets a new
Format to format distances in labels. |
void |
setEngagementBarEnabled(boolean aEngagementBarEnabled)
Sets wether or not the engagement bar graphic amplifier is enabled.
|
void |
setEngagementBarStyle(TLcdEngagementBarStyle aEngagementBarStyle)
Sets the engagement bar graphic amplifier's styling options.
|
void |
setFilled(boolean filled)
Sets whether an area should be filled.
|
void |
setFilledColor(Color color)
Sets the fill color for areas in default mode.
|
void |
setFillPercentage(double aFillPercentage)
Sets the fill percentage to fill the frame of icon symbols.
|
void |
setForcedColor(Color color)
Sets the color to be used for the military symbol: this will override the normal colors for the
different elements of the symbol.
|
void |
setForcedFrameLineStyle(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.
|
void |
setHaloColor(Color aColor)
Sets the color to be used for icon and line symbol halos, if enabled
(i.e., if
ILcdAPP6AStyle.isHaloEnabled() returns true). |
void |
setHaloEnabled(boolean aEnabled)
Sets whether a halo should be enabled for symbols (both icon and line symbols).
|
void |
setHaloThickness(int aThickness)
Sets the thickness to be used for icon and line symbol halos, if enabled
(i.e., if
ILcdAPP6AStyle.isHaloEnabled() returns true). |
static void |
setInstance(TLcdDefaultAPP6AStyle aInstance)
Sets the shared
TLcdDefaultAPP6AStyle instance to be used. |
void |
setLabelColor(Color color)
Sets the color to use for labels.
|
void |
setLabelEnabled(String aLabel,
boolean aEnabled)
Sets whether the given label should be displayed.
|
void |
setLabelFilled(boolean select)
Sets whether the label should be displayed in a filled rectangle.
|
void |
setLabelFilledColor(Color color)
Sets the color to use for the labels background.
|
void |
setLabelFont(Font font)
Sets the font to use for labels.
|
void |
setLabelFontScalingEnabled(boolean aLabelFontScalingMode)
Sets whether the font size of the label should be automatically scaled
for icon symbols.
|
void |
setLabelFrameColor(Color aColor)
Sets the color to use for the label frame.
|
void |
setLabelFramePadding(int aPadding)
Sets the padding between the label text and the label frame.
|
void |
setLabelHaloColor(Color aColor)
Sets the color to be used for the label halo of icon and line symbols, if enabled
(i.e., if
ILcdAPP6AStyle.isLabelHaloEnabled() returns true). |
void |
setLabelHaloEnabled(boolean aEnabled)
Sets whether a halo should be enabled for labels of icon and line symbols.
|
void |
setLabelHaloThickness(int aThickness)
Sets the thickness to be used for the label halo of icon and line symbols, if enabled
(i.e., if
ILcdAPP6AStyle.isLabelHaloEnabled() returns true). |
void |
setLabelPosition(int position)
Sets the relative position of the label with respect to the object.
|
void |
setLabels(String[] label)
Sets the labels to use for labeling.
|
void |
setLabelWithAnchor(boolean select)
Sets whether the label should be displayed with a point on the object.
|
void |
setLabelWithFrame(boolean select)
Sets whether the label should be displayed in a frame.
|
void |
setLabelWithPin(boolean select)
Sets whether the label should be displayed with a pin to the object.
|
void |
setLineStyle(int lineStyle)
Sets the style to use for the offset-line of an icon symbol.
|
void |
setLineWidth(int width)
Sets the line width to use for all line symbols, off-set lines and vertical lines of icon symbols.
|
void |
setOffset(int x,
int y)
Sets the X and Y offset of the icon with respect to the location of the icon symbol.
|
void |
setOffsetEditingEnabled(boolean aOffsetEditingEnabled)
Sets if the offset of the icon symbol is editable via CTRL+Drag operation.
|
void |
setOutlined(boolean outlined)
Sets whether an icon symbol should be painted outlined.
|
void |
setSelectionColor(Color color)
Sets the selection color for the construction line of line symbols and for the
offset-line and bounding box of icon symbols.
|
void |
setSelectionRectangleHaloColor(Color aColor)
Sets the halo color for the selection rectangle of icon symbols.
|
void |
setSelectionRectangleHaloWidth(int aWidth)
Sets the line width in pixels of the halo of the selection rectangle of icon symbols.
|
void |
setSelectionRectangleWidth(int aWidth)
Sets the line width of the rectangle in pixels which is displayed when the icon symbol is selected
|
void |
setSizeSymbol(int size)
Sets the size of the icon symbol that uses this style.
|
void |
setSpeedLeaderLength(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 times
aTimesSymbolSize if the symbol has the given speed. |
void |
setSpeedLeaderLengthRatio(double aRatio)
Sets the length ratio of the speed leader to the symbol size against the speed value of 1m/s.
See ILcdAPP6AStyle.setSpeedLeaderLength(double, ILcdISO19103Measure) for a convenience setter using a speed measure. |
void |
setStrictSegmentationEnabled(boolean aStrictSegmentationEnabled)
Enabled or disabled strict segmentation.
|
void |
setSymbolFillEnabled(boolean aSymbolFillEnabled)
Sets whether an icon symbol should be painted filled.
|
void |
setSymbolFrameEnabled(boolean aSymbolFrameEnabled)
Sets whether the frame of an icon symbol should be painted.
|
void |
setSymbolFrameLineWidth(int aWidth)
Sets the frame line width of the icon symbols in pixels.
|
void |
setSymbolIconEnabled(boolean aSymbolIconEnabled)
Sets whether the internal icon in the frame of an icon symbol should be painted.
|
void |
setTextureFilePath(String filepath)
Sets the path to the texture images.
|
void |
setTransparency(double aTransparency)
Do not use this method.
|
void |
setVerticalLineEnabled(boolean aEnabled)
Sets whether a perpendicular line from the center point of the icon symbols to the earth surface is enabled.
|
public TLcdDefaultAPP6AStyle(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 aIsLabelPined, boolean aIsLabelAnchored, int aLabelPosition, int aSize)
TLcdDefaultAPP6AStyle
object with the given settings.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 are ILcdAPP6AStyle.PLAIN
,
ILcdAPP6AStyle.SMALL_DASH
, ILcdAPP6AStyle.LARGE_DASH
and ILcdAPP6AStyle.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 should be displayed in a filled rectangle.aIsLabelPined
- Whether the labels should be displayed with a pin to the object.
This option is only used for symbols that use the labels retrieveLabels()
.
Symbols which use the text modifiers as labels don't make use of this option,
because the label layout is predefined by the APP-6A standard.aIsLabelAnchored
- Whether the labels should be displayed with a point on the object.
This option is only used for symbols that use the labels retrieveLabels()
.
Symbols which use the text modifiers as labels don't make use of this option,
because the label layout is predefined by the APP-6A standard.aLabelPosition
- The position of this label from its anchor point.
This option is only used for symbols that use the labels retrieveLabels()
.
Symbols which use the text modifiers as labels don't make use of this option,
because the label layout is predefined by the APP-6A standard.aSize
- The size of the symbol.ILcdAPP6AStyle
public TLcdDefaultAPP6AStyle(Color aColor, Color aSelectionColor, Color aFilledColor, int aLineWidth, int aLineStyle, boolean aIsFilled, boolean aIsOutlined, String[] aLabel, Color aLabelColor, Font aLabelFont, Color aLabelFilledColor, boolean aIsLabelFramed, boolean aIsLabelFilled, boolean aIsLabelPined, boolean aIsLabelAnchored, int aLabelPosition, int aSize)
TLcdDefaultAPP6AStyle
object with the given settings.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.aFilledColor
- Not used.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 are ILcdAPP6AStyle.PLAIN
,
ILcdAPP6AStyle.SMALL_DASH
, ILcdAPP6AStyle.LARGE_DASH
and ILcdAPP6AStyle.ALTERNATE_DASH
.aIsFilled
- Not used.aIsOutlined
- Whether an icon should be painted outlined. Replaced by isSymbolFillEnabled()
and
setSymbolFillEnabled()
.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 should be displayed in a filled rectangle.aIsLabelPined
- Whether the labels should be displayed with a pin to the object.
This option is only used for symbols that use the labels retrieveLabels()
.
Symbols which use the text modifiers as labels don't make use of this option,
because the label layout is predefined by the APP-6A standard.aIsLabelAnchored
- Whether the labels should be displayed with a point on the object.
This option is only used for symbols that use the labels retrieveLabels()
.
Symbols which use the text modifiers as labels don't make use of this option,
because the label layout is predefined by the APP-6A standard.aLabelPosition
- The position of this label from its anchor point.
This option is only used for symbols that use the labels retrieveLabels()
.
Symbols which use the text modifiers as labels don't make use of this option,
because the label layout is predefined by the APP-6A standard.aSize
- The size of the symbol.ILcdAPP6AStyle
public String[] retrieveLabels()
ILcdAPP6AStyle
retrieveLabels
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
retrieveLabels
in interface ILcdAPP6AStyle
public String getTextureFilePath()
ILcdAPP6AStyle
getTextureFilePath
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
getTextureFilePath
in interface ILcdAPP6AStyle
public void setTextureFilePath(String filepath)
ILcdAPP6AStyle
setTextureFilePath
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setTextureFilePath
in interface ILcdAPP6AStyle
filepath
- the path to the texture images.public Color getColor()
Color.blue
.getColor
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
getColor
in interface ILcdAPP6AStyle
public boolean isAffiliationColorEnabled()
getColor()
will be used; otherwise, the affiliation color
has precedence.
The default value is false
.isAffiliationColorEnabled
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
isAffiliationColorEnabled
in interface ILcdAPP6AStyle
public Color getAffiliationColor(int aAffiliation)
ILcdAPP6AStyle.AFFILIATION_PENDING
; yellowILcdAPP6AStyle.AFFILIATION_UNKNOWN
; yellowILcdAPP6AStyle.AFFILIATION_ASSUMED_FRIEND
; blueILcdAPP6AStyle.AFFILIATION_FRIEND
; blueILcdAPP6AStyle.AFFILIATION_ASSUMED_NEUTRAL
; greenILcdAPP6AStyle.AFFILIATION_NEUTRAL
; greenILcdAPP6AStyle.AFFILIATION_SUSPECT
; redILcdAPP6AStyle.AFFILIATION_HOSTILE
; redILcdAPP6AStyle.AFFILIATION_EXERCISE_PENDING
; yellowILcdAPP6AStyle.AFFILIATION_EXERCISE_UNKNOWN
; yellowILcdAPP6AStyle.AFFILIATION_EXERCISE_ASSUMED_FRIEND
; blueILcdAPP6AStyle.AFFILIATION_EXERCISE_FRIEND
; blueILcdAPP6AStyle.AFFILIATION_EXERCISE_ASSUMED_NEUTRAL
; greenILcdAPP6AStyle.AFFILIATION_EXERCISE_NEUTRAL
; greenILcdAPP6AStyle.AFFILIATION_JOKER
; redILcdAPP6AStyle.AFFILIATION_FAKER
; redgetAffiliationColor
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
getAffiliationColor
in interface ILcdAPP6AStyle
aAffiliation
- The affiliation for which the current color must be returned.public Color getAffiliationColor(ELcdAPP6Standard aStandard, String aAffiliationValue)
public Color getAlternateAffiliationColor(int aAffiliation)
getAffiliationColor(aAffiliation)
getAlternateAffiliationColor
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
getAlternateAffiliationColor
in interface ILcdAPP6AStyle
aAffiliation
- The affiliation for which the alternate color must be returned.public double getFillPercentage()
By default, 1.0
is returned.
getFillPercentage
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
getFillPercentage
in interface ILcdAPP6AStyle
ILcdAPP6AStyle.setFillPercentage(double)
public Color getAlternateFillColor()
By default, null
is returned.
getAlternateFillColor
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
getAlternateFillColor
in interface ILcdAPP6AStyle
ILcdAPP6AStyle.setAlternateFillColor(java.awt.Color)
,
ILcdAPP6AStyle.setFillPercentage(double)
public Color getFilledColor()
ILcdAPP6AStyle
getFilledColor
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
getFilledColor
in interface ILcdAPP6AStyle
public Color getForcedColor()
null
, indicating that the normal colors of an icon symbol will be used.getForcedColor
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
getForcedColor
in interface ILcdAPP6AStyle
public Color getSelectionColor()
Color.red
.getSelectionColor
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
getSelectionColor
in interface ILcdAPP6AStyle
public double getWidth()
getWidth()
in ILcdAPP6AShape
.public int getLineWidth()
getLineWidth
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
getLineWidth
in interface ILcdAPP6AStyle
public int getSymbolFrameLineWidth()
getSymbolFrameLineWidth
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
getSymbolFrameLineWidth
in interface ILcdAPP6AStyle
public int getLineStyle()
ILcdAPP6AStyle.PLAIN
.getLineStyle
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
getLineStyle
in interface ILcdAPP6AStyle
setLineStyle(int)
public boolean isFilled()
ILcdAPP6AStyle
isFilled
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
isFilled
in interface ILcdAPP6AStyle
public boolean getOutlined()
ILcdAPP6AStyle
getOutlined
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
getOutlined
in interface ILcdAPP6AStyle
public Color getLabelColor()
Color.blue
.getLabelColor
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
getLabelColor
in interface ILcdAPP6AStyle
public Font getLabelFont()
null
, which results in the use of an internally
defined default font: the 'Dialog' font with style Font.PLAIN
. The size may vary
depending on the symbol's size (see isLabelFontScalingEnabled()
).getLabelFont
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
getLabelFont
in interface ILcdAPP6AStyle
public boolean isLabelFontScalingEnabled()
setLabelFont(Font)
will be used.
The default value is true
.isLabelFontScalingEnabled
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
isLabelFontScalingEnabled
in interface ILcdAPP6AStyle
getSizeSymbol()
,
setLabelFont(Font)
public Color getLabelFilledColor()
isLabelFilled()
returns "true".
The default value is Color.blue
.getLabelFilledColor
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
getLabelFilledColor
in interface ILcdAPP6AStyle
public boolean isLabelWithPin()
retrieveLabels()
.
Symbols which use the text modifiers as labels don't make use of this option,
because the label layout is predefined by the APP-6A standard.
The default value is false
.isLabelWithPin
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
isLabelWithPin
in interface ILcdAPP6AStyle
public boolean isLabelWithAnchor()
retrieveLabels()
.
Symbols which use the text modifiers as labels don't make use of this option,
because the label layout is predefined by the APP-6A standard.
The default value is false
.isLabelWithAnchor
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
isLabelWithAnchor
in interface ILcdAPP6AStyle
public boolean isLabelWithFrame()
retrieveLabels()
.
Symbols which use the text modifiers as labels don't make use of this option,
because the label layout is predefined by the APP-6A standard.
The default value is false
.isLabelWithFrame
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
isLabelWithFrame
in interface ILcdAPP6AStyle
public Color getLabelFrameColor()
com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
ILinMilitarySymbologyStyle.isLabelWithFrame()
returns true
.
A null
value indicates that the ILinMilitarySymbologyStyle.getLabelColor()
should be used instead. This is also the default.getLabelFrameColor
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
null
public void setLabelFrameColor(Color aColor)
com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setLabelFrameColor
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
aColor
- the color to use for the label frame or null
ILinMilitarySymbologyStyle.getLabelFrameColor()
public int getLabelFramePadding()
com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
ILinMilitarySymbologyStyle.isLabelWithFrame()
returns true
.
The default value is 1
.getLabelFramePadding
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
public void setLabelFramePadding(int aPadding)
com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setLabelFramePadding
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
aPadding
- the number of pixels between the label text and label frameILinMilitarySymbologyStyle.getLabelFramePadding()
public boolean isLabelFilled()
retrieveLabels()
.
Symbols which use the text modifiers as labels don't make use of this option,
because the label layout is predefined by the APP-6A standard.
The default value is false
.isLabelFilled
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
isLabelFilled
in interface ILcdAPP6AStyle
public int getLabelPosition()
retrieveLabels()
and
for line symbols that are represented by a point list.
The default value is ILcdAPP6AStyle.EAST
.getLabelPosition
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
getLabelPosition
in interface ILcdAPP6AStyle
public int getShiftLabelPosition()
retrieveLabels()
.
Symbols which use the text modifiers as labels don't make use of this option,
because the label layout is predefined by the APP-6A standard.
The default value is the result of (getSizeSymbol()
/ 2) + 10.getShiftLabelPosition
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
getShiftLabelPosition
in interface ILcdAPP6AStyle
public int getSizeSymbol()
getSizeSymbol
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
getSizeSymbol
in interface ILcdAPP6AStyle
public void anchorPointSFCT(Graphics graphics, int mode, ILcdGXYContext gxyContext, Point point, TLcdXYBounds bounds, ILcdGXYPainter gxyPainter) throws TLcdNoBoundsException
ILcdAPP6AStyle
anchorPointSFCT
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
anchorPointSFCT
in interface ILcdAPP6AStyle
point
- the corrected anchor point of the label.bounds
- the bounds of the object.TLcdNoBoundsException
public void setLineWidth(int width)
ILcdAPP6AStyle
setLineWidth
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setLineWidth
in interface ILcdAPP6AStyle
width
- the new line width to use for all line symbols, off-set lines and vertical lines of icon symbols.public void setSymbolFrameLineWidth(int aWidth)
ILcdAPP6AStyle
ILcdAPP6AStyle.isSymbolFrameEnabled()
returns true.setSymbolFrameLineWidth
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setSymbolFrameLineWidth
in interface ILcdAPP6AStyle
aWidth
- the new frame line width for icon symbols.public void setSizeSymbol(int size)
ILcdAPP6AStyle
setSizeSymbol
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setSizeSymbol
in interface ILcdAPP6AStyle
size
- - The size of the icon symbol.public void setOffset(int x, int y)
ILcdAPP6AStyle
setOffset
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setOffset
in interface ILcdAPP6AStyle
x
- - The X offset.y
- - The Y offset.public int getOffsetX()
getOffsetX
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
getOffsetX
in interface ILcdAPP6AStyle
public int getOffsetY()
getOffsetY
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
getOffsetY
in interface ILcdAPP6AStyle
public void setAnchorSymbol(ILcdIcon aSymbol)
getColor()
. If you override the default,
the color of the anchor icon will be picked from itself instead of this style.setAnchorSymbol
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setAnchorSymbol
in interface ILcdAPP6AStyle
aSymbol
- a ILcdIcon implementation to be displayed as the anchor iconpublic ILcdIcon getAnchorSymbol()
ILcdAPP6AStyle
getAnchorSymbol
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
getAnchorSymbol
in interface ILcdAPP6AStyle
public void setSelectionRectangleWidth(int aWidth)
setSelectionRectangleWidth
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setSelectionRectangleWidth
in interface ILcdAPP6AStyle
aWidth
- line width of the selection rectangle in pixels.public int getSelectionRectangleWidth()
ILcdAPP6AStyle
getSelectionRectangleWidth
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
getSelectionRectangleWidth
in interface ILcdAPP6AStyle
public void setSelectionRectangleHaloColor(Color aColor)
ILcdAPP6AStyle
setSelectionRectangleHaloColor
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setSelectionRectangleHaloColor
in interface ILcdAPP6AStyle
aColor
- the selection halo color for the selection rectangle of icon symbols.public Color getSelectionRectangleHaloColor()
Color.BLUE
getSelectionRectangleHaloColor
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
getSelectionRectangleHaloColor
in interface ILcdAPP6AStyle
public void setSelectionRectangleHaloWidth(int aWidth)
ILcdAPP6AStyle
setSelectionRectangleHaloWidth
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setSelectionRectangleHaloWidth
in interface ILcdAPP6AStyle
aWidth
- line width in pixels of the halo of the selection rectangle of icon symbols.public int getSelectionRectangleHaloWidth()
getSelectionRectangleHaloWidth
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
getSelectionRectangleHaloWidth
in interface ILcdAPP6AStyle
public void setAltitudeFormat(Format aFormat)
ILcdAPP6AStyle
Sets a new Format
to format altitudes in labels.
This property is currently used to format altitude labels in the following symbols:
The format needs to accept Double
objects in its format method. All Double
instances passed to this method are altitudes expressed in meters.
setAltitudeFormat
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setAltitudeFormat
in interface ILcdAPP6AStyle
aFormat
- The new Format
to format an altitudeILcdAPP6AStyle.getAltitudeFormat()
public Format getAltitudeFormat()
ILcdAPP6AStyle
Format
to format altitudes in labels.getAltitudeFormat
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
getAltitudeFormat
in interface ILcdAPP6AStyle
Format
to format altitudes in labels.ILcdAPP6AStyle.setAltitudeFormat(java.text.Format)
public void setDistanceFormat(Format aDistanceFormat)
ILcdAPP6AStyle
Sets a new Format
to format distances in labels.
This property is currently used to format distance labels in the following symbols:
The format needs to accept Double
objects in its format method. All Double
instances passed to this method are distances expressed in meters.
setDistanceFormat
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setDistanceFormat
in interface ILcdAPP6AStyle
aDistanceFormat
- The new Format
to format a distanceILcdAPP6AStyle.getDistanceFormat()
public Format getDistanceFormat()
ILcdAPP6AStyle
Format
to format distances in labels.getDistanceFormat
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
getDistanceFormat
in interface ILcdAPP6AStyle
Format
to format distances in labels.ILcdAPP6AStyle.setDistanceFormat(java.text.Format)
public void setAngleFormat(Format aAngleFormat)
ILcdAPP6AStyle
Sets a new Format
to format angles in labels.
This property is currently used to format angle labels in the following symbols:
The format needs to accept Double
objects in its format method. All Double
instances passed to this method are angles expressed in degrees.
setAngleFormat
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setAngleFormat
in interface ILcdAPP6AStyle
aAngleFormat
- The new Format
to format an angleILcdAPP6AStyle.getAngleFormat()
public Format getAngleFormat()
ILcdAPP6AStyle
Format
to format angles in labels.getAngleFormat
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
getAngleFormat
in interface ILcdAPP6AStyle
Format
to format angles in labels.ILcdAPP6AStyle.setAngleFormat(java.text.Format)
public void setOffsetEditingEnabled(boolean aOffsetEditingEnabled)
true
.setOffsetEditingEnabled
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setOffsetEditingEnabled
in interface ILcdAPP6AStyle
aOffsetEditingEnabled
- the offset is editable if this is truepublic boolean isOffsetEditingEnabled()
ILcdAPP6AStyle
isOffsetEditingEnabled
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
isOffsetEditingEnabled
in interface ILcdAPP6AStyle
public void setTransparency(double aTransparency)
public double getTransparency()
public void setLineStyle(int lineStyle)
ILcdAPP6AStyle
ILcdAPP6AStyle.PLAIN
: plain.ILcdAPP6AStyle.SMALL_DASH
: small dashing pattern.ILcdAPP6AStyle.LARGE_DASH
: large dashing pattern.ILcdAPP6AStyle.ALTERNATE_DASH
: alternate (small and large) dashing pattern.setLineStyle
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setLineStyle
in interface ILcdAPP6AStyle
lineStyle
- the new style to use for the offset-line of an icon symbol.public void setFilled(boolean filled)
ILcdAPP6AStyle
setFilled
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setFilled
in interface ILcdAPP6AStyle
filled
- true when an area should be filled.public void setOutlined(boolean outlined)
ILcdAPP6AStyle
setOutlined
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setOutlined
in interface ILcdAPP6AStyle
outlined
- true to paint the outline of an area.public void setSymbolFrameEnabled(boolean aSymbolFrameEnabled)
ILcdAPP6AStyle
setSymbolFrameEnabled
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setSymbolFrameEnabled
in interface ILcdAPP6AStyle
aSymbolFrameEnabled
- Whether the frame of an icon symbol should be painted.public boolean isSymbolFrameEnabled()
true
.isSymbolFrameEnabled
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
isSymbolFrameEnabled
in interface ILcdAPP6AStyle
public void setSymbolFillEnabled(boolean aSymbolFillEnabled)
ILcdAPP6AStyle
setSymbolFillEnabled
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setSymbolFillEnabled
in interface ILcdAPP6AStyle
aSymbolFillEnabled
- Whether an icon symbol should be painted filled.public boolean isSymbolFillEnabled()
true
.isSymbolFillEnabled
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
isSymbolFillEnabled
in interface ILcdAPP6AStyle
public void setSymbolIconEnabled(boolean aSymbolIconEnabled)
ILcdAPP6AStyle
setSymbolIconEnabled
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setSymbolIconEnabled
in interface ILcdAPP6AStyle
aSymbolIconEnabled
- Whether the internal icon in the frame of an icon symbol should be painted.public boolean isSymbolIconEnabled()
true
.isSymbolIconEnabled
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
isSymbolIconEnabled
in interface ILcdAPP6AStyle
public Integer getForcedFrameLineStyle()
null
is returned, indicating that the line style of the icon determined by the affiliation and status are used as defined in the standard.
getForcedFrameLineStyle
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
getForcedFrameLineStyle
in interface ILcdAPP6AStyle
null
if the default line style is used.public void setForcedFrameLineStyle(Integer aForcedFrameLineStyle)
null
must be supplied.
Possible values are:
ILcdAPP6AStyle.PLAIN
: plain (solid line).ILcdAPP6AStyle.SMALL_DASH
: small dashing pattern.ILcdAPP6AStyle.LARGE_DASH
: large dashing pattern.ILcdAPP6AStyle.ALTERNATE_DASH
: alternate (small and large) dashing pattern.ILcdAPP6AStyle.BLACK_AND_WHITE_DOTTED
: alternating black and white dots pattern.ILcdAPP6AStyle.BLACK_AND_WHITE_DASHES
: alternating black and white dashes.setForcedFrameLineStyle
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setForcedFrameLineStyle
in interface ILcdAPP6AStyle
aForcedFrameLineStyle
- an Integer representing the line style to be used.public void setLabels(String[] label)
ILcdAPP6AStyle
setLabels
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setLabels
in interface ILcdAPP6AStyle
label
- the labels to use for labeling.public void setLabelColor(Color color)
ILcdAPP6AStyle
setLabelColor
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setLabelColor
in interface ILcdAPP6AStyle
color
- the color to use for labels.public void setLabelFont(Font font)
ILcdAPP6AStyle
setLabelFont
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setLabelFont
in interface ILcdAPP6AStyle
font
- the font to use for labels.public void setLabelFontScalingEnabled(boolean aLabelFontScalingMode)
ILcdAPP6AStyle
getLabelFont()
will be used.setLabelFontScalingEnabled
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setLabelFontScalingEnabled
in interface ILcdAPP6AStyle
aLabelFontScalingMode
- The font size scaling mode.public void setColor(Color color)
ILcdAPP6AStyle
setColor
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setColor
in interface ILcdAPP6AStyle
color
- the line color for unframed icon symbols, line symbols, off-set lines and vertical lines of icon symbols.public void setAffiliationColorEnabled(boolean aAffiliationColorEnabled)
ILcdAPP6AStyle
getColor()
will be used; otherwise, the affiliation color
has precedence.setAffiliationColorEnabled
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setAffiliationColorEnabled
in interface ILcdAPP6AStyle
aAffiliationColorEnabled
- The affiliation color mode.public void setAffiliationColor(int aAffiliation, Color aColor)
ILcdAPP6AStyle
isAffiliationColorEnabled()
.setAffiliationColor
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setAffiliationColor
in interface ILcdAPP6AStyle
aAffiliation
- The affiliation for which a color is set.aColor
- The color to be used for the given affiliation.public void setAlternateAffiliationColor(int aAffiliation, Color aColor)
setAlternateAffiliationColor
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setAlternateAffiliationColor
in interface ILcdAPP6AStyle
aAffiliation
- The affiliation for which an alternate color is set.aColor
- The alternate color to be used for the given affiliation.public void setFillPercentage(double aFillPercentage)
ILcdAPP6AStyle
This property is only taken into account when the symbol frame is enabled,
i.e. when ILcdAPP6AStyle.isSymbolFrameEnabled()
returns true
.
setFillPercentage
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setFillPercentage
in interface ILcdAPP6AStyle
aFillPercentage
- the fill percentage to fill the frame of icon symbols.ILcdAPP6AStyle.getFillPercentage()
public void setAlternateFillColor(Color aAlternateFillColor)
ILcdAPP6AStyle
null
is 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 ILcdAPP6AStyle.isSymbolFrameEnabled()
returns true
.
setAlternateFillColor
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setAlternateFillColor
in interface ILcdAPP6AStyle
aAlternateFillColor
- the color to fill the part of the frame that is not covered
by the fill percentage.ILcdAPP6AStyle.getAlternateFillColor()
,
ILcdAPP6AStyle.getFillPercentage()
public void setFilledColor(Color color)
ILcdAPP6AStyle
setFilledColor
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setFilledColor
in interface ILcdAPP6AStyle
color
- the new fill color for areas in default mode.public void setForcedColor(Color color)
ILcdAPP6AStyle
null
must be supplied.
Note that a selected symbol will always be displayed using the selection colors, even if a forced color is configured.setForcedColor
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setForcedColor
in interface ILcdAPP6AStyle
color
- the color to be used for the military symbol.public void setSelectionColor(Color color)
ILcdAPP6AStyle
setSelectionColor
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setSelectionColor
in interface ILcdAPP6AStyle
color
- the selection color for the construction line of line symbols and for the
offset-line and bounding box of icon symbols.public void setLabelFilledColor(Color color)
ILcdAPP6AStyle
isLabelFilled()
returns "true".setLabelFilledColor
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setLabelFilledColor
in interface ILcdAPP6AStyle
color
- the color to use for the labels background.public void setLabelWithPin(boolean select)
ILcdAPP6AStyle
retrieveLabels()
.
Symbols which use the text modifiers as labels don't make use of this option,
because the label layout is predefined by the APP-6A standard.setLabelWithPin
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setLabelWithPin
in interface ILcdAPP6AStyle
select
- whether the label should be displayed with a pin to the object.public void setLabelWithAnchor(boolean select)
ILcdAPP6AStyle
retrieveLabels()
.
Symbols which use the text modifiers as labels don't make use of this option,
because the label layout is predefined by the APP-6A standard.setLabelWithAnchor
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setLabelWithAnchor
in interface ILcdAPP6AStyle
select
- whether the label should be displayed with a point on the object.public void setLabelWithFrame(boolean select)
ILcdAPP6AStyle
retrieveLabels()
.
Symbols which use the text modifiers as labels don't make use of this option,
because the label layout is predefined by the APP-6A standard.setLabelWithFrame
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setLabelWithFrame
in interface ILcdAPP6AStyle
select
- whether the label should be displayed in a frame.public void setLabelFilled(boolean select)
ILcdAPP6AStyle
retrieveLabels()
.
Symbols which use the text modifiers as labels don't make use of this option,
because the label layout is predefined by the APP-6A standard.setLabelFilled
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setLabelFilled
in interface ILcdAPP6AStyle
select
- whether the label should be displayed in a filled rectangle.public void setLabelPosition(int position)
ILcdAPP6AStyle
retrieveLabels()
and
for line symbols that are represented by a point list.setLabelPosition
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setLabelPosition
in interface ILcdAPP6AStyle
position
- the relative position of the label with respect to the object.public void setLabelEnabled(String aLabel, boolean aEnabled)
ILcdAPP6AStyle
setLabelEnabled
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setLabelEnabled
in interface ILcdAPP6AStyle
aLabel
- A label as defined by the static members of ILcdAPP6ACoded
.aEnabled
- whether the label should be displayed.public boolean isLabelEnabled(String aLabel)
ILcdAPP6ACoded
.
All valid labels are enabled by default.isLabelEnabled
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
isLabelEnabled
in interface ILcdAPP6AStyle
aLabel
- A label as defined by the static members of ILcdAPP6ACoded
.public double getCornerSmoothness()
ILcdAPP6AStyle
getCornerSmoothness
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
getCornerSmoothness
in interface ILcdAPP6AStyle
ILcdAPP6AStyle.setCornerSmoothness(double)
public void setCornerSmoothness(double aFactor)
ILcdAPP6AStyle
setCornerSmoothness
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setCornerSmoothness
in interface ILcdAPP6AStyle
aFactor
- the smoothness (or rounding) factor for polygon corners.public double getArrowCurvedness()
getCornerSmoothness()
).
Note that this feature is only available for a limited set of symbols, namely
for the aviation-related arrows in APP-6A (situated in 2.X.2.1.5.2.1).getArrowCurvedness
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
getArrowCurvedness
in interface ILcdAPP6AStyle
ILcdAPP6AStyle.setArrowCurvedness(double)
public void setArrowCurvedness(double aBulgeFactor)
getCornerSmoothness()
).
Note that this feature is only available for a limited set of symbols, namely
for the aviation-related arrows in APP-6A (situated in 2.X.2.1.5.2.1).setArrowCurvedness
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setArrowCurvedness
in interface ILcdAPP6AStyle
aBulgeFactor
- the curvedness factor for aviation-related arrow symbols.public boolean isHaloEnabled()
ILcdAPP6AStyle
By default, false
is returned.
isHaloEnabled
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
isHaloEnabled
in interface ILcdAPP6AStyle
public void setHaloEnabled(boolean aEnabled)
ILcdAPP6AStyle
The halo color and thickness can be configured respectively through
ILcdAPP6AStyle.setHaloColor(java.awt.Color)
and ILcdAPP6AStyle.setHaloThickness(int)
.
setHaloEnabled
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setHaloEnabled
in interface ILcdAPP6AStyle
aEnabled
- whether a halo should be enabled for symbols (both icon and line symbols).ILcdAPP6AStyle.isHaloEnabled()
,
ILcdAPP6AStyle.setHaloColor(java.awt.Color)
,
ILcdAPP6AStyle.setHaloThickness(int)
public Color getHaloColor()
ILcdAPP6AStyle
ILcdAPP6AStyle.isHaloEnabled()
returns true).
By default, Color.WHITE
is returned.
getHaloColor
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
getHaloColor
in interface ILcdAPP6AStyle
public void setHaloColor(Color aColor)
ILcdAPP6AStyle
ILcdAPP6AStyle.isHaloEnabled()
returns true).setHaloColor
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setHaloColor
in interface ILcdAPP6AStyle
aColor
- the color to be used for icon and line symbol halos, if enabled.public int getHaloThickness()
ILcdAPP6AStyle
ILcdAPP6AStyle.isHaloEnabled()
returns true).
By default, 1 is returned.
getHaloThickness
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
getHaloThickness
in interface ILcdAPP6AStyle
public void setHaloThickness(int aThickness)
ILcdAPP6AStyle
ILcdAPP6AStyle.isHaloEnabled()
returns true).setHaloThickness
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setHaloThickness
in interface ILcdAPP6AStyle
aThickness
- the thickness to be used for icon and line symbol halos, if enabled.public boolean isLabelHaloEnabled()
ILcdAPP6AStyle
By default, false
is returned.
isLabelHaloEnabled
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
isLabelHaloEnabled
in interface ILcdAPP6AStyle
public void setLabelHaloEnabled(boolean aEnabled)
ILcdAPP6AStyle
The label halo color and thickness can be configured respectively through
ILcdAPP6AStyle.setLabelHaloColor(java.awt.Color)
and ILcdAPP6AStyle.setLabelHaloThickness(int)
.
setLabelHaloEnabled
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setLabelHaloEnabled
in interface ILcdAPP6AStyle
aEnabled
- whether a halo should be enabled for labels of icon and line symbols.ILcdAPP6AStyle.isLabelHaloEnabled()
,
ILcdAPP6AStyle.setLabelHaloColor(java.awt.Color)
,
ILcdAPP6AStyle.setLabelHaloThickness(int)
public Color getLabelHaloColor()
ILcdAPP6AStyle
ILcdAPP6AStyle.isLabelHaloEnabled()
returns true).
By default, Color.GRAY
is returned.
getLabelHaloColor
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
getLabelHaloColor
in interface ILcdAPP6AStyle
public void setLabelHaloColor(Color aColor)
ILcdAPP6AStyle
ILcdAPP6AStyle.isLabelHaloEnabled()
returns true).setLabelHaloColor
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setLabelHaloColor
in interface ILcdAPP6AStyle
aColor
- the color to be used for the label halo of icon and line symbols, if enabled.public int getLabelHaloThickness()
ILcdAPP6AStyle
ILcdAPP6AStyle.isLabelHaloEnabled()
returns true).
By default, 1 is returned.
getLabelHaloThickness
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
getLabelHaloThickness
in interface ILcdAPP6AStyle
public void setLabelHaloThickness(int aThickness)
ILcdAPP6AStyle
ILcdAPP6AStyle.isLabelHaloEnabled()
returns true).setLabelHaloThickness
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setLabelHaloThickness
in interface ILcdAPP6AStyle
aThickness
- the thickness to be used for the label halo of icon and line symbols, if enabled.public boolean isVerticalLineEnabled()
Vertical lines are only applicable for icon symbols with an altitude value bigger than 0 in a 3D view.
ILcdAPP6AStyle.setLineWidth(int)
.ILcdAPP6AStyle.isAffiliationColorEnabled()
. if affiliation color is enabled, it's determined by affiliation of the symbol otherwise it's determined by ILcdAPP6AStyle.getColor()
.true
.isVerticalLineEnabled
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
isVerticalLineEnabled
in interface ILcdAPP6AStyle
ILcdAPP6AStyle.setVerticalLineEnabled(boolean)
public void setVerticalLineEnabled(boolean aEnabled)
ILcdAPP6AStyle
Vertical lines are only applicable for the icon symbols with an altitude value bigger than 0 in a 3D view.
setVerticalLineEnabled
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setVerticalLineEnabled
in interface ILcdAPP6AStyle
aEnabled
- whether a perpendicular line from the center point of the icon symbols to the earth surface is enabled.ILcdAPP6AStyle.isVerticalLineEnabled()
public void setSpeedLeaderLengthRatio(double aRatio)
ILcdAPP6AStyle
ILcdAPP6AStyle.setSpeedLeaderLength(double, ILcdISO19103Measure)
for a convenience setter using a speed measure.setSpeedLeaderLengthRatio
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setSpeedLeaderLengthRatio
in interface ILcdAPP6AStyle
aRatio
- the length ratio of speed leader to the symbol size against the speed value of 1m/s.ILcdAPP6AStyle.getSpeedLeaderLengthRatio()
public double getSpeedLeaderLengthRatio()
ILcdAPP6AStyle.getSizeSymbol()
ILcdAPP6AStyle.getSizeSymbol()
Speed leaders are only applicable to APP-6C.
The default value for the length ratio is 0.05getSpeedLeaderLengthRatio
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
getSpeedLeaderLengthRatio
in interface ILcdAPP6AStyle
ILcdAPP6AStyle.setSpeedLeaderLengthRatio(double)
public void setSpeedLeaderLength(double aTimesSymbolSize, ILcdISO19103Measure aSpeed)
ILcdAPP6AStyle
aTimesSymbolSize
if the symbol has the given speed.
For example, if the symbol size is 64 pixels and the method is called with aTimesSymbolSize == 3
and a speed
of Mach 1, the symbol's speed leader will be 3*64=192
pixels long travelling at Mach 1,
and 3*64*2=384
pixels at Mach 2.setSpeedLeaderLength
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setSpeedLeaderLength
in interface ILcdAPP6AStyle
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.ILcdAPP6AStyle.getSpeedLeaderLengthRatio()
,
ILcdAPP6AStyle.setSpeedLeaderLengthRatio(double)
public boolean isEngagementBarEnabled()
isEngagementBarEnabled
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
isEngagementBarEnabled
in interface ILcdAPP6AStyle
TLcdEngagementBarStyle
public void setEngagementBarEnabled(boolean aEngagementBarEnabled)
ILcdAPP6AStyle
setEngagementBarEnabled
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setEngagementBarEnabled
in interface ILcdAPP6AStyle
ILcdAPP6ACoded.sEngagementBar
,
ILcdMS2525bCoded.sEngagementBar
,
TLcdEngagementBarStyle
public TLcdEngagementBarStyle getEngagementBarStyle()
getEngagementBarStyle
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
getEngagementBarStyle
in interface ILcdAPP6AStyle
ILcdAPP6ACoded.sEngagementBar
,
ILcdMS2525bCoded.sEngagementBar
public void setEngagementBarStyle(TLcdEngagementBarStyle aEngagementBarStyle)
ILcdAPP6AStyle
setEngagementBarStyle
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setEngagementBarStyle
in interface ILcdAPP6AStyle
ILcdAPP6ACoded.sEngagementBar
,
ILcdMS2525bCoded.sEngagementBar
public boolean isStrictSegmentationEnabled()
This property indicates whether or not 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.
isStrictSegmentationEnabled
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
isStrictSegmentationEnabled
in interface com.luciad.internal.symbology.common.view.canvas.ILinSymbologyStyle
isStrictSegmentationEnabled
in interface ILcdAPP6AStyle
ILinSymbologyCanvas.polyline(Object, Object, boolean, boolean, ILcdPointList)
,
ILinSymbologyCanvas.polygon(Object, Object, Object, boolean, boolean, ILcdPointList)
public void setStrictSegmentationEnabled(boolean aStrictSegmentationEnabled)
Enabled or disabled 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.
setStrictSegmentationEnabled
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setStrictSegmentationEnabled
in interface ILcdAPP6AStyle
aStrictSegmentationEnabled
- a boolean indicating whether or not strict segmentation is enabledpublic void addPropertyChangeListener(PropertyChangeListener listener)
ILcdAPP6AStyle
addPropertyChangeListener
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
addPropertyChangeListener
in interface ILcdAPP6AStyle
listener
- the object to notify when a property of this style is changed.public void removePropertyChangeListener(PropertyChangeListener listener)
ILcdAPP6AStyle
removePropertyChangeListener
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
removePropertyChangeListener
in interface ILcdAPP6AStyle
listener
- the listener that should no longer be notified when a property of this style is changed.public static TLcdDefaultAPP6AStyle getInstance()
TLcdDefaultAPP6AStyle
instance.TLcdDefaultAPP6AStyle
instance.public static TLcdDefaultAPP6AStyle getNewInstance()
TLcdDefaultAPP6AStyle
instance.TLcdDefaultAPP6AStyle
instance.public static void setInstance(TLcdDefaultAPP6AStyle aInstance)
TLcdDefaultAPP6AStyle
instance to be used.aInstance
- the shared TLcdDefaultAPP6AStyle
instance to be used.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()