|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bbn.openmap.tools.roads.Road
public class Road
Constructor Summary | |
---|---|
Road(int id,
java.lang.String name,
Intersection from,
Intersection to,
RoadClass roadClass,
RoadLayer roadLayer)
Create a road between two Intersections. |
Method Summary | |
---|---|
void |
blink(boolean newState)
|
void |
block()
|
void |
changeIntersection(Intersection oldIntersection,
Intersection newIntersection)
|
void |
checkPoints()
|
void |
deleteRoadPoint(RoadPoint rp)
|
Intersection |
getFirstIntersection()
|
int |
getID()
Accessor for the ID property. |
double |
getLengthInKilometers()
|
LatLonPoint |
getLocationAtKilometer(double kilometers)
|
boolean |
getModified()
Get the state of the modified flag. |
java.lang.String |
getName()
|
Intersection |
getOtherIntersection(Intersection intersection)
|
Waypoint[] |
getPoints()
|
RoadPoint[] |
getPointsAfter(RoadPoint wp)
|
RoadPoint[] |
getPointsBefore(RoadPoint wp)
|
RoadClass |
getRoadClass()
|
java.lang.String |
getRoadClassName()
|
RoadLayer |
getRoadLayer()
|
RoadPoint[] |
getRoadPoints()
|
Intersection |
getSecondIntersection()
|
double |
getTraverseHours()
|
Waypoint |
getWaypoint(int ix)
|
void |
insertRoadPointAt(RoadPoint wp,
int ix)
|
boolean |
isBlocked()
|
boolean |
isRoute()
|
void |
isRoute(boolean yes)
|
boolean |
isSelected()
|
void |
moveTo(java.awt.Point loc)
|
void |
render(OMGraphicList gl,
boolean projectionIsNew)
|
void |
setIntersections(Intersection from,
Intersection to)
|
void |
setModified(boolean newValue)
Set the state of the modified flag. |
void |
setName(java.lang.String newName)
|
void |
setRoadClass(RoadClass newClass)
|
void |
setRoadPoints(RoadPoint[] innerPoints)
|
void |
setSelected(boolean selected)
|
java.lang.String |
toString()
|
void |
unblock()
|
void |
updateLines()
Mark this Road as needing a new visual representation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Road(int id, java.lang.String name, Intersection from, Intersection to, RoadClass roadClass, RoadLayer roadLayer)
id
- a unique, integer identifier of this road.name
- a name for this road.from
- the intersection from which this road leaves.to
- the intersection to which this road goes.roadClass
- the class of this road.roadLayer
- the RoadLayer we belong to.Method Detail |
---|
public double getLengthInKilometers()
public double getTraverseHours()
public LatLonPoint getLocationAtKilometer(double kilometers)
public void setModified(boolean newValue)
newValue
- the new setting.public boolean getModified()
public void block()
public void unblock()
public boolean isBlocked()
public void blink(boolean newState)
blink
in interface RoadObject
public int getID()
public java.lang.String getName()
public void setName(java.lang.String newName)
public RoadClass getRoadClass()
public void setRoadClass(RoadClass newClass)
public java.lang.String getRoadClassName()
public void isRoute(boolean yes)
public boolean isRoute()
public RoadLayer getRoadLayer()
public void setIntersections(Intersection from, Intersection to)
public void setRoadPoints(RoadPoint[] innerPoints)
public void checkPoints()
public RoadPoint[] getRoadPoints()
public void insertRoadPointAt(RoadPoint wp, int ix)
public void deleteRoadPoint(RoadPoint rp)
public Intersection getFirstIntersection()
public Intersection getSecondIntersection()
public Intersection getOtherIntersection(Intersection intersection)
public void changeIntersection(Intersection oldIntersection, Intersection newIntersection)
public Waypoint getWaypoint(int ix)
public Waypoint[] getPoints()
public RoadPoint[] getPointsBefore(RoadPoint wp)
public RoadPoint[] getPointsAfter(RoadPoint wp)
public void updateLines()
public void moveTo(java.awt.Point loc)
moveTo
in interface RoadObject
public void render(OMGraphicList gl, boolean projectionIsNew)
render
in interface RoadObject
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isSelected()
public void setSelected(boolean selected)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |