uavsim.navigationmodel
Class Airport.RunwayDescriptor

java.lang.Object
  extended by uavsim.navigationmodel.A_ChartElement
      extended by uavsim.navigationmodel.Airport.RunwayDescriptor
Enclosing class:
Airport

public class Airport.RunwayDescriptor
extends A_ChartElement

Defines a runway. One runway object captures both the specified runway and its reciprocal.

Author:
Dan Tappan [17.07.11]

Field Summary
private  AngleNavigational _azimuth
          the azimuth
private  Scaler _length
          the length relative to the airport radius
private  java.awt.Color RUNWAY_COLOR
          the color of the glyph
 
Fields inherited from class uavsim.navigationmodel.A_ChartElement
_anchor, _coordinate, _id
 
Constructor Summary
Airport.RunwayDescriptor(java.lang.String id, CoordinateWorld3D coordinate, AngleNavigational azimuth, Scaler length)
          Creates a runway chart element.
 
Method Summary
 AngleNavigational getAzimuth()
          Gets the azimuth.
 java.awt.Color getColor()
          Gets the color of the glyph.
 Scaler getLength()
          Gets the length relative to the airport radius.
 void render(java.awt.Graphics2D graphics, I_WorldMappable mapper, boolean areDetailsVisible)
          Renders the glyph.
 java.lang.String toString()
          
 
Methods inherited from class uavsim.navigationmodel.A_ChartElement
areDetailsVisible, getCoordinate, getDesignator, getFrequency, getID, hasFrequency, renderLabel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_azimuth

private final AngleNavigational _azimuth
the azimuth


_length

private final Scaler _length
the length relative to the airport radius


RUNWAY_COLOR

private final java.awt.Color RUNWAY_COLOR
the color of the glyph

Constructor Detail

Airport.RunwayDescriptor

public Airport.RunwayDescriptor(java.lang.String id,
                                CoordinateWorld3D coordinate,
                                AngleNavigational azimuth,
                                Scaler length)
Creates a runway chart element.

Parameters:
id - - the unique element identifier
coordinate - - the coordinate of the origin
azimuth - - the azimuth
length - - the length relative to the airport radius
Method Detail

getAzimuth

public AngleNavigational getAzimuth()
Gets the azimuth.

Returns:
the azimuth

getColor

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

Specified by:
getColor in class A_ChartElement
Returns:
the color

getLength

public Scaler getLength()
Gets the length relative to the airport radius.

Returns:
the length

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

toString

public java.lang.String toString()

Overrides:
toString in class A_ChartElement