Xoetrope

 Wiki : XWaypoint

HomePage :: Categories :: PageIndex :: RecentChanges :: RecentlyCommented :: Login/Register
Carousel logo

XWaypoint

class com.xoetrope.svg.XWaypoint

A waypoint class which stores a waypoint's location and it's neighbouring waypoints.

1. Constructors


public XWaypoint( String name )

Constructor which takes the name of the waypoint instance.

public XWaypoint( String name, double x, double y )

Constructor which takes the name of the waypoint instance and it location in x and y coordinates.

2. Methods


1. setLocation

public void setLocation( double x, double y )

Sets the location if the waypoint instance.

2. getName

public String getName()

Returns the name of the waypoint.

2. getX

public double getX()

Returns the x-coordinate of the waypoint.

3. getX

public double getY()


Returns the y-coordinate of the waypoint.

4. addNeighbour

public void addNeighbour( XWaypoint w )

Adds a neighbouring waypoint to the waypoints list of neighbouring waypoints.

5. setParent

public void setParent( XWaypoint w )

Sets the parent waypoint of this waypoint.

5. getNeighbours

public ArrayList getNeighbours()

Returns the list of neighbouring waypoints associated with this waypoint.

5. getParent

public XWaypoint getParent()

Returns the parent waypoint of this waypoint.

There are no comments on this page. [Add comment]

Page was generated in 0.6436 seconds