|
|||||||||
| 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
public class Airport
Defines an airport as a collection of airport elements.
| Nested Class Summary | |
|---|---|
class |
Airport.RunwayDescriptor
Defines a runway. |
| Field Summary | |
|---|---|
protected java.lang.String |
_designator
the airport designator |
private java.util.List<Airport.RunwayDescriptor> |
_runways
the runways |
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_ChartElement |
|---|
_anchor, _coordinate, _id |
| Constructor Summary | |
|---|---|
Airport(java.lang.String id,
CoordinateWorld3D coordinate,
java.lang.String designator)
Creates an airport chart element. |
|
| Method Summary | |
|---|---|
java.awt.Color |
getColor()
Gets the color of the glyph. |
java.lang.String |
getDesignator()
Gets the airport designator. |
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, getFrequency, getID, hasFrequency, renderLabel |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final java.lang.String _designator
private final java.util.List<Airport.RunwayDescriptor> _runways
private static final java.awt.Color COLOR
private static final Latitude RADIUS
| Constructor Detail |
|---|
public Airport(java.lang.String id,
CoordinateWorld3D coordinate,
java.lang.String designator)
id - - the unique element identifiercoordinate - - the coordinate of the origindesignator - - the airport designator| Method Detail |
|---|
public java.awt.Color getColor()
getColor in class A_ChartElementpublic java.lang.String getDesignator()
getDesignator in class A_ChartElement
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 | ||||||||