|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuavsim.navigationmodel.A_ChartElement
uavsim.navigationmodel.Route
public class Route
Defines a route as an ordered collection of waypoints.
| Field Summary | |
|---|---|
private java.util.List<Waypoint> |
_waypoints
the waypoints |
private static java.awt.Color |
LINE_COLOR
the color of the route line |
private static Latitude |
LINE_WIDTH
the width of the route line |
| Fields inherited from class uavsim.navigationmodel.A_ChartElement |
|---|
_anchor, _coordinate, _id |
| Constructor Summary | |
|---|---|
Route(java.lang.String id)
Creates a route chart element. |
|
| Method Summary | |
|---|---|
void |
addWaypoint(Waypoint waypoint)
Adds a waypoint to the route. |
java.awt.Color |
getColor()
Gets the color of the glyph. |
java.util.List<Waypoint> |
getWaypoints()
Gets the waypoints. |
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 java.util.List<Waypoint> _waypoints
private static final java.awt.Color LINE_COLOR
private static final Latitude LINE_WIDTH
| Constructor Detail |
|---|
public Route(java.lang.String id)
id - - the unique element identifier| Method Detail |
|---|
public void addWaypoint(Waypoint waypoint)
waypoint - - the waypointpublic java.awt.Color getColor()
getColor in class A_ChartElementpublic java.util.List<Waypoint> getWaypoints()
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 | ||||||||