| java.lang.Object com.xoetrope.svg.XWaypoint
XWaypoint | public class XWaypoint (Code) | | 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.
$Revision: 1.2 $
|
Method Summary | |
public void | addNeighbour(XWaypoint w) Add a neighbour waypoint to this waypoint. | public String | getName() Return the name assigned to this waypoint. | public ArrayList | getNeighbours() Returns an ArrayList of all the neighbouring waypoints of this waypoint. | public XWaypoint | getParent() Returns the parent of this waypoint. | public double | getX() Return the x co-ordinate of this waypoint. | public double | getY() Return the y co-ordinate of this waypoint. | public void | setLocation(double x, double y) Set the location of the waypoint. | public void | setParent(XWaypoint w) Set the parent waypoint of the waypoint i.e a waypoint that hasa link to this waypoint. |
visited | protected boolean visited(Code) | | |
XWaypoint | public XWaypoint(String name)(Code) | | Creates a new instance of Waypoint
Parameters: name - a String specifying the name of the waypoint. |
XWaypoint | public XWaypoint(String name, double x, double y)(Code) | | Creates a new instance of Waypoint
Parameters: name - a String specifying the name of the waypoint. Parameters: x - double specifying the x coordinate of the waypoint. Parameters: y - double specifying the y coordinate of the waypoint. |
addNeighbour | public void addNeighbour(XWaypoint w)(Code) | | Add a neighbour waypoint to this waypoint.
w Waypoint object specifying the neighbouring waypoint.
|
getName | public String getName()(Code) | | Return the name assigned to this waypoint.
|
getNeighbours | public ArrayList getNeighbours()(Code) | | Returns an ArrayList of all the neighbouring waypoints of this waypoint.
|
getParent | public XWaypoint getParent()(Code) | | Returns the parent of this waypoint.
|
getX | public double getX()(Code) | | Return the x co-ordinate of this waypoint.
|
getY | public double getY()(Code) | | Return the y co-ordinate of this waypoint.
|
setLocation | public void setLocation(double x, double y)(Code) | | Set the location of the waypoint.
x double specifying the x co-ordinate of the waypoint.
y double specifying the y co-ordinate of the waypoint.
|
setParent | public void setParent(XWaypoint w)(Code) | | Set the parent waypoint of the waypoint i.e a waypoint that hasa link to this waypoint.
w Waypoint object specifying the parent waypoint.
|
|
|