faa.tg.atcview.display
Class DisplayRange

java.lang.Object
  extended by faa.tg.units.AMeasure
      extended by faa.tg.units.Distance
          extended by 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

Field Summary
static java.lang.String CVS_VERSION_ID
          The CVS Version ID
(package private) static long serialVersionUID
           
 
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
 
Constructor Summary
DisplayRange(double value, DistanceUnits units)
          Constructor
DisplayRange(java.lang.String str)
          This contructor turns a string into a valid display range.
 
Method Summary
 DisplayRange add(double value)
           
 
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
 

Field Detail

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
Constructor Detail

DisplayRange

public DisplayRange(double value,
                    DistanceUnits units)
Constructor

Parameters:
value - the magnitude of DisplayRange as a double
units - 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
Method Detail

add

public DisplayRange add(double value)