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_MILESModifier and TypeFieldDescriptionstatic final intFormat the Longitude and Latitude.static final doubleSize of a degree in feet.static final doubleSize of a degree in miles.static final intSize of a mile in feet.static final String[]Latitude directions.static final intFormat the Latitude only.static final String[]Longitude directions.static final intFormat the Longitude only.static final intRadius of the Earth in miles.Fields inherited from interface MapEntry
BLUE, BROWN, COLORS, GREEN, GREY, ORANGE, PURPLE, RED, WHITE, YELLOWModifier and TypeFieldDescriptionstatic final StringBlue Google Maps icon, displayed as $static/img/maps/point_blue.pngstatic final StringBrown Google Maps icon, displayed as $static/img/maps/point_brown.pngstatic final String[]All Google Maps icon colors.static final StringGreen Google Maps icon, displayed as $static/img/maps/point_green.pngstatic final StringGrey Google Maps icon, displayed as $static/img/maps/point_grey.pngstatic final StringOrange Google Maps icon, displayed as $static/img/maps/point_orange.pngstatic final StringPurple Google Maps icon, displayed as $static/img/maps/point_purple.pngstatic final StringRed Google Maps icon, displayed as $static/img/maps/point_red.pngstatic final StringWhite Google Maps icon, displayed as $static/img/maps/point_white.pngstatic final StringYellow Google Maps icon, displayed as $static/img/maps/point_yellow.png -
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, toStringModifier and TypeMethodDescriptioncacheKey()Returns the cache key for this object.clone()intCompares two objects by comparing their codes.static NavigationDataBeanCreats a bean from a unique ID that matches the ACARS dispatch client.static NavigationDataBeanCreates a bean from a type, latitude and longitude.booleanReturns if this waypoint is on an Airway.getCode()Returns the object's code.protected StringHelper method to return the Latitude/Longitude for HTML infoboxes.protected StringHelper method to return the item type and code for HTML infoboxes.getLabel()Returns the label text.final doubleReturns the latitude of this location.final doubleReturns the longitude of this location.final StringReturns the ICAO region code for this entry.final NavaidgetType()Returns the object's type.inthashCode()static CodeTypeisCoordinates(String code) Returns whether a waypoint code is actually encoded coordinates.booleanReturns whether this waypoint is part of a terminal route.voidUpdates if this entry is on an airway.voidUpdates the object's code.voidUpdates the ICAO region code for this entry.toString()Returns this navigation aid's unique ID in a format that matches the ACARS dispatch client.Methods inherited from interface GeoLocation
distanceFeet, distanceToModifier and TypeMethodDescriptiondefault intCalculates the distance between two points in feet.default intCalculates the distance between two GeoLocations.
-
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
-