NASA World Wind

gov.nasa.worldwind.render.airspaces
Class ScreenSizeDetailLevel

java.lang.Object
  extended by gov.nasa.worldwind.avlist.AVListImpl
      extended by gov.nasa.worldwind.render.airspaces.ScreenSizeDetailLevel
All Implemented Interfaces:
AVList, DetailLevel, Comparable<DetailLevel>

public class ScreenSizeDetailLevel
extends AVListImpl
implements DetailLevel


Field Summary
 
Fields inherited from class gov.nasa.worldwind.avlist.AVListImpl
changeSupport
 
Constructor Summary
ScreenSizeDetailLevel(double minimumScreenSize, String key)
           
 
Method Summary
 int compareTo(DetailLevel level)
           
static double[] computeDefaultScreenSizeRamp(int levels)
           
static double[] computeLinearScreenSizeRamp(int levels, double min, double max)
           
 boolean equals(Object o)
           
 String getKey()
           
 double getScreenSize()
           
 int hashCode()
           
 boolean meetsCriteria(DrawContext dc, Airspace airspace)
           
 String toString()
           
 
Methods inherited from class gov.nasa.worldwind.avlist.AVListImpl
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getDoubleValue, getDoubleValue, getEntries, getIntegerValue, getIntegerValue, getLongValue, getLongValue, getStringValue, getStringValue, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface gov.nasa.worldwind.avlist.AVList
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
 

Constructor Detail

ScreenSizeDetailLevel

public ScreenSizeDetailLevel(double minimumScreenSize,
                             String key)
Method Detail

compareTo

public int compareTo(DetailLevel level)
Specified by:
compareTo in interface DetailLevel
Specified by:
compareTo in interface Comparable<DetailLevel>

computeDefaultScreenSizeRamp

public static double[] computeDefaultScreenSizeRamp(int levels)

computeLinearScreenSizeRamp

public static double[] computeLinearScreenSizeRamp(int levels,
                                                   double min,
                                                   double max)

equals

public boolean equals(Object o)
Overrides:
equals in class Object

getKey

public String getKey()

getScreenSize

public double getScreenSize()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

meetsCriteria

public boolean meetsCriteria(DrawContext dc,
                             Airspace airspace)
Specified by:
meetsCriteria in interface DetailLevel

toString

public String toString()
Overrides:
toString in class Object

NASA World Wind