Class ScreenSizeDetailLevel
- java.lang.Object
-
- gov.nasa.worldwind.avlist.AVListImpl
-
- gov.nasa.worldwind.render.airspaces.ScreenSizeDetailLevel
-
- All Implemented Interfaces:
AVList
,DetailLevel
,java.lang.Comparable<DetailLevel>
public class ScreenSizeDetailLevel extends AVListImpl implements DetailLevel
-
-
Constructor Summary
Constructors Constructor Description ScreenSizeDetailLevel(double minimumScreenSize, java.lang.String key)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(DetailLevel level)
static double[]
computeDefaultScreenSizeRamp(int levels)
static double[]
computeLinearScreenSizeRamp(int levels, double min, double max)
boolean
equals(java.lang.Object o)
java.lang.String
getKey()
double
getScreenSize()
int
hashCode()
boolean
meetsCriteria(DrawContext dc, Airspace airspace)
java.lang.String
toString()
-
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 interface gov.nasa.worldwind.avlist.AVList
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
-
-
-
-
Method Detail
-
getScreenSize
public double getScreenSize()
-
getKey
public java.lang.String getKey()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
compareTo
public int compareTo(DetailLevel level)
- Specified by:
compareTo
in interfacejava.lang.Comparable<DetailLevel>
- Specified by:
compareTo
in interfaceDetailLevel
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
meetsCriteria
public boolean meetsCriteria(DrawContext dc, Airspace airspace)
- Specified by:
meetsCriteria
in interfaceDetailLevel
-
computeDefaultScreenSizeRamp
public static double[] computeDefaultScreenSizeRamp(int levels)
-
computeLinearScreenSizeRamp
public static double[] computeLinearScreenSizeRamp(int levels, double min, double max)
-
-