Class PilotLocation
java.lang.Object
org.deltava.beans.stats.PilotLocation
- All Implemented Interfaces:
GeoLocation
,MapEntry
,MarkerMapEntry
A bean to store pilot locations for displaying on a Google Map.
- Since:
- 1.0
- Version:
- 11.0
- Author:
- Luke
-
Field Summary
Fields inherited from interface org.deltava.beans.GeoLocation
ALL, DEGREE_FEET, DEGREE_MILES, FEET_MILES, LAT_DIRECTIONS, LATITUDE, LON_DIRECTIONS, LONGITUDE, RADIAN_MILES
-
Constructor Summary
ConstructorsConstructorDescriptionPilotLocation
(Pilot usr, GeoLocation loc) Creates a new Pilot location object. -
Method Summary
Modifier and TypeMethodDescriptionDisplay the Google Map icon color.Returns the Google Map info box text.final double
Returns the Pilot's latitude.final double
Returns the Pilot's longitude.getUser()
Returns the Pilot.void
setAllowDelete
(boolean allowDelete) Sets whether the infobox should have a link to allow map entry deletion.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.deltava.beans.GeoLocation
distanceFeet, distanceTo
-
Constructor Details
-
PilotLocation
Creates a new Pilot location object.- Parameters:
usr
- the Pilot beanloc
- the Pilot's location
-
-
Method Details
-
getLatitude
public final double getLatitude()Returns the Pilot's latitude.- Specified by:
getLatitude
in interfaceGeoLocation
- Returns:
- the latitude in degrees
- See Also:
-
getLongitude
public final double getLongitude()Returns the Pilot's longitude.- Specified by:
getLongitude
in interfaceGeoLocation
- Returns:
- the longitude in degrees
- See Also:
-
getUser
-
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
Display the Google Map icon color.- Specified by:
getIconColor
in interfaceMarkerMapEntry
- Returns:
- BLUE
-
getInfoBox
Returns the Google Map info box text.- Specified by:
getInfoBox
in interfaceMapEntry
- Returns:
- the info box text
-