|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nasa.worldwind.avlist.AVListImpl
gov.nasa.worldwind.util.UnitsFormat
gov.nasa.worldwind.symbology.milstd2525.MilStd2525UnitsFormat
public class MilStd2525UnitsFormat
Units format configured to format locations and altitudes according to the defaults defined by MIL-STD-2525C.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
MilStd2525UnitsFormat()
Construct an instance that displays length in kilometers, area in square kilometers and angles in degrees, minutes, seconds. |
|
MilStd2525UnitsFormat(String lengthUnits,
String areaUnits)
Constructs an instance that display length and area in specified units, and angles in degrees, minutes, seconds. |
|
MilStd2525UnitsFormat(String lengthUnits,
String areaUnits,
boolean showDMS)
Constructs an instance that display length and area in specified units, and angles in a specified format. |
|
| Method Summary | |
|---|---|
String |
latitude(Angle angle)
Format a latitude value. |
String |
latLon(LatLon latlon)
Format angles of latitude and longitude according to the current angle format. |
String |
longitude(Angle angle)
Format a longitude value. |
void |
setAltitudeUnits(String altitudeUnits)
Specifies the units in which to display altitude values. |
protected void |
setDefaultLabels()
Establishes the labels to use when displaying values other than length and area. |
| Methods inherited from class gov.nasa.worldwind.util.UnitsFormat |
|---|
angle, angleNL, area, areaNL, eyeAltitude, eyeAltitudeNL, getAltitudeUnits, getAltitudeUnitsMultiplier, getAltitudeUnitsSymbol, getAreaUnits, getAreaUnitsMultiplier, getAreaUnitsSymbol, getAreaUnitsSystem, getFormat, getLabel, getLengthUnits, getLengthUnitsMultiplier, getLengthUnitsSymbol, getLengthUnitsSystem, heading, heading, headingNL, headingNL, isShowDMS, latitudeNL, latLonNL, length, lengthNL, longitudeNL, pitch, pitchNL, setAreaUnits, setDefaultFormats, setFormat, setLabel, setLengthUnits, setShowDMS, setUnitsSystem, terrainHeight, terrainHeightNL, utmEasting, utmEastingNL, utmNorthing, utmNorthingNL, utmZone, utmZoneNL |
| Methods inherited from class gov.nasa.worldwind.avlist.AVListImpl |
|---|
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getBooleanValue, getBooleanValue, getChangeSupport, getDoubleValue, getDoubleValue, getEntries, getIntegerValue, getIntegerValue, getLongValue, getLongValue, getRestorableStateForAVPair, getStringValue, getStringValue, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MilStd2525UnitsFormat()
public MilStd2525UnitsFormat(String lengthUnits,
String areaUnits)
lengthUnits - the desired length units. Available length units are METERS, KILOMETERS, MILES,
NAUTICAL_MILES, YARDS and FEETareaUnits - the desired area units. Available area units are SQUARE_METERS, SQUARE_KILOMETERS,
HECTARE, ACRE, SQUARE_YARD and SQUARE_FEET.
- Throws:
IllegalArgumentException - if either lengthUnits or areaUnits is null.
public MilStd2525UnitsFormat(String lengthUnits,
String areaUnits,
boolean showDMS)
lengthUnits - the desired length units. Available length units are METERS, KILOMETERS, MILES,
NAUTICAL_MILES, YARDS and FEETareaUnits - the desired area units. Available area units are SQUARE_METERS, SQUARE_KILOMETERS,
HECTARE, ACRE, SQUARE_YARD and SQUARE_FEET.showDMS - true if the desired angle format is degrees-minutes-seconds, false if the format is decimal
degrees.
- Throws:
IllegalArgumentException - if either lengthUnits or areaUnits is null.| Method Detail |
|---|
public String latitude(Angle angle)
latitude in class UnitsFormatangle - the angle to format.
IllegalArgumentException - if the angle is null.public String latLon(LatLon latlon)
UnitsFormat.LABEL_LATLON_LAT, UnitsFormat.LABEL_LATLON_LON and angle
format.
latLon in class UnitsFormatlatlon - the angles to format.
public String longitude(Angle angle)
longitude in class UnitsFormatangle - the angle to format.
IllegalArgumentException - if the angle is null.public void setAltitudeUnits(String altitudeUnits)
setAltitudeUnits in class UnitsFormataltitudeUnits - the desired altitude units. See UnitsFormat.UnitsFormat(String, String, boolean) for the list
of those available.protected void setDefaultLabels()
setDefaultLabels in class UnitsFormat
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||