Package nl.bebr.mapviewer.data
Class Waypoint
- java.lang.Object
-
- nl.bebr.mapviewer.data.util.AbstractBean
-
- nl.bebr.mapviewer.data.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 Summary
Constructors Constructor Description Waypoint()Creates a new instance of Waypoint at lat/long 0,0Waypoint(double latitude, double longitude)Creates a new instance of Waypoint at the specified latitude and longitudeWaypoint(GeoPosition coord)Creates a new instance of Waypoint at the specified GeoPosition
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GeoPositiongetPosition()Get the current GeoPosition of this WaypointvoidsetPosition(GeoPosition coordinate)Set a new GeoPosition for this Waypoint-
Methods inherited from class nl.bebr.mapviewer.data.util.AbstractBean
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, clone, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, hasPropertyChangeListeners, hasVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener
-
-
-
-
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 latitudelongitude- 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
-
-