public class TLcdDefaultMS2525bStyle extends java.lang.Object implements ILcdMS2525bStyle, java.io.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, CENTER, EAST, LARGE_DASH, NORTH, NORTHEAST, NORTHWEST, PLAIN, sLabelPositions, SMALL_DASH, SOUTH, SOUTHEAST, SOUTHWEST, WEST
Constructor and Description |
---|
TLcdDefaultMS2525bStyle(java.awt.Color aColor,
java.awt.Color aSelectionColor,
java.awt.Color aFilledColor,
int aLineWidth,
int aLineStyle,
boolean aIsFilled,
boolean aIsOutlined,
java.lang.String[] aLabel,
java.awt.Color aLabelColor,
java.awt.Font aLabelFont,
java.awt.Color aLabelFilledColor,
boolean aIsLabelFramed,
boolean aIsLabelFilled,
boolean aIsLabelPined,
boolean aIsLabelAnchored,
int aLabelPosition,
int aSize)
Deprecated.
|
TLcdDefaultMS2525bStyle(java.awt.Color aColor,
java.awt.Color aSelectionColor,
int aLineWidth,
int aLineStyle,
boolean aIsSymbolFrameEnabled,
boolean aIsSymbolFillEnabled,
boolean aIsSymbolIconEnabled,
java.lang.String[] aLabel,
java.awt.Color aLabelColor,
java.awt.Font aLabelFont,
java.awt.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(java.beans.PropertyChangeListener listener)
Adds the given listener that is notified when a property of this style is changed.
|
void |
anchorPointSFCT(java.awt.Graphics graphics,
int mode,
ILcdGXYContext gxyContext,
java.awt.Point point,
TLcdXYBounds bounds,
ILcdGXYPainter gxyPainter)
Correction of the anchor point of the label.
|
java.lang.Object |
clone()
Makes
Object.clone() public. |
boolean |
equals(java.lang.Object aO) |
java.awt.Color |
getAffiliationColor(ELcdMS2525Standard aStandard,
java.lang.String aAffiliationValue) |
java.awt.Color |
getAffiliationColor(int aAffiliation)
Returns the color that is currently used for the given affiliation.
|
java.awt.Color |
getAlternateAffiliationColor(int aAffiliation)
Returns the alternate color that is currently used for the given affiliation.
|
java.awt.Color |
getAlternateFillColor()
Returns the color used to fill the part of the frame that is not covered
by the fill percentage.
|
java.text.Format |
getAltitudeFormat()
Returns the
Format to format altitudes in labels. |
ILcdIcon |
getAnchorSymbol()
Returns the icon used as an anchor icon for the icon symbol.
|
java.text.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.
|
java.awt.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.
|
java.text.Format |
getDistanceFormat()
Returns the
Format to format distances in labels. |
TLcdEngagementBarStyle |
getEngagementBarStyle() |
java.awt.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.
|
java.awt.Color |
getForcedColor()
Returns the color that currently overrides the normal colors of the icon symbol.
|
java.awt.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. |
java.awt.Color |
getLabelColor()
Returns the color to use for labels.
|
java.awt.Color |
getLabelFilledColor()
Returns the color to use for the labels background.
|
java.awt.Font |
getLabelFont()
Returns the font to use for labels.
|
java.awt.Color |
getLabelFrameColor()
Returns the color to use for the label frame.
|
int |
getLabelFramePadding()
Returns the padding between the label text and the label frame.
|
java.awt.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.
|
java.awt.Color |
getSelectionColor()
Returns the selection color for the construction line of line symbols and for the
offset-line and bounding box of icon symbols.
|
java.awt.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.
|
java.lang.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(java.lang.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 |
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(java.beans.PropertyChangeListener listener)
Removes the given listener from the list so that it is no longer notified when a property of this style is changed.
|
java.lang.String[] |
retrieveLabels()
Returns the labels to use for labeling.
|
void |
setAffiliationColor(int aAffiliation,
java.awt.Color aColor)
Sets the color for the given affiliation.
|
void |
setAffiliationColorEnabled(boolean aAffiliationColorEnabled)
Sets the affiliation color mode.
|
void |
setAlternateAffiliationColor(int aAffiliation,
java.awt.Color aColor)
Sets the alternate color for the given affiliation.
|
void |
setAlternateFillColor(java.awt.Color aAlternateFillColor)
Sets the color to fill the part of the frame that is not covered
by the fill percentage.
|
void |
setAltitudeFormat(java.text.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(java.text.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(java.awt.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(java.text.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(java.awt.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(java.awt.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 |
setHaloColor(java.awt.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(java.awt.Color color)
Sets the color to use for labels.
|
void |
setLabelEnabled(java.lang.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(java.awt.Color color)
Sets the color to use for the labels background.
|
void |
setLabelFont(java.awt.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(java.awt.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(java.awt.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(java.lang.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(java.awt.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(java.awt.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 |
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(java.lang.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(java.awt.Color aColor, java.awt.Color aSelectionColor, int aLineWidth, int aLineStyle, boolean aIsSymbolFrameEnabled, boolean aIsSymbolFillEnabled, boolean aIsSymbolIconEnabled, java.lang.String[] aLabel, java.awt.Color aLabelColor, java.awt.Font aLabelFont, java.awt.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(java.awt.Color aColor, java.awt.Color aSelectionColor, java.awt.Color aFilledColor, int aLineWidth, int aLineStyle, boolean aIsFilled, boolean aIsOutlined, java.lang.String[] aLabel, java.awt.Color aLabelColor, java.awt.Font aLabelFont, java.awt.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 java.lang.String[] retrieveLabels()
ILcdMS2525bStyle
retrieveLabels
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinSymbologyStyle
retrieveLabels
in interface ILcdMS2525bStyle
public java.lang.String getTextureFilePath()
ILcdMS2525bStyle
getTextureFilePath
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinSymbologyStyle
getTextureFilePath
in interface ILcdMS2525bStyle
public void setTextureFilePath(java.lang.String filepath)
ILcdMS2525bStyle
setTextureFilePath
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinSymbologyStyle
setTextureFilePath
in interface ILcdMS2525bStyle
filepath
- the path to the texture images.public java.awt.Color getColor()
Color.blue
.getColor
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinSymbologyStyle
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.ILinSymbologyStyle
isAffiliationColorEnabled
in interface ILcdMS2525bStyle
public java.awt.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.ILinSymbologyStyle
getAffiliationColor
in interface ILcdMS2525bStyle
aAffiliation
- The affiliation for which the current color must be returned.public java.awt.Color getAffiliationColor(ELcdMS2525Standard aStandard, java.lang.String aAffiliationValue)
public java.awt.Color getAlternateAffiliationColor(int aAffiliation)
getAffiliationColor(aAffiliation)
getAlternateAffiliationColor
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinSymbologyStyle
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.ILinSymbologyStyle
getFillPercentage
in interface ILcdMS2525bStyle
ILcdMS2525bStyle.setFillPercentage(double)
public java.awt.Color getAlternateFillColor()
By default, null
is returned.
getAlternateFillColor
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinSymbologyStyle
getAlternateFillColor
in interface ILcdMS2525bStyle
ILcdMS2525bStyle.setAlternateFillColor(java.awt.Color)
,
ILcdMS2525bStyle.setFillPercentage(double)
public java.awt.Color getFilledColor()
ILcdMS2525bStyle
getFilledColor
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinSymbologyStyle
getFilledColor
in interface ILcdMS2525bStyle
public java.awt.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.ILinSymbologyStyle
getForcedColor
in interface ILcdMS2525bStyle
public java.awt.Color getSelectionColor()
Color.red
.getSelectionColor
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinSymbologyStyle
getSelectionColor
in interface ILcdMS2525bStyle
public double getWidth()
getWidth()
in ILcdMS2525bShape
.public int getLineWidth()
getLineWidth
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinSymbologyStyle
getLineWidth
in interface ILcdMS2525bStyle
public int getSymbolFrameLineWidth()
getSymbolFrameLineWidth
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinSymbologyStyle
getSymbolFrameLineWidth
in interface ILcdMS2525bStyle
public int getLineStyle()
ILcdMS2525bStyle.PLAIN
.getLineStyle
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinSymbologyStyle
getLineStyle
in interface ILcdMS2525bStyle
setLineStyle(int)
public boolean isFilled()
ILcdMS2525bStyle
isFilled
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinSymbologyStyle
isFilled
in interface ILcdMS2525bStyle
public boolean getOutlined()
ILcdMS2525bStyle
getOutlined
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinSymbologyStyle
getOutlined
in interface ILcdMS2525bStyle
public java.awt.Color getLabelColor()
Color.blue
.getLabelColor
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinSymbologyStyle
getLabelColor
in interface ILcdMS2525bStyle
public java.awt.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.ILinSymbologyStyle
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.ILinSymbologyStyle
isLabelFontScalingEnabled
in interface ILcdMS2525bStyle
getSizeSymbol()
,
setLabelFont(Font)
public java.awt.Color getLabelFilledColor()
isLabelFilled()
returns "true".
The default value is Color.blue
.getLabelFilledColor
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinSymbologyStyle
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.ILinSymbologyStyle
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.ILinSymbologyStyle
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.ILinSymbologyStyle
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.ILinSymbologyStyle
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.ILinSymbologyStyle
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.ILinSymbologyStyle
getShiftLabelPosition
in interface ILcdMS2525bStyle
public int getSizeSymbol()
getSizeSymbol
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinSymbologyStyle
getSizeSymbol
in interface ILcdMS2525bStyle
public void anchorPointSFCT(java.awt.Graphics graphics, int mode, ILcdGXYContext gxyContext, java.awt.Point point, TLcdXYBounds bounds, ILcdGXYPainter gxyPainter) throws TLcdNoBoundsException
ILcdMS2525bStyle
anchorPointSFCT
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinSymbologyStyle
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.ILinSymbologyStyle
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.ILinSymbologyStyle
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.ILinSymbologyStyle
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.ILinSymbologyStyle
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.ILinSymbologyStyle
getOffsetX
in interface ILcdMS2525bStyle
public int getOffsetY()
getOffsetY
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinSymbologyStyle
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.ILinSymbologyStyle
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.ILinSymbologyStyle
getAnchorSymbol
in interface ILcdMS2525bStyle
public void setSelectionRectangleWidth(int aWidth)
setSelectionRectangleWidth
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinSymbologyStyle
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.ILinSymbologyStyle
getSelectionRectangleWidth
in interface ILcdMS2525bStyle
public void setSelectionRectangleHaloColor(java.awt.Color aColor)
ILcdMS2525bStyle
setSelectionRectangleHaloColor
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinSymbologyStyle
setSelectionRectangleHaloColor
in interface ILcdMS2525bStyle
aColor
- the selection halo color for the selection rectangle of icon symbols.public java.awt.Color getSelectionRectangleHaloColor()
Color.BLUE
getSelectionRectangleHaloColor
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinSymbologyStyle
getSelectionRectangleHaloColor
in interface ILcdMS2525bStyle
public void setSelectionRectangleHaloWidth(int aWidth)
ILcdMS2525bStyle
setSelectionRectangleHaloWidth
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinSymbologyStyle
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.ILinSymbologyStyle
getSelectionRectangleHaloWidth
in interface ILcdMS2525bStyle
public void setAltitudeFormat(java.text.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.ILinSymbologyStyle
setAltitudeFormat
in interface ILcdMS2525bStyle
aFormat
- The new Format
to format an altitudeILcdMS2525bStyle.getAltitudeFormat()
public java.text.Format getAltitudeFormat()
ILcdMS2525bStyle
Format
to format altitudes in labels.getAltitudeFormat
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinSymbologyStyle
getAltitudeFormat
in interface ILcdMS2525bStyle
Format
to format altitudes in labels.ILcdMS2525bStyle.setAltitudeFormat(java.text.Format)
public void setDistanceFormat(java.text.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.ILinSymbologyStyle
setDistanceFormat
in interface ILcdMS2525bStyle
aDistanceFormat
- The new Format
to format a distanceILcdMS2525bStyle.getDistanceFormat()
public java.text.Format getDistanceFormat()
ILcdMS2525bStyle
Format
to format distances in labels.getDistanceFormat
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinSymbologyStyle
getDistanceFormat
in interface ILcdMS2525bStyle
Format
to format distances in labels.ILcdMS2525bStyle.setDistanceFormat(java.text.Format)
public void setAngleFormat(java.text.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.ILinSymbologyStyle
setAngleFormat
in interface ILcdMS2525bStyle
aAngleFormat
- The new Format
to format an angleILcdMS2525bStyle.getAngleFormat()
public java.text.Format getAngleFormat()
ILcdMS2525bStyle
Format
to format angles in labels.getAngleFormat
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinSymbologyStyle
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.ILinSymbologyStyle
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.ILinSymbologyStyle
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.ILinSymbologyStyle
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.ILinSymbologyStyle
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.ILinSymbologyStyle
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.ILinSymbologyStyle
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.ILinSymbologyStyle
isSymbolFrameEnabled
in interface ILcdMS2525bStyle
public void setSymbolFillEnabled(boolean aSymbolFillEnabled)
ILcdMS2525bStyle
setSymbolFillEnabled
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinSymbologyStyle
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.ILinSymbologyStyle
isSymbolFillEnabled
in interface ILcdMS2525bStyle
public void setSymbolIconEnabled(boolean aSymbolIconEnabled)
ILcdMS2525bStyle
setSymbolIconEnabled
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinSymbologyStyle
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.ILinSymbologyStyle
isSymbolIconEnabled
in interface ILcdMS2525bStyle
public void setLabels(java.lang.String[] label)
ILcdMS2525bStyle
setLabels
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinSymbologyStyle
setLabels
in interface ILcdMS2525bStyle
label
- the labels to use for labeling.public void setLabelColor(java.awt.Color color)
ILcdMS2525bStyle
setLabelColor
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinSymbologyStyle
setLabelColor
in interface ILcdMS2525bStyle
color
- the color to use for labels.public void setLabelFont(java.awt.Font font)
ILcdMS2525bStyle
setLabelFont
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinSymbologyStyle
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.ILinSymbologyStyle
setLabelFontScalingEnabled
in interface ILcdMS2525bStyle
aLabelFontScalingMode
- The font size scaling mode.public void setColor(java.awt.Color color)
ILcdMS2525bStyle
setColor
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinSymbologyStyle
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.ILinSymbologyStyle
setAffiliationColorEnabled
in interface ILcdMS2525bStyle
aAffiliationColorEnabled
- The affiliation color mode.public void setAffiliationColor(int aAffiliation, java.awt.Color aColor)
ILcdMS2525bStyle
isAffiliationColorEnabled()
.setAffiliationColor
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinSymbologyStyle
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, java.awt.Color aColor)
setAlternateAffiliationColor
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinSymbologyStyle
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.ILinSymbologyStyle
setFillPercentage
in interface ILcdMS2525bStyle
aFillPercentage
- the fill percentage to fill the frame of icon symbols.ILcdMS2525bStyle.getFillPercentage()
public void setAlternateFillColor(java.awt.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.ILinSymbologyStyle
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(java.awt.Color color)
ILcdMS2525bStyle
setFilledColor
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinSymbologyStyle
setFilledColor
in interface ILcdMS2525bStyle
color
- the new fill color for areas in default mode.public void setForcedColor(java.awt.Color color)
ILcdMS2525bStyle
null
must be supplied.setForcedColor
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinSymbologyStyle
setForcedColor
in interface ILcdMS2525bStyle
color
- the color to be used for the icon symbol.public void setSelectionColor(java.awt.Color color)
ILcdMS2525bStyle
setSelectionColor
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinSymbologyStyle
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(java.awt.Color color)
ILcdMS2525bStyle
isLabelFilled()
returns "true".setLabelFilledColor
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinSymbologyStyle
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.ILinSymbologyStyle
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.ILinSymbologyStyle
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.ILinSymbologyStyle
setLabelWithFrame
in interface ILcdMS2525bStyle
select
- whether the label should be displayed in a frame.public java.awt.Color getLabelFrameColor()
com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinSymbologyStyle
ILinSymbologyStyle.isLabelWithFrame()
returns true
.
A null
value indicates that the ILinSymbologyStyle.getLabelColor()
should be used instead. This is also the default.getLabelFrameColor
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinSymbologyStyle
null
public void setLabelFrameColor(java.awt.Color aColor)
com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinSymbologyStyle
setLabelFrameColor
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinSymbologyStyle
aColor
- the color to use for the label frame or null
ILinSymbologyStyle.getLabelFrameColor()
public int getLabelFramePadding()
com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinSymbologyStyle
ILinSymbologyStyle.isLabelWithFrame()
returns true
.
The default value is 1
.getLabelFramePadding
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinSymbologyStyle
public void setLabelFramePadding(int aPadding)
com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinSymbologyStyle
setLabelFramePadding
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinSymbologyStyle
aPadding
- the number of pixels between the label text and label frameILinSymbologyStyle.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.ILinSymbologyStyle
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.ILinSymbologyStyle
setLabelPosition
in interface ILcdMS2525bStyle
position
- the relative position of the label with respect to the object.public void setLabelEnabled(java.lang.String aLabel, boolean aEnabled)
ILcdMS2525bStyle
setLabelEnabled
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinSymbologyStyle
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(java.lang.String aLabel)
ILcdMS2525bCoded
.
All valid labels are enabled by default.isLabelEnabled
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinSymbologyStyle
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.ILinSymbologyStyle
getCornerSmoothness
in interface ILcdMS2525bStyle
ILcdMS2525bStyle.setCornerSmoothness(double)
public void setCornerSmoothness(double aSmoothnessFactor)
ILcdMS2525bStyle
setCornerSmoothness
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinSymbologyStyle
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.ILinSymbologyStyle
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.ILinSymbologyStyle
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.ILinSymbologyStyle
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.ILinSymbologyStyle
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 java.awt.Color getHaloColor()
ILcdMS2525bStyle
ILcdMS2525bStyle.isHaloEnabled()
returns true).
By default, Color.WHITE
is returned.
getHaloColor
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinSymbologyStyle
getHaloColor
in interface ILcdMS2525bStyle
public void setHaloColor(java.awt.Color aColor)
ILcdMS2525bStyle
ILcdMS2525bStyle.isHaloEnabled()
returns true).setHaloColor
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinSymbologyStyle
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.ILinSymbologyStyle
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.ILinSymbologyStyle
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.ILinSymbologyStyle
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.ILinSymbologyStyle
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 java.awt.Color getLabelHaloColor()
ILcdMS2525bStyle
ILcdMS2525bStyle.isLabelHaloEnabled()
returns true).
By default, Color.GRAY
is returned.
getLabelHaloColor
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinSymbologyStyle
getLabelHaloColor
in interface ILcdMS2525bStyle
public void setLabelHaloColor(java.awt.Color aColor)
ILcdMS2525bStyle
ILcdMS2525bStyle.isLabelHaloEnabled()
returns true).setLabelHaloColor
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinSymbologyStyle
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.ILinSymbologyStyle
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.ILinSymbologyStyle
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.ILinSymbologyStyle
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.ILinSymbologyStyle
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.ILinSymbologyStyle
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.ILinSymbologyStyle
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.ILinSymbologyStyle
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.ILinSymbologyStyle
isEngagementBarEnabled
in interface ILcdMS2525bStyle
TLcdEngagementBarStyle
public void setEngagementBarEnabled(boolean aEngagementBarEnabled)
ILcdMS2525bStyle
setEngagementBarEnabled
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinSymbologyStyle
setEngagementBarEnabled
in interface ILcdMS2525bStyle
ILcdAPP6ACoded.sEngagementBar
,
ILcdMS2525bCoded.sEngagementBar
,
TLcdEngagementBarStyle
public TLcdEngagementBarStyle getEngagementBarStyle()
getEngagementBarStyle
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinSymbologyStyle
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.ILinSymbologyStyle
setEngagementBarStyle
in interface ILcdMS2525bStyle
ILcdAPP6ACoded.sEngagementBar
,
ILcdMS2525bCoded.sEngagementBar
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
ILcdMS2525bStyle
addPropertyChangeListener
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinSymbologyStyle
addPropertyChangeListener
in interface ILcdMS2525bStyle
listener
- the object to notify when a property of this style is changed.public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
ILcdMS2525bStyle
removePropertyChangeListener
in interface com.luciad.internal.symbology.app6a_ms2525b.view.gxy.ILinSymbologyStyle
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 boolean equals(java.lang.Object aO)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.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 java.lang.Object
Object.clone()