Class WorldMapView.Location

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.
See Also:
  • Constructor Details

    • Location

      public Location(double latitude, double longitude)
      Constructs a new location.
      Parameters:
      latitude - the latitude data
      longitude - 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 data
      longitude - the longitude data
  • Method Details

    • 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