public class TLcdDefaultMS2525bStyle extends Object implements ILcdMS2525bStyle, Serializable
AFFILIATION_ASSUMED_FRIEND, AFFILIATION_ASSUMED_NEUTRAL, AFFILIATION_EXERCISE_ASSUMED_FRIEND, AFFILIATION_EXERCISE_ASSUMED_NEUTRAL, AFFILIATION_EXERCISE_FRIEND, AFFILIATION_EXERCISE_NEUTRAL, AFFILIATION_EXERCISE_PENDING, 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 |
---|
TLcdDefaultMS2525bStyle(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.
|
TLcdDefaultMS2525bStyle(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
TLcdDefaultMS2525bStyle 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(ELcdMS2525Standard 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
ILcdMS2525bStyle.isHaloEnabled() returns true). |
int |
getHaloThickness()
Returns the thickness that is used for icon and line symbol halos, if enabled
(i.e., if
ILcdMS2525bStyle.isHaloEnabled() returns true). |
static TLcdDefaultMS2525bStyle |
getInstance()
Returns a shared
TLcdDefaultMS2525bStyle 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
ILcdMS2525bStyle.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
ILcdMS2525bStyle.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 TLcdDefaultMS2525bStyle |
getNewInstance()
Returns a new
TLcdDefaultMS2525bStyle 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 ILcdMS2525bShape . |
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.
|
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 and off-set lines of icon symbols.
|
void |
setCornerSmoothness(double aSmoothnessFactor)
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 whether 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 icon 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
ILcdMS2525bStyle.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
ILcdMS2525bStyle.isHaloEnabled() returns true). |
static void |
setInstance(TLcdDefaultMS2525bStyle aInstance)
Sets the shared
TLcdDefaultMS2525bStyle 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
ILcdMS2525bStyle.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
ILcdMS2525bStyle.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 ILcdMS2525bStyle.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.
|
void |
setWidth(double width)
Deprecated.
This method is replaced by
setWidth() in ILcdEditableMS2525bShape . |
public TLcdDefaultMS2525bStyle(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)
TLcdDefaultMS2525bStyle
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 ILcdMS2525bStyle.PLAIN
,
ILcdMS2525bStyle.SMALL_DASH
, ILcdMS2525bStyle.LARGE_DASH
and ILcdMS2525bStyle.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 MIL-STD 2525b 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 MIL-STD 2525b 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 MIL-STD 2525b standard.aSize
- The size of the symbol.ILcdMS2525bStyle
public TLcdDefaultMS2525bStyle(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)
TLcdDefaultMS2525bStyle
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 ILcdMS2525bStyle.PLAIN
,
ILcdMS2525bStyle.SMALL_DASH
, ILcdMS2525bStyle.LARGE_DASH
and ILcdMS2525bStyle.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 MIL-STD 2525b 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 MIL-STD 2525b 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 MIL-STD 2525b standard.aSize
- The size of the symbol.ILcdMS2525bStyle
public String[] retrieveLabels()
ILcdMS2525bStyle
retrieveLabels
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
retrieveLabels
in interface ILcdMS2525bStyle
public String getTextureFilePath()
ILcdMS2525bStyle
getTextureFilePath
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
getTextureFilePath
in interface ILcdMS2525bStyle
public void setTextureFilePath(String filepath)
ILcdMS2525bStyle
setTextureFilePath
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setTextureFilePath
in interface ILcdMS2525bStyle
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 ILcdMS2525bStyle
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 ILcdMS2525bStyle
public Color getAffiliationColor(int aAffiliation)
ILcdMS2525bStyle.AFFILIATION_PENDING
: yellowILcdMS2525bStyle.AFFILIATION_UNKNOWN
; yellowILcdMS2525bStyle.AFFILIATION_ASSUMED_FRIEND
; blueILcdMS2525bStyle.AFFILIATION_FRIEND
; blueILcdMS2525bStyle.AFFILIATION_NEUTRAL
; greenILcdMS2525bStyle.AFFILIATION_SUSPECT
; redILcdMS2525bStyle.AFFILIATION_HOSTILE
; redILcdMS2525bStyle.AFFILIATION_JOKER
; redILcdMS2525bStyle.AFFILIATION_FAKER
; redgetAffiliationColor
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
getAffiliationColor
in interface ILcdMS2525bStyle
aAffiliation
- The affiliation for which the current color must be returned.public Color getAffiliationColor(ELcdMS2525Standard 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 ILcdMS2525bStyle
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 ILcdMS2525bStyle
ILcdMS2525bStyle.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 ILcdMS2525bStyle
ILcdMS2525bStyle.setAlternateFillColor(java.awt.Color)
,
ILcdMS2525bStyle.setFillPercentage(double)
public Color getFilledColor()
ILcdMS2525bStyle
getFilledColor
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
getFilledColor
in interface ILcdMS2525bStyle
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 ILcdMS2525bStyle
public Color getSelectionColor()
Color.red
.getSelectionColor
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
getSelectionColor
in interface ILcdMS2525bStyle
public double getWidth()
getWidth()
in ILcdMS2525bShape
.public int getLineWidth()
getLineWidth
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
getLineWidth
in interface ILcdMS2525bStyle
public int getSymbolFrameLineWidth()
getSymbolFrameLineWidth
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
getSymbolFrameLineWidth
in interface ILcdMS2525bStyle
public int getLineStyle()
ILcdMS2525bStyle.PLAIN
.getLineStyle
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
getLineStyle
in interface ILcdMS2525bStyle
setLineStyle(int)
public boolean isFilled()
ILcdMS2525bStyle
isFilled
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
isFilled
in interface ILcdMS2525bStyle
public boolean getOutlined()
ILcdMS2525bStyle
getOutlined
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
getOutlined
in interface ILcdMS2525bStyle
public Color getLabelColor()
Color.blue
.getLabelColor
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
getLabelColor
in interface ILcdMS2525bStyle
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 ILcdMS2525bStyle
isLabelFontScalingEnabled()
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 ILcdMS2525bStyle
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 ILcdMS2525bStyle
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 MIL-STD 2525b standard.
The default value is false
.isLabelWithPin
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
isLabelWithPin
in interface ILcdMS2525bStyle
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 MIL-STD 2525b standard.
The default value is false
.isLabelWithAnchor
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
isLabelWithAnchor
in interface ILcdMS2525bStyle
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 MIL-STD 2525b standard.
The default value is false
.isLabelWithFrame
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
isLabelWithFrame
in interface ILcdMS2525bStyle
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 MIL-STD 2525b standard.
The default value is false
.isLabelFilled
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
isLabelFilled
in interface ILcdMS2525bStyle
public int getLabelPosition()
retrieveLabels()
and
for line symbols that are represented by a point list.
The default value is ILcdMS2525bStyle.EAST
.getLabelPosition
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
getLabelPosition
in interface ILcdMS2525bStyle
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 MIL-STD 2525b 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 ILcdMS2525bStyle
public int getSizeSymbol()
getSizeSymbol
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
getSizeSymbol
in interface ILcdMS2525bStyle
public void anchorPointSFCT(Graphics graphics, int mode, ILcdGXYContext gxyContext, Point point, TLcdXYBounds bounds, ILcdGXYPainter gxyPainter) throws TLcdNoBoundsException
ILcdMS2525bStyle
anchorPointSFCT
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
anchorPointSFCT
in interface ILcdMS2525bStyle
point
- the corrected anchor point of the label.bounds
- the bounds of the object.TLcdNoBoundsException
public void setLineWidth(int width)
ILcdMS2525bStyle
setLineWidth
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setLineWidth
in interface ILcdMS2525bStyle
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)
ILcdMS2525bStyle
ILcdMS2525bStyle.isSymbolFrameEnabled()
returns true.setSymbolFrameLineWidth
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setSymbolFrameLineWidth
in interface ILcdMS2525bStyle
aWidth
- the new frame line width for icon symbols.public void setSizeSymbol(int size)
ILcdMS2525bStyle
setSizeSymbol
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setSizeSymbol
in interface ILcdMS2525bStyle
size
- - The size of the icon symbol.public void setOffset(int x, int y)
ILcdMS2525bStyle
setOffset
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setOffset
in interface ILcdMS2525bStyle
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 ILcdMS2525bStyle
public int getOffsetY()
getOffsetY
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
getOffsetY
in interface ILcdMS2525bStyle
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 ILcdMS2525bStyle
aSymbol
- a ILcdIcon implementation to be displayed as the anchor iconpublic ILcdIcon getAnchorSymbol()
ILcdMS2525bStyle
getAnchorSymbol
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
getAnchorSymbol
in interface ILcdMS2525bStyle
public void setSelectionRectangleWidth(int aWidth)
setSelectionRectangleWidth
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setSelectionRectangleWidth
in interface ILcdMS2525bStyle
aWidth
- line width of the selection rectangle in pixels.public int getSelectionRectangleWidth()
ILcdMS2525bStyle
getSelectionRectangleWidth
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
getSelectionRectangleWidth
in interface ILcdMS2525bStyle
public void setSelectionRectangleHaloColor(Color aColor)
ILcdMS2525bStyle
setSelectionRectangleHaloColor
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setSelectionRectangleHaloColor
in interface ILcdMS2525bStyle
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 ILcdMS2525bStyle
public void setSelectionRectangleHaloWidth(int aWidth)
ILcdMS2525bStyle
setSelectionRectangleHaloWidth
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setSelectionRectangleHaloWidth
in interface ILcdMS2525bStyle
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 ILcdMS2525bStyle
public void setAltitudeFormat(Format aFormat)
ILcdMS2525bStyle
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 ILcdMS2525bStyle
aFormat
- The new Format
to format an altitudeILcdMS2525bStyle.getAltitudeFormat()
public Format getAltitudeFormat()
ILcdMS2525bStyle
Format
to format altitudes in labels.getAltitudeFormat
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
getAltitudeFormat
in interface ILcdMS2525bStyle
Format
to format altitudes in labels.ILcdMS2525bStyle.setAltitudeFormat(java.text.Format)
public void setDistanceFormat(Format aDistanceFormat)
ILcdMS2525bStyle
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 ILcdMS2525bStyle
aDistanceFormat
- The new Format
to format a distanceILcdMS2525bStyle.getDistanceFormat()
public Format getDistanceFormat()
ILcdMS2525bStyle
Format
to format distances in labels.getDistanceFormat
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
getDistanceFormat
in interface ILcdMS2525bStyle
Format
to format distances in labels.ILcdMS2525bStyle.setDistanceFormat(java.text.Format)
public void setAngleFormat(Format aAngleFormat)
ILcdMS2525bStyle
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 ILcdMS2525bStyle
aAngleFormat
- The new Format
to format an angleILcdMS2525bStyle.getAngleFormat()
public Format getAngleFormat()
ILcdMS2525bStyle
Format
to format angles in labels.getAngleFormat
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
getAngleFormat
in interface ILcdMS2525bStyle
Format
to format angles in labels.ILcdMS2525bStyle.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 ILcdMS2525bStyle
aOffsetEditingEnabled
- the offset is editable if this is truepublic boolean isOffsetEditingEnabled()
ILcdMS2525bStyle
isOffsetEditingEnabled
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
isOffsetEditingEnabled
in interface ILcdMS2525bStyle
public void setTransparency(double aTransparency)
public double getTransparency()
public void setLineStyle(int lineStyle)
ILcdMS2525bStyle
ILcdMS2525bStyle.PLAIN
: plain.ILcdMS2525bStyle.SMALL_DASH
: small dashing pattern.ILcdMS2525bStyle.LARGE_DASH
: large dashing pattern.ILcdMS2525bStyle.ALTERNATE_DASH
: alternate (small and large) dashing pattern.setLineStyle
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setLineStyle
in interface ILcdMS2525bStyle
lineStyle
- the new style to use for the offset-line of an icon symbol.public void setWidth(double width)
setWidth()
in ILcdEditableMS2525bShape
.width
- a new buffer width in meters.public void setFilled(boolean filled)
ILcdMS2525bStyle
setFilled
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setFilled
in interface ILcdMS2525bStyle
filled
- true when an area should be filled.public void setOutlined(boolean outlined)
ILcdMS2525bStyle
setOutlined
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setOutlined
in interface ILcdMS2525bStyle
outlined
- true to paint the outline of an area.public void setSymbolFrameEnabled(boolean aSymbolFrameEnabled)
ILcdMS2525bStyle
setSymbolFrameEnabled
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setSymbolFrameEnabled
in interface ILcdMS2525bStyle
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 ILcdMS2525bStyle
public void setSymbolFillEnabled(boolean aSymbolFillEnabled)
ILcdMS2525bStyle
setSymbolFillEnabled
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setSymbolFillEnabled
in interface ILcdMS2525bStyle
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 ILcdMS2525bStyle
public void setSymbolIconEnabled(boolean aSymbolIconEnabled)
ILcdMS2525bStyle
setSymbolIconEnabled
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setSymbolIconEnabled
in interface ILcdMS2525bStyle
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 ILcdMS2525bStyle
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 ILcdMS2525bStyle
null
if the default line style is used.public void setForcedFrameLineStyle(Integer aForcedFrameLineStyle)
null
must be supplied.
Possible values are:
ILcdMS2525bStyle.PLAIN
: plain (solid line).ILcdMS2525bStyle.SMALL_DASH
: small dashing pattern.ILcdMS2525bStyle.LARGE_DASH
: large dashing pattern.ILcdMS2525bStyle.ALTERNATE_DASH
: alternate (small and large) dashing pattern.ILcdMS2525bStyle.BLACK_AND_WHITE_DOTTED
: alternating black and white dots pattern.ILcdMS2525bStyle.BLACK_AND_WHITE_DASHES
: dashed stroke of alternating black and white dots pattern.setForcedFrameLineStyle
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setForcedFrameLineStyle
in interface ILcdMS2525bStyle
aForcedFrameLineStyle
- an Integer representing the line style to be used.public void setLabels(String[] label)
ILcdMS2525bStyle
setLabels
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setLabels
in interface ILcdMS2525bStyle
label
- the labels to use for labeling.public void setLabelColor(Color color)
ILcdMS2525bStyle
setLabelColor
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setLabelColor
in interface ILcdMS2525bStyle
color
- the color to use for labels.public void setLabelFont(Font font)
ILcdMS2525bStyle
setLabelFont
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setLabelFont
in interface ILcdMS2525bStyle
font
- the font to use for labels.public void setLabelFontScalingEnabled(boolean aLabelFontScalingMode)
ILcdMS2525bStyle
getLabelFont()
will be used.setLabelFontScalingEnabled
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setLabelFontScalingEnabled
in interface ILcdMS2525bStyle
aLabelFontScalingMode
- The font size scaling mode.public void setColor(Color color)
ILcdMS2525bStyle
setColor
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setColor
in interface ILcdMS2525bStyle
color
- the line color for unframed icon symbols, line symbols and off-set lines of icon symbols.public void setAffiliationColorEnabled(boolean aAffiliationColorEnabled)
ILcdMS2525bStyle
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 ILcdMS2525bStyle
aAffiliationColorEnabled
- The affiliation color mode.public void setAffiliationColor(int aAffiliation, Color aColor)
ILcdMS2525bStyle
isAffiliationColorEnabled()
.setAffiliationColor
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setAffiliationColor
in interface ILcdMS2525bStyle
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 ILcdMS2525bStyle
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)
ILcdMS2525bStyle
This property is only taken into account when the symbol frame is enabled,
i.e. when ILcdMS2525bStyle.isSymbolFrameEnabled()
returns true
.
setFillPercentage
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setFillPercentage
in interface ILcdMS2525bStyle
aFillPercentage
- the fill percentage to fill the frame of icon symbols.ILcdMS2525bStyle.getFillPercentage()
public void setAlternateFillColor(Color aAlternateFillColor)
ILcdMS2525bStyle
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 ILcdMS2525bStyle.isSymbolFrameEnabled()
returns true
.
setAlternateFillColor
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setAlternateFillColor
in interface ILcdMS2525bStyle
aAlternateFillColor
- the color to fill the part of the frame that is not covered
by the fill percentage.ILcdMS2525bStyle.getAlternateFillColor()
,
ILcdMS2525bStyle.getFillPercentage()
public void setFilledColor(Color color)
ILcdMS2525bStyle
setFilledColor
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setFilledColor
in interface ILcdMS2525bStyle
color
- the new fill color for areas in default mode.public void setForcedColor(Color color)
ILcdMS2525bStyle
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 ILcdMS2525bStyle
color
- the color to be used for the military symbol.public void setSelectionColor(Color color)
ILcdMS2525bStyle
setSelectionColor
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setSelectionColor
in interface ILcdMS2525bStyle
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)
ILcdMS2525bStyle
isLabelFilled()
returns "true".setLabelFilledColor
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setLabelFilledColor
in interface ILcdMS2525bStyle
color
- the color to use for the labels background.public void setLabelWithPin(boolean select)
ILcdMS2525bStyle
retrieveLabels()
.
Symbols which use the text modifiers as labels don't make use of this option,
because the label layout is predefined by the MIL-STD 2525b standard.setLabelWithPin
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setLabelWithPin
in interface ILcdMS2525bStyle
select
- whether the label should be displayed with a pin to the object.public void setLabelWithAnchor(boolean select)
ILcdMS2525bStyle
retrieveLabels()
.
Symbols which use the text modifiers as labels don't make use of this option,
because the label layout is predefined by the MIL-STD 2525b standard.setLabelWithAnchor
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setLabelWithAnchor
in interface ILcdMS2525bStyle
select
- whether the label should be displayed with a point on the object.public void setLabelWithFrame(boolean select)
ILcdMS2525bStyle
retrieveLabels()
.
Symbols which use the text modifiers as labels don't make use of this option,
because the label layout is predefined by the MIL-STD 2525b standard.setLabelWithFrame
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setLabelWithFrame
in interface ILcdMS2525bStyle
select
- whether the label should be displayed in a frame.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 void setLabelFilled(boolean select)
ILcdMS2525bStyle
retrieveLabels()
.
Symbols which use the text modifiers as labels don't make use of this option,
because the label layout is predefined by the MIL-STD 2525b standard.setLabelFilled
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setLabelFilled
in interface ILcdMS2525bStyle
select
- whether the label should be displayed in a filled rectangle.public void setLabelPosition(int position)
ILcdMS2525bStyle
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 ILcdMS2525bStyle
position
- the relative position of the label with respect to the object.public void setLabelEnabled(String aLabel, boolean aEnabled)
ILcdMS2525bStyle
setLabelEnabled
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setLabelEnabled
in interface ILcdMS2525bStyle
aLabel
- A label as defined by the static members of ILcdMS2525bCoded
.aEnabled
- whether the label should be displayed.public boolean isLabelEnabled(String aLabel)
ILcdMS2525bCoded
.
All valid labels are enabled by default.isLabelEnabled
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
isLabelEnabled
in interface ILcdMS2525bStyle
aLabel
- A label as defined by the static members of ILcdMS2525bCoded
.public double getCornerSmoothness()
ILcdMS2525bStyle
getCornerSmoothness
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
getCornerSmoothness
in interface ILcdMS2525bStyle
ILcdMS2525bStyle.setCornerSmoothness(double)
public void setCornerSmoothness(double aSmoothnessFactor)
ILcdMS2525bStyle
setCornerSmoothness
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setCornerSmoothness
in interface ILcdMS2525bStyle
aSmoothnessFactor
- 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 MIL-STD 2525b (situated in 2.X.2.5.2.1).getArrowCurvedness
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
getArrowCurvedness
in interface ILcdMS2525bStyle
ILcdMS2525bStyle.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 MIL-STD 2525b (situated in 2.X.2.5.2.1).setArrowCurvedness
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setArrowCurvedness
in interface ILcdMS2525bStyle
aBulgeFactor
- the curvedness factor for aviation-related arrow symbols.public boolean isHaloEnabled()
ILcdMS2525bStyle
By default, false
is returned.
isHaloEnabled
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
isHaloEnabled
in interface ILcdMS2525bStyle
public void setHaloEnabled(boolean aEnabled)
ILcdMS2525bStyle
The halo color and thickness can be configured respectively through
ILcdMS2525bStyle.setHaloColor(java.awt.Color)
and ILcdMS2525bStyle.setHaloThickness(int)
.
setHaloEnabled
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setHaloEnabled
in interface ILcdMS2525bStyle
aEnabled
- whether a halo should be enabled for symbols (both icon and line symbols).ILcdMS2525bStyle.isHaloEnabled()
,
ILcdMS2525bStyle.setHaloColor(java.awt.Color)
,
ILcdMS2525bStyle.setHaloThickness(int)
public Color getHaloColor()
ILcdMS2525bStyle
ILcdMS2525bStyle.isHaloEnabled()
returns true).
By default, Color.WHITE
is returned.
getHaloColor
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
getHaloColor
in interface ILcdMS2525bStyle
public void setHaloColor(Color aColor)
ILcdMS2525bStyle
ILcdMS2525bStyle.isHaloEnabled()
returns true).setHaloColor
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setHaloColor
in interface ILcdMS2525bStyle
aColor
- the color to be used for icon and line symbol halos, if enabled.public int getHaloThickness()
ILcdMS2525bStyle
ILcdMS2525bStyle.isHaloEnabled()
returns true).
By default, 1 is returned.
getHaloThickness
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
getHaloThickness
in interface ILcdMS2525bStyle
public void setHaloThickness(int aThickness)
ILcdMS2525bStyle
ILcdMS2525bStyle.isHaloEnabled()
returns true).setHaloThickness
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setHaloThickness
in interface ILcdMS2525bStyle
aThickness
- the thickness to be used for icon and line symbol halos, if enabled.public boolean isLabelHaloEnabled()
ILcdMS2525bStyle
By default, false
is returned.
isLabelHaloEnabled
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
isLabelHaloEnabled
in interface ILcdMS2525bStyle
public void setLabelHaloEnabled(boolean aEnabled)
ILcdMS2525bStyle
The label halo color and thickness can be configured respectively through
ILcdMS2525bStyle.setLabelHaloColor(java.awt.Color)
and ILcdMS2525bStyle.setLabelHaloThickness(int)
.
setLabelHaloEnabled
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setLabelHaloEnabled
in interface ILcdMS2525bStyle
aEnabled
- whether a halo should be enabled for labels of icon and line symbols.ILcdMS2525bStyle.isLabelHaloEnabled()
,
ILcdMS2525bStyle.setLabelHaloColor(java.awt.Color)
,
ILcdMS2525bStyle.setLabelHaloThickness(int)
public Color getLabelHaloColor()
ILcdMS2525bStyle
ILcdMS2525bStyle.isLabelHaloEnabled()
returns true).
By default, Color.GRAY
is returned.
getLabelHaloColor
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
getLabelHaloColor
in interface ILcdMS2525bStyle
public void setLabelHaloColor(Color aColor)
ILcdMS2525bStyle
ILcdMS2525bStyle.isLabelHaloEnabled()
returns true).setLabelHaloColor
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setLabelHaloColor
in interface ILcdMS2525bStyle
aColor
- the color to be used for the label halo of icon and line symbols, if enabled.public int getLabelHaloThickness()
ILcdMS2525bStyle
ILcdMS2525bStyle.isLabelHaloEnabled()
returns true).
By default, 1 is returned.
getLabelHaloThickness
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
getLabelHaloThickness
in interface ILcdMS2525bStyle
public void setLabelHaloThickness(int aThickness)
ILcdMS2525bStyle
ILcdMS2525bStyle.isLabelHaloEnabled()
returns true).setLabelHaloThickness
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setLabelHaloThickness
in interface ILcdMS2525bStyle
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.
ILcdMS2525bStyle.setLineWidth(int)
.ILcdMS2525bStyle.isAffiliationColorEnabled()
. if affiliation color is enabled, it's determined by affiliation of the symbol otherwise it's determined by ILcdMS2525bStyle.getColor()
.true
.isVerticalLineEnabled
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
isVerticalLineEnabled
in interface ILcdMS2525bStyle
ILcdMS2525bStyle.setVerticalLineEnabled(boolean)
public void setVerticalLineEnabled(boolean aEnabled)
ILcdMS2525bStyle
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 ILcdMS2525bStyle
aEnabled
- whether a perpendicular line from the center point of the icon symbols to the earth surface is enabled.ILcdMS2525bStyle.isVerticalLineEnabled()
public void setSpeedLeaderLengthRatio(double aRatio)
ILcdMS2525bStyle
ILcdMS2525bStyle.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 ILcdMS2525bStyle
aRatio
- the length ratio of speed leader to the symbol size against the speed value of 1m/s.ILcdMS2525bStyle.getSpeedLeaderLengthRatio()
public double getSpeedLeaderLengthRatio()
ILcdMS2525bStyle.getSizeSymbol()
ILcdMS2525bStyle.getSizeSymbol()
Speed leaders are only applicable to MIL-STD 2525C.
The default value for the length ratio is 0.05getSpeedLeaderLengthRatio
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
getSpeedLeaderLengthRatio
in interface ILcdMS2525bStyle
ILcdMS2525bStyle.setSpeedLeaderLengthRatio(double)
public void setSpeedLeaderLength(double aTimesSymbolSize, ILcdISO19103Measure aSpeed)
ILcdMS2525bStyle
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 ILcdMS2525bStyle
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.ILcdMS2525bStyle.getSpeedLeaderLengthRatio()
,
ILcdMS2525bStyle.setSpeedLeaderLengthRatio(double)
public boolean isEngagementBarEnabled()
isEngagementBarEnabled
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
isEngagementBarEnabled
in interface ILcdMS2525bStyle
TLcdEngagementBarStyle
public void setEngagementBarEnabled(boolean aEngagementBarEnabled)
ILcdMS2525bStyle
setEngagementBarEnabled
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setEngagementBarEnabled
in interface ILcdMS2525bStyle
ILcdAPP6ACoded.sEngagementBar
,
ILcdMS2525bCoded.sEngagementBar
,
TLcdEngagementBarStyle
public TLcdEngagementBarStyle getEngagementBarStyle()
getEngagementBarStyle
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
getEngagementBarStyle
in interface ILcdMS2525bStyle
ILcdAPP6ACoded.sEngagementBar
,
ILcdMS2525bCoded.sEngagementBar
public void setEngagementBarStyle(TLcdEngagementBarStyle aEngagementBarStyle)
ILcdMS2525bStyle
setEngagementBarStyle
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
setEngagementBarStyle
in interface ILcdMS2525bStyle
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 ILcdMS2525bStyle
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 ILcdMS2525bStyle
aStrictSegmentationEnabled
- a boolean indicating whether or not strict segmentation is enabledpublic void addPropertyChangeListener(PropertyChangeListener listener)
ILcdMS2525bStyle
addPropertyChangeListener
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
addPropertyChangeListener
in interface ILcdMS2525bStyle
listener
- the object to notify when a property of this style is changed.public void removePropertyChangeListener(PropertyChangeListener listener)
ILcdMS2525bStyle
removePropertyChangeListener
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinMilitarySymbologyStyle
removePropertyChangeListener
in interface ILcdMS2525bStyle
listener
- the listener that should no longer be notified when a property of this style is changed.public static TLcdDefaultMS2525bStyle getInstance()
TLcdDefaultMS2525bStyle
instance.TLcdDefaultMS2525bStyle
instance.public static TLcdDefaultMS2525bStyle getNewInstance()
TLcdDefaultMS2525bStyle
instance.TLcdDefaultMS2525bStyle
instance.public static void setInstance(TLcdDefaultMS2525bStyle aInstance)
TLcdDefaultMS2525bStyle
instance to be used.aInstance
- the shared TLcdDefaultMS2525bStyle
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()