public class BasicTacticalSymbolAttributes extends Object implements TacticalSymbolAttributes
TacticalSymbolAttributes interface.| Modifier and Type | Field and Description | 
|---|---|
| static double | DEFAULT_OPACITY | 
| static double | DEFAULT_SCALE | 
| static Font | DEFAULT_TEXT_MODIFIER_FONT | 
| static Material | DEFAULT_TEXT_MODIFIER_MATERIAL | 
| protected Material | interiorMaterialIndicates the material used to draw the symbol's interior, or  nullto use the symbol's default
 interior material. | 
| protected Double | opacityIndicates the symbol opacity as a floating point number between 0.0 and 1.0 (inclusive), or  nullto
 use the symbol's default scale. | 
| protected Double | scaleIndicates the symbol scale as a ratio of the symbol's original size, or  nullto use the symbol's
 default scale. | 
| protected Font | textModifierFontIndicates the font used to draw text modifiers, or  nullto use the symbol's default scale. | 
| protected Material | textModifierMaterialIndicates the material used to draw text modifiers, or  nullto use the symbol's default scale. | 
| Constructor and Description | 
|---|
| BasicTacticalSymbolAttributes()Constructs a BasicTacticalSymbolAttributes with all attributes set to  null. | 
| BasicTacticalSymbolAttributes(Double scale,
                             Material interiorMaterial,
                             Double opacity,
                             Font textModifierFont,
                             Material textModifierMaterial)Constructs a BasicTacticalSymbolAttributes with the specified scale, interior material, opacity, text modifier
 font, and text modifier material. | 
| 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. | 
| Double | getOpacity()Indicates the symbol opacity as a floating point number between 0.0 and 1.0 (inclusive). | 
| Double | getScale()Indicates the symbol scale as a ratio of the symbol's original size. | 
| 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(Double opacity)Specifies the symbol opacity as a floating point number between 0.0 and 1.0 (inclusive). | 
| void | setScale(Double scale)Specifies the symbol scale as a ratio of the symbol's original size. | 
| void | setTextModifierFont(Font font)Specifies the font to use when drawing text modifiers. | 
| void | setTextModifierMaterial(Material material)Specifies the material to use when drawing text modifiers. | 
public static final double DEFAULT_OPACITY
public static final double DEFAULT_SCALE
public static final Font DEFAULT_TEXT_MODIFIER_FONT
public static final Material DEFAULT_TEXT_MODIFIER_MATERIAL
protected Material interiorMaterial
null to use the symbol's default
 interior material. Initially null.protected Double opacity
null to
 use the symbol's default scale. Initially null.protected Double scale
null to use the symbol's
 default scale. Initially null.protected Font textModifierFont
null to use the symbol's default scale. Initially
 null.protected Material textModifierMaterial
null to use the symbol's default scale.
 Initially null.public BasicTacticalSymbolAttributes()
null.public BasicTacticalSymbolAttributes(Double scale, Material interiorMaterial, Double opacity, Font textModifierFont, Material textModifierMaterial)
null or greater than or equal to 0.0, and the opacity must either
 null or a value between 0.0 and 1.0 (inclusive). The textModifierFont and textModifierMaterial
 specify the font and material to use when drawing a symbol's text modifiers.scale - the symbol's scale. May be null, indicating that the default scale
                             should be used.interiorMaterial - the interior material. May be null, indicating that the default material
                             should be used.opacity - the symbol opacity. May be null, indicating that the default opacity
                             should be used.textModifierFont - the text modifier font. May be null, indicating that the default font
                             should be used.textModifierMaterial - the text modifier material. May be null, indicating that the default
                             material should be used.IllegalArgumentException - if the scale is less than 0.0, or if the opacity is less than 0.0 or greater
                                  than 1.0.public void copy(TacticalSymbolAttributes attributes)
null.copy in interface TacticalSymbolAttributesattributes - the attributes to copy.public Material getInteriorMaterial()
TacticalSymbolAttributessetInteriorMaterial for more information on how this material is interpreted.getInteriorMaterial in interface TacticalSymbolAttributesTacticalSymbolAttributes.setInteriorMaterial(Material)public Double getOpacity()
TacticalSymbolAttributes.setOpacity(Double) for a description of how opacity is used.getOpacity in interface TacticalSymbolAttributesnull, indicating that the default opacity is used.public Double getScale()
TacticalSymbolAttributes.setScale(Double) for a
 description of how scale is used.getScale in interface TacticalSymbolAttributesnull, indicating that the default scale is used.public Font getTextModifierFont()
TacticalSymbolAttributes.setTextModifierFont(java.awt.Font) for a description
 of how the text modifier font is used.getTextModifierFont in interface TacticalSymbolAttributesnull, indicating that the default font is used.public Material getTextModifierMaterial()
TacticalSymbolAttributes.setTextModifierMaterial(gov.nasa.worldwind.render.Material)
 for a description of how the text modifier material is used.getTextModifierMaterial in interface TacticalSymbolAttributesnull, indicating that the default material is used.public void setInteriorMaterial(Material material)
TacticalSymbolAttributessetInteriorMaterial in interface TacticalSymbolAttributesmaterial - the material to apply to the symbol's interior.TacticalSymbolAttributes.getInteriorMaterial()public void setOpacity(Double opacity)
null or a value between 0.0 and 1.0
 (inclusive).setOpacity in interface TacticalSymbolAttributesopacity - the symbol opacity. May be null, indicating that the default opacity should be used.public void setScale(Double scale)
null or greater than or equal to 0.0.setScale in interface TacticalSymbolAttributesscale - the symbol's scale. May be null, indicating that the default scale should be used.public void setTextModifierFont(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.setTextModifierFont in interface TacticalSymbolAttributesfont - the text modifier font. May be null, indicating that the default font should be used.public void setTextModifierMaterial(Material material)
setTextModifierMaterial in interface TacticalSymbolAttributesmaterial - the text modifier material. May be null, indicating that the default material should
                 be used.