public class StatusLayer extends AbstractLayer implements PositionListener, RenderingListener
Used ScalebarLayer and StatusBar as template
Modifier and Type | Class and Description |
---|---|
static class |
StatusLayer.StatusMGRSLayer |
static class |
StatusLayer.StatusUTMLayer |
Modifier and Type | Field and Description |
---|---|
protected String |
altDisplay |
protected int |
coordDecimalPlaces |
protected String |
elevDisplay |
protected WorldWindow |
eventSource |
protected String |
latDisplay |
protected String |
lonDisplay |
protected Position |
previousPos |
static String |
UNIT_IMPERIAL |
static String |
UNIT_METRIC |
Constructor and Description |
---|
StatusLayer() |
Modifier and Type | Method and Description |
---|---|
void |
doPick(DrawContext dc,
Point pickPoint) |
void |
doRender(DrawContext dc) |
void |
draw(DrawContext dc) |
Color |
getBackColor() |
int |
getCoordSigDigits() |
Font |
getDefaultFont() |
protected WorldWindow |
getEventSource() |
protected String |
makeAngleDescription(String label,
Angle angle,
int places) |
protected String |
makeCursorElevationDescription(double metersElevation) |
protected String |
makeEyeAltitudeDescription(double metersAltitude) |
void |
moved(PositionEvent event) |
void |
setBackColor(Color backColor) |
void |
setCoordDecimalPlaces(int coordDecimalPlaces) |
void |
setDefaultFont(Font font) |
void |
setElevationUnits(String units) |
void |
setEventSource(WorldWindow newEventSource) |
void |
stageChanged(RenderingEvent event) |
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
propertyChange
onMessage
protected String altDisplay
protected int coordDecimalPlaces
protected String elevDisplay
protected WorldWindow eventSource
protected String latDisplay
protected String lonDisplay
protected Position previousPos
public static final String UNIT_IMPERIAL
public static final String UNIT_METRIC
public void doPick(DrawContext dc, Point pickPoint)
doPick
in class AbstractLayer
public void doRender(DrawContext dc)
doRender
in class AbstractLayer
public void draw(DrawContext dc)
public Color getBackColor()
public int getCoordSigDigits()
public Font getDefaultFont()
protected WorldWindow getEventSource()
protected String makeCursorElevationDescription(double metersElevation)
protected String makeEyeAltitudeDescription(double metersAltitude)
public void moved(PositionEvent event)
moved
in interface PositionListener
public void setBackColor(Color backColor)
public void setCoordDecimalPlaces(int coordDecimalPlaces)
public void setDefaultFont(Font font)
public void setElevationUnits(String units)
public void setEventSource(WorldWindow newEventSource)
public void stageChanged(RenderingEvent event)
stageChanged
in interface RenderingListener
public String toString()
toString
in class AbstractLayer