public enum TLECategory extends java.lang.Enum<TLECategory>
Modifier and Type | Method and Description |
---|---|
TLEAccuracy |
getAccuracy(double ce) |
static TLECategory |
getCategory(double ce) |
double |
getCE(TLEAccuracy acc) |
static java.lang.String |
getCEString(GeoPoint gp)
Given a GeoPoint, obtain the appropriate CE string that
describes the category.
|
int |
getColor()
Returns the recommended color coding to be associated with the CAT value
for display throughout the application.
|
double |
getHigh() |
double |
getLow() |
double |
getMedium() |
java.lang.String |
getName() |
int |
getValue() |
static TLECategory |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TLECategory[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TLECategory CAT1
public static final TLECategory CAT2
public static final TLECategory CAT3
public static final TLECategory CAT4
public static final TLECategory CAT5
public static final TLECategory UNKNOWN
public static TLECategory[] values()
for (TLECategory c : TLECategory.values()) System.out.println(c);
public static TLECategory valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getValue()
public double getHigh()
public double getLow()
public double getMedium()
public java.lang.String getName()
public int getColor()
Color.White
indicates that there is no recommendation and
the application should assume default text coloring.Color.White
for default text color.public static TLECategory getCategory(double ce)
public TLEAccuracy getAccuracy(double ce)
public double getCE(TLEAccuracy acc)
public static java.lang.String getCEString(GeoPoint gp)
gp
- the geopoint to use to construct the formatted
ce string.