Class Intersection
java.lang.Object
org.deltava.beans.navdata.NavigationDataBean
org.deltava.beans.navdata.Intersection
- All Implemented Interfaces:
Serializable, Cloneable, Comparable<NavigationDataBean>, GeoLocation, IconMapEntry, LabelMapEntry, 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 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 TypeMethodDescriptionintReturns 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 StringgetName()Returns the Intersection's name.intReturns the Google Earth palette code.static IntersectionParses a North Atlantic Track latitude/longitude waypoint code.final voidUpdates the Intersection's name.Methods inherited from class NavigationDataBean
cacheKey, clone, compareTo, create, create, equals, getAirway, getCode, getHTMLPosition, getHTMLTitle, getLabel, getLatitude, getLongitude, getRegion, getType, hashCode, isCoordinates, isInTerminalRoute, setAirway, setCode, setRegion, toStringMethods inherited from interface 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:
getNamein classNavigationDataBean- Returns:
- the name
- Throws:
UnsupportedOperationException- always- See Also:
-
setName
Updates the Intersection's name. NOT IMPLEMENTED- Overrides:
setNamein classNavigationDataBean- Parameters:
name- the name- Throws:
UnsupportedOperationException- always- See Also:
-
getIconColor
Description copied from interface:MarkerMapEntryReturns the icon color for this entry if displayed in a Google Map.- Returns:
- the icon color
-
getPaletteCode
public int getPaletteCode()Description copied from interface:IconMapEntryReturns the Google Earth palette code.- Returns:
- the palette code
-
getIconCode
public int getIconCode()Description copied from interface:IconMapEntryReturns 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
-