Copyright (c) Xoetrope Ltd., 2001-2006, This software is licensed under
the GNU Public License (GPL), please see license.txt for more details. If
you make commercial use of this software you must purchase a commercial
license from Xoetrope.
Creates a new instance of RoutePlotter
Used to plot a route on the svg map.
Parameters: imageMap - the XSvgImageMap instance that the routes will be plotted on. Parameters: waypoints - an ArrayList of waypoints used to construct routes.
Returns the bounding rectangle of the currently drawn route.
Rectangle2D.Double which bounds the current route.
plotRoute
public boolean plotRoute(int startWaypoint, int destinationWaypoint)(Code)
Plots a route from the current location to the selected waypoint.
i.e. the destination
Parameters: startWaypoint - an int specifying the the index of the starting waypoint. Parameters: destinationWaypoint - an int specifying the the index of the destination waypoint. a boolean stating whether a route can be plotted or not.