|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuavsim.navigationmodel.A_ChartElement
uavsim.navigationmodel.Airport.RunwayDescriptor
public class Airport.RunwayDescriptor
Defines a runway. One runway object captures both the specified runway and its reciprocal.
| 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 |
|---|
private final AngleNavigational _azimuth
private final Scaler _length
private final java.awt.Color RUNWAY_COLOR
| Constructor Detail |
|---|
public Airport.RunwayDescriptor(java.lang.String id,
CoordinateWorld3D coordinate,
AngleNavigational azimuth,
Scaler length)
id - - the unique element identifiercoordinate - - the coordinate of the originazimuth - - the azimuthlength - - the length relative to the airport radius| Method Detail |
|---|
public AngleNavigational getAzimuth()
public java.awt.Color getColor()
getColor in class A_ChartElementpublic Scaler getLength()
public void render(java.awt.Graphics2D graphics,
I_WorldMappable mapper,
boolean areDetailsVisible)
render in class A_ChartElementgraphics - - the graphics contextmapper - - the mapper that translates screen and world coordinatesareDetailsVisible - - whether low-level details that would clutter the display should be renderedpublic java.lang.String toString()
toString in class A_ChartElement
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||