|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bbn.openmap.tools.roads.Visual com.bbn.openmap.tools.roads.Waypoint
public abstract class Waypoint
Nested Class Summary | |
---|---|
class |
Waypoint.Graphic
|
Field Summary | |
---|---|
protected LatLonPoint |
location
The location of this waypoint. |
protected java.awt.Point |
screenLocation
|
Fields inherited from class com.bbn.openmap.tools.roads.Visual |
---|
blinkState, layer |
Constructor Summary | |
---|---|
Waypoint(LatLonPoint loc,
RoadLayer layer)
create a Waypoint at a given location. |
Method Summary | |
---|---|
static java.lang.Class |
getGraphicClass()
|
double |
getLatitude()
|
LatLonPoint |
getLocation()
Get the location of this Waypoint. |
double |
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. |
Methods inherited from class com.bbn.openmap.tools.roads.Visual |
---|
blink, getVisual, setVisual |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected LatLonPoint location
protected java.awt.Point screenLocation
Constructor Detail |
---|
public Waypoint(LatLonPoint loc, RoadLayer layer)
loc
- the location of the WaypointMethod Detail |
---|
public 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
update
in class Visual
public RoadLayer getRoadLayer()
public void moveTo(java.awt.Point loc)
public double getLatitude()
public double getLongitude()
public abstract void render(OMGraphicList gl, boolean projectionIsNew)
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |