|
||||||||||
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 com.bbn.openmap.tools.roads.Intersection
public class Intersection
Nested Class Summary | |
---|---|
class |
Intersection.Graphic
Inner class for the visual representation of an Intersection. |
Field Summary | |
---|---|
static int |
GRID
|
Fields inherited from class com.bbn.openmap.tools.roads.Waypoint |
---|
location, screenLocation |
Fields inherited from class com.bbn.openmap.tools.roads.Visual |
---|
blinkState, layer |
Constructor Summary | |
---|---|
Intersection(LatLonPoint loc,
RoadLayer layer)
Create an Intersection at a given location. |
|
Intersection(LatLonPoint loc,
java.lang.String name,
RoadLayer layer)
|
Method Summary | |
---|---|
void |
addRoad(Road road)
Add a road to this intersection. |
void |
clear()
|
boolean |
equals(java.lang.Object obj)
Override equals so that two Intersections at the same location are the same Intersection. |
static java.lang.Class |
getGraphicClass()
|
static java.lang.String |
getLatLonPointName(LatLonPoint loc)
|
java.lang.String |
getName()
|
Road |
getRoad(int ix)
|
int |
getRoadCount()
|
java.util.Enumeration |
getRoads()
Get an enumeration of the roads at this intersection. |
boolean |
getTerminalStatus()
|
int |
hashCode()
Override hashCode so that two Intersections at the same location have the same hashcode. |
void |
merge(Intersection other)
Merge another intersection with this one. |
void |
removeRoad(Road road)
|
void |
render(OMGraphicList gl,
boolean forceNew)
Render the graphics for this intersection. |
void |
renderRoads(OMGraphicList gl,
boolean forceNew)
Render the graphics for the roads leaving this intersection. |
void |
setName(java.lang.String name)
|
void |
setTerminalStatus(boolean yes)
|
Intersection |
startMove(boolean shifted)
|
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.Waypoint |
---|
getLatitude, getLocation, getLongitude, getModified, getRoadLayer, getScreenLocation, moveTo, setLocation, setModified, setScreenLocation |
Methods inherited from class com.bbn.openmap.tools.roads.Visual |
---|
blink, getVisual, setVisual |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.bbn.openmap.tools.roads.RoadObject |
---|
blink, moveTo |
Field Detail |
---|
public static int GRID
Constructor Detail |
---|
public Intersection(LatLonPoint loc, RoadLayer layer)
loc
- the location of the intersection.public Intersection(LatLonPoint loc, java.lang.String name, RoadLayer layer)
Method Detail |
---|
public static java.lang.Class getGraphicClass()
public static java.lang.String getLatLonPointName(LatLonPoint loc)
public java.lang.String getName()
public void setName(java.lang.String name)
public void addRoad(Road road)
road
- The road to be added.public void removeRoad(Road road)
public int getRoadCount()
public void merge(Intersection other)
public void clear()
public java.util.Enumeration getRoads()
public Road getRoad(int ix)
public void setTerminalStatus(boolean yes)
public boolean getTerminalStatus()
public void render(OMGraphicList gl, boolean forceNew)
render
in interface RoadObject
render
in class Waypoint
public void renderRoads(OMGraphicList gl, boolean forceNew)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public Intersection startMove(boolean shifted)
public void update()
Visual
update
in class Waypoint
public java.lang.String toString()
toString
in class Waypoint
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |