public class MinimumSafeDistanceZones extends AbstractMilStd2525TacticalGraphic implements PreRenderable
| Modifier and Type | Field and Description |
|---|---|
static Angle |
DEFAULT_LABEL_ANGLE
Default angle used to position the graphic's labels.
|
protected Angle |
labelAngle
Position the labels along a line radiating out from the center of the circle at this angle from North.
|
protected Iterable<? extends Position> |
positions
Position of the center of the range fan.
|
protected List<SurfaceCircle> |
rings
Rings that make up the range fan.
|
maskedSymbolCode, 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 |
|---|
MinimumSafeDistanceZones(String sidc)
Create the graphic.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
applyDelegateOwner(Object owner)
Invoked each frame to apply to the current delegate owner to all renderable objects used to draw the graphic.
|
protected SurfaceCircle |
createCircle()
Create a circle for a range ring.
|
protected void |
createLabels()
Create labels for each ring.
|
protected void |
createShapes(DrawContext dc)
Create the circles used to draw this graphic.
|
protected void |
determineLabelPositions(DrawContext dc)
Determine positions for the start and end labels.
|
protected void |
doRenderGraphic(DrawContext dc)
Render the polygon.
|
Angle |
getLabelAngle()
Indicates the angle used to position this graphic's labels.
|
Position |
getPosition()
Indicates the center position of the range ran.
|
Iterable<? extends Position> |
getPositions()
Indicates the positions of the control points that place and orient the graphic.
|
Position |
getReferencePosition()
A position associated with the object that indicates its aggregate geographic position.
|
static List<String> |
getSupportedGraphics()
Indicates the graphics supported by this class.
|
void |
preRender(DrawContext dc) |
void |
setLabelAngle(Angle angle)
Specifies the angle used to position this graphic's labels.
|
void |
setPosition(Position position)
Specifies the center position of the range ran.
|
void |
setPositions(Iterable<? extends Position> positions)
Specifies the positions of the control points that place and orient the graphic.
|
applyDefaultAttributes, createSymbol, getDefaultMaterial, getIdentifier, getModifier, getOutlineStippleFactor, getOutlineStipplePattern, getStatus, getText, mustShowHostileIndicator, setModifier, setStatusaddLabel, applyLabelAttributes, applyOverrideAttributes, computeGeometry, computeLabelInteriorOpacity, determineActiveAttributes, determineDelegateOwner, determinePerFrameAttributes, doDrag, 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, 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, setValuespublic static final Angle DEFAULT_LABEL_ANGLE
protected Angle labelAngle
protected List<SurfaceCircle> rings
public MinimumSafeDistanceZones(String sidc)
sidc - Symbol code the identifies the graphic.protected void applyDelegateOwner(Object owner)
applyDelegateOwner in class AbstractTacticalGraphicowner - Current delegate owner.protected SurfaceCircle createCircle()
protected void createLabels()
createLabels in class AbstractTacticalGraphicprotected void createShapes(DrawContext dc)
dc - Current draw context.protected void determineLabelPositions(DrawContext dc)
determineLabelPositions in class AbstractTacticalGraphicdc - Current draw context.protected void doRenderGraphic(DrawContext dc)
doRenderGraphic in class AbstractTacticalGraphicdc - Current draw context.AbstractTacticalGraphic.doRenderTextModifiers(gov.nasa.worldwind.render.DrawContext),
AbstractTacticalGraphic.doRenderGraphicModifiers(gov.nasa.worldwind.render.DrawContext)public Angle getLabelAngle()
public Position getPosition()
public Iterable<? extends Position> getPositions()
getPositions in interface TacticalGraphicpublic Position getReferencePosition()
getReferencePosition in interface Movablepublic static List<String> getSupportedGraphics()
public void preRender(DrawContext dc)
preRender in interface PreRenderablepublic void setLabelAngle(Angle angle)
angle - The angle used to position this graphic's labels.public void setPosition(Position position)
position - The new center position.public void setPositions(Iterable<? extends Position> positions)
setPositions in interface TacticalGraphicpositions - Control points. This graphic uses only one control point, which determines the center of the
circle.