public class StatusLayer extends AbstractLayer implements PositionListener, RenderingListener
Modifier and Type | Class and Description |
---|---|
static class |
StatusLayer.StatusMGRSLayer |
static class |
StatusLayer.StatusUTMLayer |
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
altDisplay |
protected int |
coordDecimalPlaces |
protected java.lang.String |
elevDisplay |
protected WorldWindow |
eventSource |
protected java.lang.String |
latDisplay |
protected java.lang.String |
lonDisplay |
protected Position |
previousPos |
static java.lang.String |
UNIT_IMPERIAL |
static java.lang.String |
UNIT_METRIC |
Constructor and Description |
---|
StatusLayer() |
Modifier and Type | Method and Description |
---|---|
void |
doPick(DrawContext dc,
java.awt.Point pickPoint) |
void |
doRender(DrawContext dc) |
void |
draw(DrawContext dc) |
java.awt.Color |
getBackColor() |
int |
getCoordSigDigits() |
java.awt.Font |
getDefaultFont() |
protected WorldWindow |
getEventSource() |
protected java.lang.String |
makeAngleDescription(java.lang.String label,
Angle angle,
int places) |
protected java.lang.String |
makeCursorElevationDescription(double metersElevation) |
protected java.lang.String |
makeEyeAltitudeDescription(double metersAltitude) |
void |
moved(PositionEvent event) |
void |
setBackColor(java.awt.Color backColor) |
void |
setCoordDecimalPlaces(int coordDecimalPlaces) |
void |
setDefaultFont(java.awt.Font font) |
void |
setElevationUnits(java.lang.String units) |
void |
setEventSource(WorldWindow newEventSource) |
void |
stageChanged(RenderingEvent event) |
java.lang.String |
toString() |
createLayerConfigElements, dispose, doPreRender, getDataFileStore, getExpiryTime, getLayerConfigParams, getMaxActiveAltitude, getMaxEffectiveAltitude, getMinActiveAltitude, getMinEffectiveAltitude, getName, getOpacity, getRestorableState, getScale, getScreenCredit, isAtMaxResolution, isEnabled, isLayerActive, isLayerConfigDocument, isLayerInView, isMultiResolution, isNetworkRetrievalEnabled, isPickEnabled, pick, preRender, render, restoreState, setDataFileStore, setEnabled, setExpiryTime, setMaxActiveAltitude, setMinActiveAltitude, setName, setNetworkRetrievalEnabled, setOpacity, setPickEnabled, setScreenCredit
onMessage, propertyChange
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, wait, wait, wait
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
onMessage
protected java.lang.String altDisplay
protected int coordDecimalPlaces
protected java.lang.String elevDisplay
protected WorldWindow eventSource
protected java.lang.String latDisplay
protected java.lang.String lonDisplay
protected Position previousPos
public static final java.lang.String UNIT_IMPERIAL
public static final java.lang.String UNIT_METRIC
public void doPick(DrawContext dc, java.awt.Point pickPoint)
doPick
in class AbstractLayer
public void doRender(DrawContext dc)
doRender
in class AbstractLayer
public void draw(DrawContext dc)
public java.awt.Color getBackColor()
public int getCoordSigDigits()
public java.awt.Font getDefaultFont()
protected WorldWindow getEventSource()
protected java.lang.String makeAngleDescription(java.lang.String label, Angle angle, int places)
protected java.lang.String makeCursorElevationDescription(double metersElevation)
protected java.lang.String makeEyeAltitudeDescription(double metersAltitude)
public void moved(PositionEvent event)
moved
in interface PositionListener
public void setBackColor(java.awt.Color backColor)
public void setCoordDecimalPlaces(int coordDecimalPlaces)
public void setDefaultFont(java.awt.Font font)
public void setElevationUnits(java.lang.String units)
public void setEventSource(WorldWindow newEventSource)
public void stageChanged(RenderingEvent event)
stageChanged
in interface RenderingListener
public java.lang.String toString()
toString
in class AbstractLayer