|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.panama.spatial.router.Maneuver
This class defines a single maneuver on a route. A single maneuver can be a turn that the driver has to make or any other non-trivial decision necessary to take the correct route.
This class defines immutable objects and is thread-safe.
Constructor Summary |
Maneuver(java.lang.String narrative,
double distance,
java.awt.Image mapImg,
java.net.URL mapImgURL,
Point[] geometry)
Constructor. |
Method Summary |
Type | Method |
---|---|
double |
getDistance()
This returns the distance over which this maneuver spans. |
Point[] |
getManeuverGeometry()
This returns a list of points (lat/lon) along the maneuver. |
java.awt.Image |
getManeuverMap()
This returns a map of this maneuver. |
java.net.URL |
getManeuverMapURL()
This returns the URL of a map of this maneuver. |
java.lang.String |
getNarrative()
This returns a textual representation of the directions of this maneuver. |
java.lang.String |
toString()
This returns a textual representation of this Maneuver object. |
java.lang.String |
toString(boolean reqMapURL,
boolean reqGeometry)
This returns a textual representation of this Maneuver object. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Maneuver(java.lang.String narrative, double distance, java.awt.Image mapImg, java.net.URL mapImgURL, Point[] geometry)
narrative
- a String representing the textual directionsdistance
- a double representing the distance over which this
maneuver spansmapImg
- an Image representing a map of this maneuvermapImgURL
- a URL representing the URL of a map of this maneuvergeometry
- an array of PointImpl representing a list of points
(lat/lon)
along the maneuverMethod Detail |
public java.lang.String getNarrative()
public double getDistance()
public java.awt.Image getManeuverMap()
public java.net.URL getManeuverMapURL()
public Point[] getManeuverGeometry()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(boolean reqMapURL, boolean reqGeometry)
reqMapURL
- a boolean representing whether the map URLs should be
included in the textual representationreqGeometry
- a boolean representing whether the point lists
(lat/lon) should be included in the textual
representation
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |