public abstract class AbstractMilStd2525TacticalGraphic extends AbstractTacticalGraphic implements MilStd2525TacticalGraphic, Renderable
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
maskedSymbolCode
Symbol identifier with fields that do not influence the type of graphic replaced with hyphens.
|
protected static int |
OUTLINE_STIPPLE_FACTOR_ANTICIPATED
Factor applied to the stipple pattern used to draw graphics in anticipated state.
|
protected static int |
OUTLINE_STIPPLE_FACTOR_PRESENT
Factor applied to the stipple pattern used to draw graphics in present state.
|
protected static short |
OUTLINE_STIPPLE_PATTERN
Stipple pattern applied to graphics in the anticipated state.
|
protected SymbolCode |
symbolCode
Indicates a string identifier for this symbol.
|
activeOverrides, activeShapeAttributes, DEFAULT_HIGHLIGHT_MATERIAL, DEFAULT_LABEL_INTERIOR_OPACITY, delegateOwner, dragEnabled, draggableSupport, frameTimestamp, highlightAttributes, highlighted, labelOffset, labels, modifiers, mustCreateLabels, normalAttributes, showGraphicModifiers, showHostileIndicator, showLocation, showTextModifiers, text, unitsFormat, visible
Modifier | Constructor and Description |
---|---|
protected |
AbstractMilStd2525TacticalGraphic(java.lang.String symbolCode) |
Modifier and Type | Method and Description |
---|---|
protected void |
applyDefaultAttributes(ShapeAttributes attributes)
Apply defaults to the active attributes bundle.
|
protected TacticalSymbol |
createSymbol(java.lang.String sidc,
Position position,
TacticalSymbolAttributes attrs) |
protected Material |
getDefaultMaterial()
Indicates the default Material for this graphic.
|
java.lang.String |
getIdentifier()
Indicates a string identifier for this graphic.
|
java.lang.Object |
getModifier(java.lang.String modifier)
Indicates the current value of a text or graphic modifier.
|
protected int |
getOutlineStippleFactor()
Indicates the factor applied to the stipple pattern used to draw dashed lines when the graphic is "anticipated".
|
protected short |
getOutlineStipplePattern()
Indicates the stipple pattern used to draw dashed lines when the graphic is "anticipated".
|
java.lang.String |
getStatus()
Indicates the current value of graphic's Status/Operational Condition field.
|
java.lang.String |
getText()
Convenience method to access the text modifier of the graphic.
|
protected boolean |
mustShowHostileIndicator()
Indicates whether or not the graphic must display the hostile/enemy indicator, if the graphic supports the
indicator.
|
void |
setModifier(java.lang.String modifier,
java.lang.Object value)
Specifies the value of a text or graphic modifier.
|
void |
setStatus(java.lang.String value)
Specifies this graphic's Status/Operational Condition field.
|
addLabel, applyDelegateOwner, applyLabelAttributes, applyOverrideAttributes, computeGeometry, computeLabelInteriorOpacity, createLabels, determineActiveAttributes, determineDelegateOwner, determineLabelPositions, determinePerFrameAttributes, doDrag, doRenderGraphic, doRenderGraphicModifiers, doRenderTextModifiers, drag, getActiveDelegateOwner, getActiveOverrideAttributes, getActiveShapeAttributes, getAttributes, getDefaultLabelOffset, getDelegateOwner, getHighlightAttributes, getLabelMaterial, getLabelOffset, getUnitsFormat, isDragEnabled, isHighlighted, isShowGraphicModifiers, isShowHostileIndicator, isShowLocation, isShowTextModifiers, isVisible, move, moveTo, onModifierChanged, render, setAttributes, setDelegateOwner, setDragEnabled, setHighlightAttributes, setHighlighted, setLabelOffset, setShowGraphicModifiers, setShowHostileIndicator, setShowLocation, setShowTextModifiers, setText, setUnitsFormat, setVisible
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getBooleanValue, getBooleanValue, getChangeSupport, getDoubleValue, getDoubleValue, getEntries, getIntegerValue, getIntegerValue, getLongValue, getLongValue, getRestorableStateForAVPair, getStringValue, getStringValue, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAttributes, getDelegateOwner, getHighlightAttributes, getLabelOffset, getPositions, getUnitsFormat, isShowGraphicModifiers, isShowHostileIndicator, isShowLocation, isShowTextModifiers, isVisible, setAttributes, setDelegateOwner, setHighlightAttributes, setLabelOffset, setPositions, setShowGraphicModifiers, setShowHostileIndicator, setShowLocation, setShowTextModifiers, setText, setUnitsFormat, setVisible
render
isHighlighted, setHighlighted
getReferencePosition, move, moveTo
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
protected java.lang.String maskedSymbolCode
SymbolCode.toMaskedString()
.protected static final int OUTLINE_STIPPLE_FACTOR_ANTICIPATED
protected static final int OUTLINE_STIPPLE_FACTOR_PRESENT
protected static final short OUTLINE_STIPPLE_PATTERN
protected SymbolCode symbolCode
setModifier(String, Object)
. Initially null
.protected AbstractMilStd2525TacticalGraphic(java.lang.String symbolCode)
protected void applyDefaultAttributes(ShapeAttributes attributes)
applyDefaultAttributes
in class AbstractTacticalGraphic
attributes
- Attributes bundle to receive defaults.protected TacticalSymbol createSymbol(java.lang.String sidc, Position position, TacticalSymbolAttributes attrs)
protected Material getDefaultMaterial()
public java.lang.String getIdentifier()
getIdentifier
in interface TacticalGraphic
public java.lang.Object getModifier(java.lang.String modifier)
getModifier
in interface TacticalGraphic
getModifier
in class AbstractTacticalGraphic
modifier
- Key that identifies the modifier to retrieve. The possible modifiers depends on the symbol set.null
if the modifier is not set.protected int getOutlineStippleFactor()
ShapeAttributes.getOutlineStippleFactor()
protected short getOutlineStipplePattern()
ShapeAttributes.getOutlineStipplePattern()
public java.lang.String getStatus()
getStatus
in interface MilStd2525TacticalGraphic
MilStd2525TacticalGraphic.setStatus(String)
public java.lang.String getText()
getModifier(SymbologyConstants.UNIQUE_DESIGNATION)
.getText
in interface TacticalGraphic
getText
in class AbstractTacticalGraphic
TacticalGraphic.getModifier(String)
protected boolean mustShowHostileIndicator()
AbstractTacticalGraphic.isShowHostileIndicator()
is true, and the graphic represents a hostile entity.public void setModifier(java.lang.String modifier, java.lang.Object value)
setModifier
in interface TacticalGraphic
setModifier
in class AbstractTacticalGraphic
modifier
- Key that identifies the modifier to set. The possible modifiers depends on the symbol set.value
- New value for the modifier.public void setStatus(java.lang.String value)
Tactical graphics
Meteorological and Oceanographic
Emergency Management
setStatus
in interface MilStd2525TacticalGraphic
value
- the new value for the Status/Operational Condition field.