public interface TacticalSymbolAttributes
TacticalSymbol
. Changes made to the attributes are applied to the symbol when the
WorldWindow renders the next frame. Instances of TacticalSymbolAttributes may be shared by many symbols, thereby
reducing the memory normally required to store attributes for each symbol.Modifier and Type | Method and Description |
---|---|
void |
copy(TacticalSymbolAttributes attributes)
Copies the specified TacticalSymbolAttributes' properties into this object's properties.
|
Material |
getInteriorMaterial()
Indicates the material properties of the symbols's interior.
|
java.lang.Double |
getOpacity()
Indicates the symbol opacity as a floating point number between 0.0 and 1.0 (inclusive).
|
java.lang.Double |
getScale()
Indicates the symbol scale as a ratio of the symbol's original size.
|
java.awt.Font |
getTextModifierFont()
Indicates the font used to draw text modifiers.
|
Material |
getTextModifierMaterial()
Indicates the material used to draw text modifiers.
|
void |
setInteriorMaterial(Material material)
Specifies the material properties of the symbols's interior.
|
void |
setOpacity(java.lang.Double opacity)
Specifies the symbol opacity as a floating point number between 0.0 and 1.0 (inclusive).
|
void |
setScale(java.lang.Double scale)
Specifies the symbol scale as a ratio of the symbol's original size.
|
void |
setTextModifierFont(java.awt.Font font)
Specifies the font to use when drawing text modifiers.
|
void |
setTextModifierMaterial(Material material)
Specifies the material to use when drawing text modifiers.
|
void copy(TacticalSymbolAttributes attributes)
null
.attributes
- the attributes to copy.Material getInteriorMaterial()
setInteriorMaterial
for more information on how this material is interpreted.setInteriorMaterial(Material)
java.lang.Double getOpacity()
setOpacity(Double)
for a description of how opacity is used.null
, indicating that the default opacity is used.java.lang.Double getScale()
setScale(Double)
for a
description of how scale is used.null
, indicating that the default scale is used.java.awt.Font getTextModifierFont()
setTextModifierFont(java.awt.Font)
for a description
of how the text modifier font is used.null
, indicating that the default font is used.Material getTextModifierMaterial()
setTextModifierMaterial(gov.nasa.worldwind.render.Material)
for a description of how the text modifier material is used.null
, indicating that the default material is used.void setInteriorMaterial(Material material)
material
- the material to apply to the symbol's interior.getInteriorMaterial()
void setOpacity(java.lang.Double opacity)
null
or a value between 0.0 and 1.0
(inclusive).opacity
- the symbol opacity. May be null
, indicating that the default opacity should be used.java.lang.IllegalArgumentException
- if the opacity is less than 0.0 or greater than 1.0.void setScale(java.lang.Double scale)
null
or greater than or equal to 0.0.scale
- the symbol's scale. May be null
, indicating that the default scale should be used.java.lang.IllegalArgumentException
- if the scale is less than 0.0.void setTextModifierFont(java.awt.Font font)
null
, the symbol
implementation determines an default font appropriate for the symbol's size and scale. MIL-STD-2525 tactical
symbols determine a default font that who's height is approximately 0.3*H, where H is the symbol's scaled frame
height.font
- the text modifier font. May be null
, indicating that the default font should be used.void setTextModifierMaterial(Material material)
material
- the text modifier material. May be null
, indicating that the default material should
be used.