public class BasicTacticalGraphicAttributes extends Object implements TacticalGraphicAttributes
TacticalGraphicAttributes.| Modifier and Type | Field and Description |
|---|---|
protected Font |
font
Indicates the font used to render text modifiers.
|
protected Material |
interiorMaterial
Indicates the material properties of the graphic's interior.
|
protected Double |
interiorOpacity
Indicates the opacity of the graphic's interior as a floating-point value in the range 0.0 to 1.0.
|
protected Material |
outlineMaterial
Indicates the material properties of the graphic's outline.
|
protected Double |
outlineOpacity
Indicates the opacity of the graphic's outline as a floating-point value in the range 0.0 to 1.0.
|
protected double |
outlineWidth
Indicates the line width (in pixels) used when rendering the shape's outline.
|
protected Double |
scale
Indicates the symbol scale as a ratio of the symbol's original size, or
null to use the symbol's
default scale. |
protected Material |
textMaterial
Indicates the material used to render text modifiers.
|
| Constructor and Description |
|---|
BasicTacticalGraphicAttributes()
Creates a new
BasicTacticalGraphicAttributes. |
BasicTacticalGraphicAttributes(TacticalGraphicAttributes attributes)
Creates a new
BasicTacticalGraphicAttributes configured with the specified attributes. |
| 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.
|
protected Font font
protected Material interiorMaterial
null.protected Double interiorOpacity
protected Material outlineMaterial
null.protected Double outlineOpacity
protected double outlineWidth
protected Double scale
null to use the symbol's
default scale. Initially null.protected Material textMaterial
public BasicTacticalGraphicAttributes()
BasicTacticalGraphicAttributes.public BasicTacticalGraphicAttributes(TacticalGraphicAttributes attributes)
BasicTacticalGraphicAttributes configured with the specified attributes.attributes - the attributes to configure the new BasicTacticalGraphicAttributes with.IllegalArgumentException - if attributes is null.public TacticalGraphicAttributes copy()
copy in interface TacticalGraphicAttributespublic void copy(TacticalGraphicAttributes attributes)
null.copy in interface TacticalGraphicAttributesattributes - the attributes to copy.public Material getInteriorMaterial()
setInteriorMaterial for more information on how this material is interpreted.getInteriorMaterial in interface TacticalGraphicAttributesTacticalGraphicAttributes.setInteriorMaterial(Material)public Double getInteriorOpacity()
getInteriorOpacity in interface TacticalGraphicAttributesTacticalGraphicAttributes.setInteriorOpacity(Double)public Material getOutlineMaterial()
setOutlineMaterial for more information on how this material is interpreted.getOutlineMaterial in interface TacticalGraphicAttributesTacticalGraphicAttributes.setOutlineMaterial(Material)public Double getOutlineOpacity()
getOutlineOpacity in interface TacticalGraphicAttributesTacticalGraphicAttributes.setOutlineOpacity(Double)public Double getOutlineWidth()
getOutlineWidth in interface TacticalGraphicAttributesTacticalGraphicAttributes.setOutlineWidth(Double)public Double getScale()
TacticalGraphicAttributes.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.getScale in interface TacticalGraphicAttributesnull, indicating that the default scale is used.public Font getTextModifierFont()
getTextModifierFont in interface TacticalGraphicAttributespublic Material getTextModifierMaterial()
setTextModifierMaterial for a description of how the material is used.getTextModifierMaterial in interface TacticalGraphicAttributespublic void setInteriorMaterial(Material material)
setInteriorMaterial in interface TacticalGraphicAttributesmaterial - the material to apply to the graphic's interior.TacticalGraphicAttributes.getInteriorMaterial()public void setInteriorOpacity(Double opacity)
setInteriorOpacity in interface TacticalGraphicAttributesopacity - the interior opacity as a floating-point value from 0.0 to 1.0.TacticalGraphicAttributes.getInteriorOpacity()public void setOutlineMaterial(Material material)
setOutlineMaterial in interface TacticalGraphicAttributesmaterial - the material to apply to the graphic's outline.TacticalGraphicAttributes.getOutlineMaterial()public void setOutlineOpacity(Double opacity)
setOutlineOpacity in interface TacticalGraphicAttributesopacity - the outline opacity as a floating-point value from 0.0 to 1.0.TacticalGraphicAttributes.getOutlineOpacity()public 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.setOutlineWidth in interface TacticalGraphicAttributeswidth - the line width in pixels.TacticalGraphicAttributes.getOutlineWidth()public 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.setScale in interface TacticalGraphicAttributesscale - the graphic's scale. May be null, indicating that the default scale should be used.public void setTextModifierFont(Font font)
setTextModifierFont in interface TacticalGraphicAttributesfont - New font.public void setTextModifierMaterial(Material material)
setTextModifierMaterial in interface TacticalGraphicAttributesmaterial - The new material.