|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.anadix.section508.ContrastUtility
public final class ContrastUtility
A class that is used to count and compare contrast between two colors
| Method Summary | |
|---|---|
static double |
countRelativeLuminance(String color)
Counts relative luminence of a color. |
static double |
getContrastRatio(double luminance1,
double luminance2)
Counts contrast ratio between two colors |
static String |
normalizeColor(String color)
Normalizes the representation of color to the 32bit form starting with #. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static String normalizeColor(String color)
color - - some color representation
public static double countRelativeLuminance(String color)
color - - color in form #{32bit in hexadecimal}
public static double getContrastRatio(double luminance1,
double luminance2)
luminance1 - relative luminance of one colorluminance2 - relative luminance of the other color
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||