Class Intersection
java.lang.Object
org.deltava.beans.navdata.NavigationDataBean
org.deltava.beans.navdata.Intersection
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<NavigationDataBean>
,GeoLocation
,IconMapEntry
,MapEntry
,MarkerMapEntry
,Cacheable
A bean to store Intersection data.
- Since:
- 1.0
- Version:
- 11.4
- Author:
- Luke
- See Also:
-
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
ConstructorsConstructorDescriptionIntersection
(String code, double lat, double lon) Creates a new Intersection object. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the Google Earth icon code.Returns the icon color for this entry if displayed in a Google Map.Returns the text to display in this marker's infobox if displayed in a Google Map.final String
getName()
Returns the Intersection's name.int
Returns the Google Earth palette code.static Intersection
Parses a North Atlantic Track latitude/longitude waypoint code.final void
Updates the Intersection's name.Methods inherited from class org.deltava.beans.navdata.NavigationDataBean
cacheKey, clone, compareTo, create, create, equals, getAirway, getCode, getHTMLPosition, getHTMLTitle, getLatitude, getLongitude, getPosition, getRegion, getType, hashCode, isCoordinates, isInTerminalRoute, setAirway, setCode, setRegion, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.deltava.beans.GeoLocation
distanceFeet, distanceTo
-
Constructor Details
-
Intersection
Creates a new Intersection object.- Parameters:
code
- the intersection codelat
- the latitude in degreeslon
- the longitude in degrees
-
-
Method Details
-
getName
Returns the Intersection's name. NOT IMPLEMENTED- Overrides:
getName
in classNavigationDataBean
- Returns:
- the name
- Throws:
UnsupportedOperationException
- always- See Also:
-
setName
Updates the Intersection's name. NOT IMPLEMENTED- Overrides:
setName
in classNavigationDataBean
- Parameters:
name
- the name- Throws:
UnsupportedOperationException
- always- See Also:
-
getIconColor
Description copied from interface:MarkerMapEntry
Returns the icon color for this entry if displayed in a Google Map.- Returns:
- the icon color
-
getPaletteCode
public int getPaletteCode()Description copied from interface:IconMapEntry
Returns the Google Earth palette code.- Returns:
- the palette code
-
getIconCode
public int getIconCode()Description copied from interface:IconMapEntry
Returns the Google Earth icon code.- Returns:
- the icon code within the palette
-
getInfoBox
-
parse
Parses a North Atlantic Track latitude/longitude waypoint code.- Parameters:
code
- the waypoint code- Returns:
- an Intersection
- Throws:
IllegalArgumentException
- if the code is not in the format NN/WW or NNWWNNullPointerException
- if code is nullNumberFormatException
- if the latitude/longitude cannot be parsed
-