|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nasa.worldwind.avlist.AVListImpl
gov.nasa.worldwind.symbology.AbstractTacticalGraphic
gov.nasa.worldwind.symbology.milstd2525.AbstractMilStd2525TacticalGraphic
gov.nasa.worldwind.symbology.milstd2525.graphics.areas.BasicArea
public class BasicArea
Implementation of general area graphics. This class implements the following graphics:
| Field Summary | |
|---|---|
protected TacticalGraphicLabel |
identityLabel1
First "ENY" label, for hostile entities. |
protected TacticalGraphicLabel |
identityLabel2
Second "ENY" label, for hostile entities. |
protected SurfacePolygon |
polygon
|
| Fields inherited from class gov.nasa.worldwind.symbology.milstd2525.AbstractMilStd2525TacticalGraphic |
|---|
maskedSymbolCode, OUTLINE_STIPPLE_FACTOR_ANTICIPATED, OUTLINE_STIPPLE_FACTOR_PRESENT, OUTLINE_STIPPLE_PATTERN, symbolCode |
| Fields inherited from class gov.nasa.worldwind.symbology.AbstractTacticalGraphic |
|---|
activeOverrides, activeShapeAttributes, DEFAULT_HIGHLIGHT_MATERIAL, DEFAULT_LABEL_INTERIOR_OPACITY, delegateOwner, frameTimestamp, highlightAttributes, highlighted, labelOffset, labels, modifiers, mustCreateLabels, normalAttributes, showGraphicModifiers, showHostileIndicator, showLocation, showTextModifiers, text, unitsFormat, visible |
| Constructor Summary | |
|---|---|
BasicArea(String sidc)
|
|
| Method Summary | |
|---|---|
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 void |
createLabels()
|
protected String |
createLabelText()
Create the text for the main label on this graphic. |
protected SurfacePolygon |
createPolygon()
|
protected void |
determineIdentityLabelPositions()
|
protected void |
determineLabelPositions(DrawContext dc)
Determine the appropriate position for the graphic's labels. |
protected Position |
determineMainLabelPosition(DrawContext dc)
Compute the position for the area's main label. |
protected void |
doRenderGraphic(DrawContext dc)
Render the polygon. |
protected String |
getGraphicLabel()
|
protected String |
getLabelAlignment()
Indicates the alignment of the graphic's main label. |
protected int |
getPositionCount()
|
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. |
protected void |
makeShapes(DrawContext dc)
|
void |
preRender(DrawContext dc)
|
void |
setPositions(Iterable<? extends Position> positions)
Specifies the positions of the control points that place and orient the graphic. |
| Methods inherited from class gov.nasa.worldwind.symbology.milstd2525.AbstractMilStd2525TacticalGraphic |
|---|
applyDefaultAttributes, createSymbol, getDefaultMaterial, getIdentifier, getModifier, getOutlineStippleFactor, getOutlineStipplePattern, getStatus, getText, mustShowHostileIndicator, setModifier, setStatus |
| Methods inherited from class gov.nasa.worldwind.avlist.AVListImpl |
|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface gov.nasa.worldwind.symbology.TacticalGraphic |
|---|
getAttributes, getDelegateOwner, getHighlightAttributes, getLabelOffset, getUnitsFormat, isShowGraphicModifiers, isShowHostileIndicator, isShowLocation, isShowTextModifiers, isVisible, setAttributes, setDelegateOwner, setHighlightAttributes, setLabelOffset, setShowGraphicModifiers, setShowHostileIndicator, setShowLocation, setShowTextModifiers, setText, setUnitsFormat, setVisible |
| Methods inherited from interface gov.nasa.worldwind.render.Renderable |
|---|
render |
| Methods inherited from interface gov.nasa.worldwind.render.Highlightable |
|---|
isHighlighted, setHighlighted |
| Methods inherited from interface gov.nasa.worldwind.Movable |
|---|
move, moveTo |
| Methods inherited from interface gov.nasa.worldwind.avlist.AVList |
|---|
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues |
| Field Detail |
|---|
protected TacticalGraphicLabel identityLabel1
protected TacticalGraphicLabel identityLabel2
protected SurfacePolygon polygon
| Constructor Detail |
|---|
public BasicArea(String sidc)
| Method Detail |
|---|
protected void applyDelegateOwner(Object owner)
applyDelegateOwner in class AbstractTacticalGraphicowner - Current delegate owner.protected void createLabels()
createLabels in class AbstractTacticalGraphicprotected String createLabelText()
protected SurfacePolygon createPolygon()
protected void determineIdentityLabelPositions()
protected void determineLabelPositions(DrawContext dc)
determineLabelPositions in class AbstractTacticalGraphicdc - Current draw context.protected Position determineMainLabelPosition(DrawContext dc)
dc - 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)protected String getGraphicLabel()
protected String getLabelAlignment()
protected int getPositionCount()
public Iterable<? extends Position> getPositions()
getPositions in interface TacticalGraphicpublic Position getReferencePosition()
getReferencePosition in interface Movablepublic static List<String> getSupportedGraphics()
protected void makeShapes(DrawContext dc)
public void preRender(DrawContext dc)
preRender in interface PreRenderablepublic void setPositions(Iterable<? extends Position> positions)
setPositions in interface TacticalGraphicpositions - Positions that orient the graphic. How many positions are returned depends on the type of
graphic. Some graphics require only a single position, others require many. The positions must
be specified in the same order as the control points defined by the symbology set's template for
this type of graphic.
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||