|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--uwcse.location.client.Utils
Location display utilities.
| Constructor Summary | |
Utils()
|
|
| Method Summary | |
static double |
alphaToDouble(int alpha)
|
static int |
alphaToInt(double alpha)
|
static Color |
findContrastingColor(Color color)
Return a color that contrasts with "color", so e.g. the latter color may be used as foreground color for text on a background of the former color. |
static Color |
generateColorFromInt(int key)
generates a color for the collectors...at most there can be 32 distinguishable collectors. |
static Color |
generateColorFromString(String nm)
Figure out a color for the display, using its name as the key. |
static boolean |
isLightColor(Color color)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Utils()
| Method Detail |
public static Color generateColorFromString(String nm)
public static Color generateColorFromInt(int key)
public static Color findContrastingColor(Color color)
public static boolean isLightColor(Color color)
public static int alphaToInt(double alpha)
public static double alphaToDouble(int alpha)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||