|
|||||||||
| 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.adfreceiver.ADFReceiver
public class ADFReceiver
Defines a the receiver for an automatic direction finder.
| Field Summary | |
|---|---|
private NDBFrequency |
_frequency
the frequency |
private Knob |
_knobPrimary
the primary knob for major frequency steps |
private static KnobProperties |
_knobPrimaryProperties
the primary-knob properties |
private Knob |
_knobSecondary
the secondary knob for minor frequency steps |
private static KnobProperties |
_knobSecondaryProperties
the secondary-knob properties |
private static RectangularFaceplaceDescriptor |
FACEPLATE
the faceplace |
private static TextProperties |
FREQUENCY_TEXT
the text properties of the frequency |
private static CoordinateCartesianRelative |
FREQUENCY_WINDOW_ANCHOR_SCALE
the relative position of the frequency window based on the center of the canvas |
private static java.awt.Color |
FREQUENCY_WINDOW_BODY_COLOR
the color of the window body |
private static java.awt.Color |
FREQUENCY_WINDOW_OUTLINE_COLOR
the color of the window outline |
private static Scaler |
FREQUENCY_WINDOW_OUTLINE_SCALE
the size scale of the window outline relative to the frequency window size |
private static ScalerPair |
FREQUENCY_WINDOW_SIZE_SCALE
the size scale of the frequency window outline relative to the instrument canvas size |
private static TextProperties |
KNOB_LABEL_PROPERTIES
the knob label properties |
private static NDBFrequency |
KNOB_PRIMARY_STEP
the major change in frequency caused by adjusting the primary knob |
private static NDBFrequency |
KNOB_SECONDARY_STEP
the minor change in frequency caused by adjusting 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 | |
|---|---|
ADFReceiver(java.lang.String id,
int canvasSize,
CoordinateCartesianAbsolute canvasAnchor)
Creates an ADF receiver. |
|
| Method Summary | |
|---|---|
private void |
configureKnobs()
Configures the knobs. |
NDBFrequency |
getFrequency()
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 knobs. |
private void |
renderFrequencyWindow()
Renders the frequency window. |
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 NDBFrequency _frequency
private final Knob _knobPrimary
private static final KnobProperties _knobPrimaryProperties
private final Knob _knobSecondary
private static final KnobProperties _knobSecondaryProperties
private static final RectangularFaceplaceDescriptor FACEPLATE
private static final TextProperties FREQUENCY_TEXT
private static final CoordinateCartesianRelative FREQUENCY_WINDOW_ANCHOR_SCALE
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 TextProperties KNOB_LABEL_PROPERTIES
private static final NDBFrequency KNOB_PRIMARY_STEP
private static final NDBFrequency KNOB_SECONDARY_STEP
| Constructor Detail |
|---|
public ADFReceiver(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 configureKnobs()
public NDBFrequency getFrequency()
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()
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 | ||||||||