uavsim.graphics.instruments.directionalgyro
Class A_DirectionalGyro

java.lang.Object
  extended by uavsim.graphics.instruments.A_Instrument
      extended by uavsim.graphics.instruments.A_CircularInstrument<AngleNavigational>
          extended by uavsim.graphics.instruments.directionalgyro.A_DirectionalGyro
All Implemented Interfaces:
java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.util.EventListener, javax.swing.event.MouseInputListener, I_AngleMapper<AngleNavigational>
Direct Known Subclasses:
DirectionalGyro

public abstract class A_DirectionalGyro
extends A_CircularInstrument<AngleNavigational>

Defines a standard directional-gyro instrument.

Author:
Dan Tappan [06.08.11]

Field Summary
 
Fields inherited from class uavsim.graphics.instruments.A_CircularInstrument
_ringSize, DISK_COLOR, MOUNT_RING_COLOR, MOUNT_RING_INNER_SCALE
 
Fields inherited from class uavsim.graphics.instruments.A_Instrument
_canvasAnchor, _canvasSize, _graphics, _id
 
Constructor Summary
A_DirectionalGyro(java.lang.String id, int canvasSize, CoordinateCartesianAbsolute canvasAnchor)
          Creates an abstract directional gyro.
 
Method Summary
abstract  AngleNavigational getHeadingActual()
          Gets the azimuth.
abstract  AngleNavigational getHeadingDesired()
          Gets the desired azimuth.
 
Methods inherited from class uavsim.graphics.instruments.A_CircularInstrument
mapAngle, render, renderDisk, renderMountRing
 
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, toString, wait, wait, wait
 
Methods inherited from interface uavsim.graphics.instruments.I_AngleMapper
mapAngle_
 

Constructor Detail

A_DirectionalGyro

public A_DirectionalGyro(java.lang.String id,
                         int canvasSize,
                         CoordinateCartesianAbsolute canvasAnchor)
Creates an abstract directional gyro.

Parameters:
id - - the unique instrument identifier
canvasSize - - the square size of the instrument footprint in pixels
canvasAnchor - - the anchor position for the center of the canvas in pixels
Method Detail

getHeadingActual

public abstract AngleNavigational getHeadingActual()
Gets the azimuth.

Returns:
the azimuth

getHeadingDesired

public abstract AngleNavigational getHeadingDesired()
Gets the desired azimuth.

Returns:
the azimuth