public abstract class Waypoint extends Visual implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
class |
Waypoint.Graphic |
Modifier and Type | Field and Description |
---|---|
protected LatLonPoint |
location
The location of this waypoint.
|
protected java.awt.Point |
screenLocation |
blinkState, layer
Constructor and Description |
---|
Waypoint(LatLonPoint loc,
RoadLayer layer)
create a Waypoint at a given location.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.Class |
getGraphicClass() |
float |
getLatitude() |
LatLonPoint |
getLocation()
Get the location of this Waypoint.
|
float |
getLongitude() |
boolean |
getModified()
Get the state of the modified flag.
|
RoadLayer |
getRoadLayer()
Get the RoadLayer of which this is a part.
|
java.awt.Point |
getScreenLocation() |
void |
moveTo(java.awt.Point loc)
Move this Intersection a distance on the screen.
|
abstract void |
render(OMGraphicList gl,
boolean projectionIsNew)
Add the visual representation of this Waypoint to the graphics list.
|
void |
setLocation(LatLonPoint loc)
Set the location of this Waypoint.
|
void |
setModified(boolean newValue)
Set the modified flag
|
void |
setScreenLocation(java.awt.Point loc) |
java.lang.String |
toString() |
void |
update()
Mark this Visual as needing to have its visual representation
updated.
|
protected LatLonPoint location
protected java.awt.Point screenLocation
public Waypoint(LatLonPoint loc, RoadLayer layer)
loc
- the location of the Waypointpublic static java.lang.Class getGraphicClass()
public void setModified(boolean newValue)
public boolean getModified()
public LatLonPoint getLocation()
public void setLocation(LatLonPoint loc)
loc
- the new location.public java.awt.Point getScreenLocation()
public void setScreenLocation(java.awt.Point loc)
public void update()
Visual
public RoadLayer getRoadLayer()
public void moveTo(java.awt.Point loc)
public float getLatitude()
public float getLongitude()
public abstract void render(OMGraphicList gl, boolean projectionIsNew)
public java.lang.String toString()
toString
in class java.lang.Object
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details