Class PilotLocation

java.lang.Object
org.deltava.beans.stats.PilotLocation
All Implemented Interfaces:
GeoLocation, MapEntry, MarkerMapEntry

public class PilotLocation extends Object implements MarkerMapEntry
A bean to store pilot locations for displaying on a Google Map.
Since:
1.0
Version:
11.0
Author:
Luke
  • Constructor Details

    • PilotLocation

      public PilotLocation(Pilot usr, GeoLocation loc)
      Creates a new Pilot location object.
      Parameters:
      usr - the Pilot bean
      loc - the Pilot's location
  • Method Details

    • getLatitude

      public final double getLatitude()
      Returns the Pilot's latitude.
      Specified by:
      getLatitude in interface GeoLocation
      Returns:
      the latitude in degrees
      See Also:
    • getLongitude

      public final double getLongitude()
      Returns the Pilot's longitude.
      Specified by:
      getLongitude in interface GeoLocation
      Returns:
      the longitude in degrees
      See Also:
    • getUser

      public Pilot getUser()
      Returns the Pilot.
      Returns:
      the Pilot bean
    • setAllowDelete

      public void setAllowDelete(boolean allowDelete)
      Sets whether the infobox should have a link to allow map entry deletion.
      Parameters:
      allowDelete - TRUE if the deletion link should be added, otherwise FALSE
    • getIconColor

      public String getIconColor()
      Display the Google Map icon color.
      Specified by:
      getIconColor in interface MarkerMapEntry
      Returns:
      BLUE
    • getInfoBox

      public String getInfoBox()
      Returns the Google Map info box text.
      Specified by:
      getInfoBox in interface MapEntry
      Returns:
      the info box text