public class Boundary extends PhaseLine
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
additionalText
The value of an optional second text string for the graphic.
|
protected static Offset |
BOTTOM_LABEL_OFFSET
Offset applied to the graphic's lower label.
|
protected java.util.List<EchelonSymbol> |
echelonSymbols
Tactical symbols used to render the echelon modifiers.
|
protected boolean |
haveBottomLabel
Indicates whether or not there are labels below the boundary line.
|
protected boolean |
haveHostileLabels
Indicates whether or not there are hostile indicator labels ("ENY") along the line.
|
protected boolean |
haveTopLabel
Indicates whether or not there are labels above the boundary line.
|
protected TacticalSymbolAttributes |
symbolAttributes
Attribute bundle for the echelon symbols.
|
protected static Offset |
TOP_LABEL_OFFSET
Offset applied to the graphic's upper label.
|
path, PLD_OUTLINE_STIPPLE_FACTORmaskedSymbolCode, OUTLINE_STIPPLE_FACTOR_ANTICIPATED, OUTLINE_STIPPLE_FACTOR_PRESENT, OUTLINE_STIPPLE_PATTERN, symbolCodeactiveOverrides, 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| Constructor and Description |
|---|
Boundary(java.lang.String sidc)
Create a new Boundary.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
applyDelegateOwner(java.lang.Object owner)
Invoked each frame to apply to the current delegate owner to all renderable objects used to draw the graphic.
|
protected EchelonSymbol |
createEchelonSymbol(java.lang.String sidc)
Create a tactical symbol to render the echelon modifier.
|
protected void |
createLabels()
Create labels for the start and end of the path.
|
protected void |
determineActiveAttributes()
Determine active attributes for this frame.
|
protected void |
determineLabelPositions(DrawContext dc)
Determine positions for the start and end labels.
|
protected void |
doRenderGraphicModifiers(DrawContext dc)
Render the graphic modifiers.
|
java.lang.String |
getAdditionalText()
Indicates an additional text identification for this graphic.
|
protected Offset |
getBottomLabelOffset()
Indicates the offset applied to the lower label.
|
protected Offset |
getDefaultLabelOffset()
Indicates the default offset applied to the graphic's main label.
|
java.lang.Object |
getModifier(java.lang.String key)
Indicates the current value of a text or graphic modifier.
|
static java.util.List<java.lang.String> |
getSupportedGraphics()
Indicates the graphics supported by this class.
|
protected Offset |
getTopLabelOffset()
Indicates the offset applied to the upper label.
|
protected boolean |
mustCreateIdentityLabels() |
void |
setAdditionalText(java.lang.String text)
Indicates an additional text identification for this graphic.
|
void |
setModifier(java.lang.String key,
java.lang.Object value)
Specifies the value of a text or graphic modifier.
|
applyDefaultAttributes, createPath, doRenderGraphic, getGraphicLabel, getPositions, getReferencePosition, setPositionscreateSymbol, getDefaultMaterial, getIdentifier, getOutlineStippleFactor, getOutlineStipplePattern, getStatus, getText, mustShowHostileIndicator, setStatusaddLabel, applyLabelAttributes, applyOverrideAttributes, computeGeometry, computeLabelInteriorOpacity, determineDelegateOwner, determinePerFrameAttributes, doDrag, doRenderTextModifiers, drag, getActiveDelegateOwner, getActiveOverrideAttributes, getActiveShapeAttributes, getAttributes, 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, setVisibleaddPropertyChangeListener, 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, setValuesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAttributes, getDelegateOwner, getHighlightAttributes, getLabelOffset, getUnitsFormat, isShowGraphicModifiers, isShowHostileIndicator, isShowLocation, isShowTextModifiers, isVisible, setAttributes, setDelegateOwner, setHighlightAttributes, setLabelOffset, setShowGraphicModifiers, setShowHostileIndicator, setShowLocation, setShowTextModifiers, setText, setUnitsFormat, setVisiblerenderisHighlighted, setHighlightedaddPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValuesprotected java.lang.String additionalText
setAdditionalText(String), or by passing an Iterable to
setModifier(String, Object) with a key of SymbologyConstants.UNIQUE_DESIGNATION
(additional text is the second value in the iterable).protected static final Offset BOTTOM_LABEL_OFFSET
protected java.util.List<EchelonSymbol> echelonSymbols
protected boolean haveBottomLabel
protected boolean haveHostileLabels
protected boolean haveTopLabel
protected TacticalSymbolAttributes symbolAttributes
protected static final Offset TOP_LABEL_OFFSET
public Boundary(java.lang.String sidc)
sidc - Symbol code the identifies the graphic.protected void applyDelegateOwner(java.lang.Object owner)
applyDelegateOwner in class PhaseLineowner - Current delegate owner.protected EchelonSymbol createEchelonSymbol(java.lang.String sidc)
sidc - Identifier for the symbol.protected void createLabels()
createLabels in class PhaseLineprotected void determineActiveAttributes()
determineActiveAttributes in class AbstractTacticalGraphicprotected void determineLabelPositions(DrawContext dc)
determineLabelPositions in class PhaseLinedc - Current draw context.protected void doRenderGraphicModifiers(DrawContext dc)
doRenderGraphicModifiers in class AbstractTacticalGraphicdc - Current draw context.public java.lang.String getAdditionalText()
protected Offset getBottomLabelOffset()
protected Offset getDefaultLabelOffset()
getDefaultLabelOffset in class AbstractTacticalGraphicpublic java.lang.Object getModifier(java.lang.String key)
AbstractMilStd2525TacticalGraphicgetModifier in interface TacticalGraphicgetModifier in class AbstractMilStd2525TacticalGraphickey - Key that identifies the modifier to retrieve. The possible modifiers depends on the symbol set.null if the modifier is not set.public static java.util.List<java.lang.String> getSupportedGraphics()
protected Offset getTopLabelOffset()
protected boolean mustCreateIdentityLabels()
public void setAdditionalText(java.lang.String text)
text - The additional text. May be null.public void setModifier(java.lang.String key,
java.lang.Object value)
AbstractMilStd2525TacticalGraphicsetModifier in interface TacticalGraphicsetModifier in class AbstractMilStd2525TacticalGraphickey - Key that identifies the modifier to set. The possible modifiers depends on the symbol set.value - New value for the modifier.