uavsim.navigationmodel
Class Localizer

java.lang.Object
  extended by uavsim.navigationmodel.A_ChartElement
      extended by uavsim.navigationmodel.A_ChartElementTuneable<VOR_ILS_DME_Frequency>
          extended by uavsim.navigationmodel.A_ILSCorridor
              extended by uavsim.navigationmodel.Localizer

public class Localizer
extends A_ILSCorridor

Defines an ILS localizer to a runway.

This component should not be instantiated and added to a chart directly because it is processed only as a members of an ILSAssembly.

Author:
Dan Tappan [19.07.11]

Field Summary
private static java.awt.Color COLOR
          the glyph color
private static Latitude LENGTH
          the localizer length
private static Latitude STATION_RADIUS
          the localizer station radius
private static AngleNavigational WIDTH
          the localizer width
private static AngleNavigational WIDTH_HALF
          the localizer half-width
 
Fields inherited from class uavsim.navigationmodel.A_ILSCorridor
_azimuth, _length, _width
 
Fields inherited from class uavsim.navigationmodel.A_ChartElementTuneable
_designator, _frequency
 
Fields inherited from class uavsim.navigationmodel.A_ChartElement
_anchor, _coordinate, _id
 
Constructor Summary
protected Localizer(java.lang.String id, java.lang.String designator, VOR_ILS_DME_Frequency frequency, CoordinateWorld3D coordinate, AngleNavigational azimuth)
          Creates an ILS localizer element.
 
Method Summary
 java.awt.Color getColor()
          Gets the color of the glyph.
 boolean isOnLocalizer(CoordinateWorld coordinate)
          Determines whether a coordinate is within the localizer arc.
 void render(java.awt.Graphics2D graphics, I_WorldMappable mapper, boolean areDetailsVisible)
          Renders the glyph.
 
Methods inherited from class uavsim.navigationmodel.A_ILSCorridor
getAzimuth, getLength, getWidth, toString
 
Methods inherited from class uavsim.navigationmodel.A_ChartElementTuneable
getDesignator, getFrequency, hasFrequency
 
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

COLOR

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


LENGTH

private static final Latitude LENGTH
the localizer length


STATION_RADIUS

private static final Latitude STATION_RADIUS
the localizer station radius


WIDTH

private static final AngleNavigational WIDTH
the localizer width


WIDTH_HALF

private static final AngleNavigational WIDTH_HALF
the localizer half-width

Constructor Detail

Localizer

protected Localizer(java.lang.String id,
                    java.lang.String designator,
                    VOR_ILS_DME_Frequency frequency,
                    CoordinateWorld3D coordinate,
                    AngleNavigational azimuth)
Creates an ILS localizer element.

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

getColor

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

Specified by:
getColor in class A_ChartElement
Returns:
the color

isOnLocalizer

public boolean isOnLocalizer(CoordinateWorld coordinate)
Determines whether a coordinate is within the localizer arc.

Parameters:
coordinate - - the coordinate
Returns:
the result

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