|
|||||||||
| 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.vorreceiver.VORDMEReceiver
public class VORDMEReceiver
Defines a receiver for a VOR station.
| Field Summary | |
|---|---|
private PushButton |
_buttonExchange
the button to exchange the active and standby frequencies |
private static ButtonProperties |
_buttonExchangeProperties
the exchange-button properties |
private VOR_ILS_DME_Frequency |
_frequencyActive
the active frequency in the left display |
private VOR_ILS_DME_Frequency |
_frequencyStandby
the standby frequency on the right display |
private Knob |
_knobPrimary
the primary knob for setting the frequency |
private static KnobProperties |
_knobPrimaryProperties
the primary-knob properties |
private Knob |
_knobSecondary
the secondary knob for setting the frequency |
private static KnobProperties |
_knobSecondaryProperties
the secondary-knob properties |
private static TextProperties |
BUTTON_LABEL_PROPERTIES
the text properties of the knob label |
private static RectangularFaceplaceDescriptor |
FACEPLATE
the faceplace |
private static TextProperties |
FREQUENCIES_TEXT
the text properties of the frequencies |
private static java.awt.Color |
FREQUENCY_WINDOW_BODY_COLOR
the color of the frequency window |
private static java.awt.Color |
FREQUENCY_WINDOW_OUTLINE_COLOR
the color of the frequency window outline |
private static Scaler |
FREQUENCY_WINDOW_OUTLINE_SCALE
the size scale of the window outline relative to the instrument size |
private static ScalerPair |
FREQUENCY_WINDOW_SIZE_SCALE
the size scale of the window relative to the instrument size |
private static CoordinateCartesianRelative |
FREQUENCY1_WINDOW_ANCHOR_SCALE
the anchor position of the active-frequency window relative to the center of the instrument |
private static CoordinateCartesianRelative |
FREQUENCY2_WINDOW_ANCHOR_SCALE
the anchor position of the standby-frequency window relative to the center of the instrument |
private static TextProperties |
KNOB_PRIMARY_LABEL_PROPERTIES
the text properties of the primary knob |
private static VOR_ILS_DME_Frequency |
KNOB_PRIMARY_STEP
the step value of the primary knob |
private static TextProperties |
KNOB_SECONDARY_LABEL_PROPERTIES
the text properties of the secondary knob |
private static VOR_ILS_DME_Frequency |
KNOB_SECONDARY_STEP
the step value of the secondary knob |
| 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 | |
|---|---|
VORDMEReceiver(java.lang.String id,
int canvasSize,
CoordinateCartesianAbsolute canvasAnchor)
Creates a VOR receiver. |
|
| Method Summary | |
|---|---|
private void |
configureControls()
Configures the controls. |
VOR_ILS_DME_Frequency |
getFrequencyActive()
Gets the azimuth. |
VOR_ILS_DME_Frequency |
getFrequencyStandby()
Gets the azimuth. |
void |
handleControlCallback(ControlCallbackEvent event)
Handles an event from a registered control. |
void |
render(java.awt.Graphics graphics)
Renders the current state of the instrument. |
private void |
renderControls()
Renders the controls. |
private void |
renderFrequencyWindow(CoordinateCartesianRelative anchorRelative,
VOR_ILS_DME_Frequency frequency)
Renders a frequency window. |
private void |
renderFrequencyWindows()
Renders the frequency windows. |
java.lang.String |
toString()
|
| 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, 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 final PushButton _buttonExchange
private static final ButtonProperties _buttonExchangeProperties
private VOR_ILS_DME_Frequency _frequencyActive
private VOR_ILS_DME_Frequency _frequencyStandby
private final Knob _knobPrimary
private static final KnobProperties _knobPrimaryProperties
private final Knob _knobSecondary
private static final KnobProperties _knobSecondaryProperties
private static final TextProperties BUTTON_LABEL_PROPERTIES
private static final RectangularFaceplaceDescriptor FACEPLATE
private static final TextProperties FREQUENCIES_TEXT
private static final java.awt.Color FREQUENCY_WINDOW_BODY_COLOR
private static final java.awt.Color FREQUENCY_WINDOW_OUTLINE_COLOR
private static final Scaler FREQUENCY_WINDOW_OUTLINE_SCALE
private static final ScalerPair FREQUENCY_WINDOW_SIZE_SCALE
private static final CoordinateCartesianRelative FREQUENCY1_WINDOW_ANCHOR_SCALE
private static final CoordinateCartesianRelative FREQUENCY2_WINDOW_ANCHOR_SCALE
private static final TextProperties KNOB_PRIMARY_LABEL_PROPERTIES
private static final VOR_ILS_DME_Frequency KNOB_PRIMARY_STEP
private static final TextProperties KNOB_SECONDARY_LABEL_PROPERTIES
private static final VOR_ILS_DME_Frequency KNOB_SECONDARY_STEP
| Constructor Detail |
|---|
public VORDMEReceiver(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 |
|---|
private void configureControls()
public VOR_ILS_DME_Frequency getFrequencyActive()
public VOR_ILS_DME_Frequency getFrequencyStandby()
public void handleControlCallback(ControlCallbackEvent event)
handleControlCallback in class A_Instrumentevent - - the callback eventpublic void render(java.awt.Graphics graphics)
render in class A_RectangularInstrumentgraphics - - the graphics contextprivate void renderControls()
private void renderFrequencyWindow(CoordinateCartesianRelative anchorRelative,
VOR_ILS_DME_Frequency frequency)
anchorRelative - - the relative position of the window from the center of the instrumentfrequency - - the frequencyprivate void renderFrequencyWindows()
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||