Class Waypoint

  • Direct Known Subclasses:
    DefaultWaypoint

    public class Waypoint
    extends AbstractBean
    A Waypoint is a GeoPosition that can be drawn on a may using a WaypointPainter.
    Author:
    joshy
    • Constructor Detail

      • Waypoint

        public Waypoint()
        Creates a new instance of Waypoint at lat/long 0,0
      • Waypoint

        public Waypoint​(double latitude,
                        double longitude)
        Creates a new instance of Waypoint at the specified latitude and longitude
        Parameters:
        latitude - new latitude
        longitude - new longitude
      • Waypoint

        public Waypoint​(GeoPosition coord)
        Creates a new instance of Waypoint at the specified GeoPosition
        Parameters:
        coord - a GeoPosition to initialize the new Waypoint
    • Method Detail

      • getPosition

        public GeoPosition getPosition()
        Get the current GeoPosition of this Waypoint
        Returns:
        the current position
      • setPosition

        public void setPosition​(GeoPosition coordinate)
        Set a new GeoPosition for this Waypoint
        Parameters:
        coordinate - a new position