java.lang.Object
org.controlsfx.control.WorldMapView.Location
- Enclosing class:
WorldMapView
An object using latitude and longitude information to specify a location
in the real world.
- See Also:
-
Constructor Details
-
Location
public Location(double latitude, double longitude) Constructs a new location.- Parameters:
latitude
- the latitude datalongitude
- the longitude data
-
Location
Constructs a new location.- Parameters:
name
- the name of the location (e.g. "Zurich")latitude
- the latitude datalongitude
- the longitude data
-
-
Method Details
-
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
-