faa.tg.atcview.display
Class DisplayRange
java.lang.Object
faa.tg.units.AMeasure
faa.tg.units.Distance
faa.tg.atcview.display.DisplayRange
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<AMeasure>
public class DisplayRange
- extends Distance
This class provides DisplayRange which is the size from the center to
an edge of the display in nm. It helps determine what the ratio of
pixels to nm is.
See the source: DisplayRange.java
- Version:
- $Id: DisplayRange.java,v 1.1 2008/06/19 18:29:20 lonnies Exp $
- Author:
- Dan Warburton, FAA/ACB-860
- See Also:
- Serialized Form
| Fields inherited from class faa.tg.units.Distance |
FIVE_NM, FT_1, FT_10, FT_1000, FT_3000, FT_5, FT_50, FT_500, NM_1, NM_10, NM_100, NM_1000, NM_20, NM_3, NM_4, NM_5, NM_50, NM_HALF, ONE_FT, ZERO |
| Fields inherited from class faa.tg.units.AMeasure |
DEC0, DEC0_, DEC00, DEC000, DEC1, DEC1_, DEC12, DEC12_, DEC1L, DEC1L_, DEC2, DEC2_, DEC3, DEC3_, DEC4, DEC4_, DEC5, DEC5_, DEC6, DEC6_, DEC7, DEC7_, DEC9, DEC9_, itsValue, TIME_FRACTION |
| Methods inherited from class faa.tg.units.Distance |
abs, add, as, eq, ge, gt, le, lt, main, parseDistance, ratio, sub, toDraText, toString |
| Methods inherited from class faa.tg.units.AMeasure |
absoluteValue, add, as, as, clone, compareTo, debug, div, eq, equals, ge, getAUnit, getCanonicalUnit, getCanonicalValue, getInitialUnit, getUnitClass, gt, hashCode, isBetween, le, lt, mul, ratio, sub, toAMeasure, toString, toString |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
serialVersionUID
static final long serialVersionUID
- See Also:
- Constant Field Values
CVS_VERSION_ID
public static final java.lang.String CVS_VERSION_ID
- The CVS Version ID
- See Also:
- Constant Field Values
DisplayRange
public DisplayRange(double value,
DistanceUnits units)
- Constructor
- Parameters:
value - the magnitude of DisplayRange as a doubleunits - the units of the value that will be stored (ex: km)
DisplayRange
public DisplayRange(java.lang.String str)
throws java.lang.NumberFormatException
- This contructor turns a string into a valid display range.
- Parameters:
str - The String to make into a valid display range.
- Throws:
java.lang.NumberFormatException
add
public DisplayRange add(double value)