|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuavsim.graphics.instruments.A_Instrument
uavsim.graphics.instruments.A_RectangularInstrument
uavsim.graphics.instruments.dme.DMEMarkerIndicator
public class DMEMarkerIndicator
Defines a display for distance measuring equipment (DME). It always indicates a distance, even when there is no valid signal from a VOR station. zzz
| Nested Class Summary | |
|---|---|
static class |
DMEMarkerIndicator.E_Marker
Defines the marker beacons that can be indicated. |
private static class |
DMEMarkerIndicator.MarkerDescriptor
Defines the indicator light for a marker. |
| Field Summary | |
|---|---|
private Distance |
_distance
the distance to the station |
private boolean |
_isDMEAlive
zzz |
private DMEMarkerIndicator.E_Marker |
_marker
the active marker |
private static DMEMarkerIndicator.MarkerDescriptor |
_markerInnerDescriptor
the inner-marker descriptor |
private static DMEMarkerIndicator.MarkerDescriptor |
_markerMiddleDescriptor
the middle-marker descriptor |
private static DMEMarkerIndicator.MarkerDescriptor |
_markerOuterDescriptor
the outer-marker descriptor |
private static TextProperties |
DISTANCE_TEXT
the text properties of the distance |
private static CoordinateCartesianRelative |
DISTANCE_WINDOW_ANCHOR_SCALE
the anchor position of the display relative to the center of the instrument |
private static java.awt.Color |
DISTANCE_WINDOW_BODY_COLOR
the color of the window body |
private static java.awt.Color |
DISTANCE_WINDOW_OUTLINE_COLOR
the color of the window body outline |
private static Scaler |
DISTANCE_WINDOW_OUTLINE_SCALE
the size scale of the distance-window outline relative to the instrument size |
private static ScalerPair |
DISTANCE_WINDOW_SIZE_SCALE
the size scale of the distance window relative to the instrument size |
private static RectangularFaceplaceDescriptor |
FACEPLATE
the faceplace |
private java.text.DecimalFormat |
FORMATTER
the distance format |
private static java.awt.Color |
MARKER_OUTLINE_COLOR
the color of the marker outline |
private static Scaler |
MARKER_OUTLINE_SCALE
the size scale of the marker outline relative to the instrument size |
private static Scaler |
MARKER_SIZE_SCALE
the size scale of the marker relative to the instrument size |
| Fields inherited from class uavsim.graphics.instruments.A_RectangularInstrument |
|---|
_faceplaceDescriptor, _faceSize |
| Fields inherited from class uavsim.graphics.instruments.A_Instrument |
|---|
_canvasAnchor, _canvasSize, _graphics, _id |
| Constructor Summary | |
|---|---|
DMEMarkerIndicator(java.lang.String id,
int canvasSize,
CoordinateCartesianAbsolute canvasAnchor)
Creates a DME instrument. |
|
| Method Summary | |
|---|---|
Distance |
getDistance()
Gets the azimuth. |
DMEMarkerIndicator.E_Marker |
getMarker()
Gets the active marker. |
void |
render(java.awt.Graphics graphics)
Renders the current state of the instrument. |
private void |
renderDistanceWindow()
Renders the distance window. |
private void |
renderMarker(DMEMarkerIndicator.MarkerDescriptor descriptor,
boolean isActive)
Renders a marker. |
private void |
renderMarkers()
Renders the markers. |
java.lang.String |
toString()
|
void |
update()
Updates the state of the instrument without rendering it. |
void |
update(Distance distance)
Updates the state of the instrument without rendering it. |
void |
update(DMEMarkerIndicator.E_Marker marker)
Updates the state of the instrument without rendering it. |
| Methods inherited from class uavsim.graphics.instruments.A_RectangularInstrument |
|---|
getFaceSize, renderBox |
| Methods inherited from class uavsim.graphics.instruments.A_Instrument |
|---|
getAnchor, getCanvasSize, getGraphics, getID, getParentComponent, handleControlCallback, hasControls, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, refresh, registerControl, setCanvasAnchor, setCanvasSize, setParentComponent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private Distance _distance
private boolean _isDMEAlive
private DMEMarkerIndicator.E_Marker _marker
private static final DMEMarkerIndicator.MarkerDescriptor _markerInnerDescriptor
private static final DMEMarkerIndicator.MarkerDescriptor _markerMiddleDescriptor
private static final DMEMarkerIndicator.MarkerDescriptor _markerOuterDescriptor
private static final TextProperties DISTANCE_TEXT
private static final CoordinateCartesianRelative DISTANCE_WINDOW_ANCHOR_SCALE
private static final java.awt.Color DISTANCE_WINDOW_BODY_COLOR
private static final java.awt.Color DISTANCE_WINDOW_OUTLINE_COLOR
private static final Scaler DISTANCE_WINDOW_OUTLINE_SCALE
private static final ScalerPair DISTANCE_WINDOW_SIZE_SCALE
private static final RectangularFaceplaceDescriptor FACEPLATE
private final java.text.DecimalFormat FORMATTER
private static final java.awt.Color MARKER_OUTLINE_COLOR
private static final Scaler MARKER_OUTLINE_SCALE
private static final Scaler MARKER_SIZE_SCALE
| Constructor Detail |
|---|
public DMEMarkerIndicator(java.lang.String id,
int canvasSize,
CoordinateCartesianAbsolute canvasAnchor)
id - - the unique instrument identifiercanvasSize - - the square size of the instrument footprint in pixelscanvasAnchor - - the anchor position for the center of the canvas in pixels| Method Detail |
|---|
public Distance getDistance()
public DMEMarkerIndicator.E_Marker getMarker()
public void render(java.awt.Graphics graphics)
render in class A_RectangularInstrumentgraphics - - the graphics contextprivate void renderDistanceWindow()
private void renderMarker(DMEMarkerIndicator.MarkerDescriptor descriptor,
boolean isActive)
descriptor - - the marker descriptorisActive - - the marker illumination stateprivate void renderMarkers()
public java.lang.String toString()
toString in class java.lang.Objectpublic void update()
public void update(Distance distance)
distance - - the slant distance to the stationpublic void update(DMEMarkerIndicator.E_Marker marker)
marker - - the active marker
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||