uavsim.navigationmodel
Class NondirectionalBeacon

java.lang.Object
  extended by uavsim.navigationmodel.A_ChartElement
      extended by uavsim.navigationmodel.A_ChartElementTuneable<NDBFrequency>
          extended by uavsim.navigationmodel.NondirectionalBeacon

public class NondirectionalBeacon
extends A_ChartElementTuneable<NDBFrequency>

Defines a nondirectional beacon (NDB).

Author:
Dan Tappan [17.07.11]

Field Summary
private static double CIRCLE_WIDTH_SCALE
          the size scale of the enclosing circle relative to the element size
private static java.awt.Color COLOR
          the color of the glyph
private static Latitude RADIUS
          the radius of the glyph
 
Fields inherited from class uavsim.navigationmodel.A_ChartElementTuneable
_designator, _frequency
 
Fields inherited from class uavsim.navigationmodel.A_ChartElement
_anchor, _coordinate, _id
 
Constructor Summary
NondirectionalBeacon(java.lang.String id, CoordinateWorld3D coordinate, java.lang.String designator, NDBFrequency frequency)
          Creates an NDB chart element.
 
Method Summary
 java.awt.Color getColor()
          Gets the color of the glyph.
 void render(java.awt.Graphics2D graphics, I_WorldMappable mapper, boolean areDetailsVisible)
          Renders the glyph.
 
Methods inherited from class uavsim.navigationmodel.A_ChartElementTuneable
getDesignator, getFrequency, hasFrequency, toString
 
Methods inherited from class uavsim.navigationmodel.A_ChartElement
areDetailsVisible, getCoordinate, getID, renderLabel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CIRCLE_WIDTH_SCALE

private static final double CIRCLE_WIDTH_SCALE
the size scale of the enclosing circle relative to the element size

See Also:
Constant Field Values

COLOR

private static final java.awt.Color COLOR
the color of the glyph


RADIUS

private static final Latitude RADIUS
the radius of the glyph

Constructor Detail

NondirectionalBeacon

public NondirectionalBeacon(java.lang.String id,
                            CoordinateWorld3D coordinate,
                            java.lang.String designator,
                            NDBFrequency frequency)
Creates an NDB chart element.

Parameters:
id - - the unique element identifier
coordinate - - the coordinate of the origin
designator - - the station designator
frequency - - the station frequency
Method Detail

getColor

public java.awt.Color getColor()
Gets the color of the glyph.

Specified by:
getColor in class A_ChartElement
Returns:
the color

render

public void render(java.awt.Graphics2D graphics,
                   I_WorldMappable mapper,
                   boolean areDetailsVisible)
Renders the glyph.

Overrides:
render in class A_ChartElement
Parameters:
graphics - - the graphics context
mapper - - the mapper that translates screen and world coordinates
areDetailsVisible - - whether low-level details that would clutter the display should be rendered