public interface TacticalGraphicAttributes
TacticalGraphic. Changes made to the attributes are applied to the graphic when the
 WorldWindow renders the next frame. Instances of TacticalGraphicAttributes may be shared by
 many graphics, thereby reducing the memory normally required to store attributes for each graphic.
 
 TacticalGraphicAttributes is used to override default attributes determined by a graphic's symbol set. Any non-null
 attributes will override the corresponding default attributes. Here's an example of overriding only the outline
 material of a graphic without affecting other styling specified by the symbol set:
 
 TacticalGraphic graphic = ... TacticalGraphicAttributes attrs = new BasicTacticalGraphicAttributes(); // Set the outline to red. Leave all other fields null to retain the default values. attrs.setOutlineMaterial(Material.RED); // Apply the overrides to the graphic graphic.setAttributes(attrs);
| Modifier and Type | Method and Description | 
|---|---|
| TacticalGraphicAttributes | copy()Returns a new TacticalGraphicAttributes instance of the same type as this TacticalGraphicAttributes who's
 properties are configured exactly as this TacticalGraphicAttributes. | 
| void | copy(TacticalGraphicAttributes attributes)Copies the specified TacticalGraphicAttributes' properties into this object's properties. | 
| Material | getInteriorMaterial()Indicates the material properties of the graphic's interior. | 
| Double | getInteriorOpacity()Indicates the opacity of the graphic's interior as a floating-point value in the range 0.0 to 1.0. | 
| Material | getOutlineMaterial()Indicates the material properties of the graphic's outline. | 
| Double | getOutlineOpacity()Indicates the opacity of the graphic's outline as a floating-point value in the range 0.0 to 1.0. | 
| Double | getOutlineWidth()Indicates the line width (in pixels) used when rendering the graphic's outline. | 
| Double | getScale()Indicates the graphic scale as a ratio of the graphics's original size. | 
| Font | getTextModifierFont()Indicates the font used to render text modifiers. | 
| Material | getTextModifierMaterial()Indicates the material used to render text modifiers. | 
| void | setInteriorMaterial(Material material)Specifies the material properties of the graphic's interior. | 
| void | setInteriorOpacity(Double opacity)Specifies the opacity of the graphic's interior as a floating-point value in the range 0.0 to 1.0. | 
| void | setOutlineMaterial(Material material)Specifies the material properties of the graphic's outline. | 
| void | setOutlineOpacity(Double opacity)Specifies the opacity of the graphic's outline as a floating-point value in the range 0.0 to 1.0. | 
| void | setOutlineWidth(Double width)Specifies the line width (in pixels) to use when rendering the graphic's outline. | 
| void | setScale(Double scale)Specifies the graphic scale as a ratio of the graphics's original size. | 
| void | setTextModifierFont(Font font)Specifies the font used to render text modifiers. | 
| void | setTextModifierMaterial(Material material)Specifies the material used to render text modifiers. | 
TacticalGraphicAttributes copy()
void copy(TacticalGraphicAttributes attributes)
null.attributes - the attributes to copy.Material getInteriorMaterial()
setInteriorMaterial for more information on how this material is interpreted.setInteriorMaterial(Material)Double getInteriorOpacity()
setInteriorOpacity(Double)Material getOutlineMaterial()
setOutlineMaterial for more information on how this material is interpreted.setOutlineMaterial(Material)Double getOutlineOpacity()
setOutlineOpacity(Double)Double getOutlineWidth()
setOutlineWidth(Double)Double getScale()
setScale(Double) for a
 description of how scale is used.
 
 Scale directly affects the size of point graphics. Line and area graphics do not change size based on the scale,
 but if a line or area graphic includes a tactical symbol as part of a composite shape, the scale may be applied
 to the symbol.null, indicating that the default scale is used.Font getTextModifierFont()
Material getTextModifierMaterial()
setTextModifierMaterial for a description of how the material is used.void setInteriorMaterial(Material material)
material - the material to apply to the graphic's interior.getInteriorMaterial()void setInteriorOpacity(Double opacity)
opacity - the interior opacity as a floating-point value from 0.0 to 1.0.IllegalArgumentException - if opacity is less than 0.0 or greater than 1.0.getInteriorOpacity()void setOutlineMaterial(Material material)
material - the material to apply to the graphic's outline.getOutlineMaterial()void setOutlineOpacity(Double opacity)
opacity - the outline opacity as a floating-point value from 0.0 to 1.0.IllegalArgumentException - if opacity is less than 0.0 or greater than 1.0.getOutlineOpacity()void setOutlineWidth(Double width)
width must be zero or a positive floating-point value. Specifying a line width of zero disables the
 graphic's outline. The width may be limited by an implementation-defined maximum during rendering.
 The maximum width is typically 10 pixels.width - the line width in pixels.IllegalArgumentException - if width is less than zero.getOutlineWidth()void setScale(Double scale)
null or greater than or equal to 0.0.
 
 Scale directly affects the size of point graphics. Line and area graphics do not change size based on the scale,
 but if a line or area graphic includes a tactical symbol as part of a composite shape, the scale may be applied
 to the symbol.scale - the graphic's scale. May be null, indicating that the default scale should be used.IllegalArgumentException - if the scale is less than 0.0.void setTextModifierFont(Font font)
font - New font.void setTextModifierMaterial(Material material)
material - The new material.