Groovy Documentation

org.jdesktop.swingx.mapviewer
[Java] Class Waypoint

java.lang.Object
  org.jdesktop.beans.AbstractBean
      org.jdesktop.swingx.mapviewer.Waypoint

public class Waypoint
extends org.jdesktop.beans.AbstractBean

A Waypoint is a GeoPosition that can be drawn on a may using a WaypointPainter.

Authors:
joshy


Field Summary
private GeoPosition position

 
Constructor Summary
Waypoint()

Creates a new instance of Waypoint at lat/long 0,0

Waypoint(double latitude, double longitude)

Creates a new instance of Waypoint at the specified latitude and longitude

Waypoint(GeoPosition coord)

Creates a new instance of Waypoint at the specified GeoPosition

 
Method Summary
GeoPosition getPosition()

Get the current GeoPosition of this Waypoint

void setPosition(GeoPosition coordinate)

Set a new GeoPosition for this Waypoint

 
Methods inherited from class org.jdesktop.beans.AbstractBean
org.jdesktop.beans.AbstractBean#clone(), org.jdesktop.beans.AbstractBean#addPropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener), org.jdesktop.beans.AbstractBean#addPropertyChangeListener(java.beans.PropertyChangeListener), org.jdesktop.beans.AbstractBean#removePropertyChangeListener(java.beans.PropertyChangeListener), org.jdesktop.beans.AbstractBean#removePropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener), org.jdesktop.beans.AbstractBean#getPropertyChangeListeners(java.lang.String), org.jdesktop.beans.AbstractBean#getPropertyChangeListeners(), org.jdesktop.beans.AbstractBean#addVetoableChangeListener(java.lang.String, java.beans.VetoableChangeListener), org.jdesktop.beans.AbstractBean#addVetoableChangeListener(java.beans.VetoableChangeListener), org.jdesktop.beans.AbstractBean#removeVetoableChangeListener(java.lang.String, java.beans.VetoableChangeListener), org.jdesktop.beans.AbstractBean#removeVetoableChangeListener(java.beans.VetoableChangeListener), org.jdesktop.beans.AbstractBean#getVetoableChangeListeners(java.lang.String), org.jdesktop.beans.AbstractBean#getVetoableChangeListeners(), org.jdesktop.beans.AbstractBean#wait(), org.jdesktop.beans.AbstractBean#wait(long), org.jdesktop.beans.AbstractBean#wait(long, int), org.jdesktop.beans.AbstractBean#equals(java.lang.Object), org.jdesktop.beans.AbstractBean#toString(), org.jdesktop.beans.AbstractBean#hashCode(), org.jdesktop.beans.AbstractBean#getClass(), org.jdesktop.beans.AbstractBean#notify(), org.jdesktop.beans.AbstractBean#notifyAll()
 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Field Detail

position

private GeoPosition position


 
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


 

Groovy Documentation