- java.lang.Object
-
- org.controlsfx.control.WorldMapView.Location
-
- Enclosing class:
- WorldMapView
public static class WorldMapView.Location extends Object
An object using latitude and longitude information to specify a location in the real world.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetLatitude()Returns the latitude of the location.doublegetLongitude()Returns the longitude of the location.StringgetName()Returns the name of the location.
-
-
-
Constructor Detail
-
Location
public Location(double latitude, double longitude)Constructs a new location.- Parameters:
latitude- the latitude datalongitude- the longitude data
-
Location
public Location(String name, double latitude, double longitude)
Constructs a new location.- Parameters:
name- the name of the location (e.g. "Zurich")latitude- the latitude datalongitude- the longitude data
-
-
Method Detail
-
getName
public final String getName()
Returns the name of the location.- Returns:
- the location's name
-
getLatitude
public final double getLatitude()
Returns the latitude of the location.- Returns:
- the latitude
-
getLongitude
public final double getLongitude()
Returns the longitude of the location.- Returns:
- the longitude
-
-