Index

C G I L R T V 
All Classes and Interfaces|All Packages

C

cl.emilym.contrastaccessibility - package cl.emilym.contrastaccessibility
 
ContrastAccessibility - Class in cl.emilym.contrastaccessibility
Utility class for checking contrast accessibility between colors and calculating contrast ratios using the standards defined in WCAG 2.1.
ContrastAccessibilityContext - Interface in cl.emilym.contrastaccessibility
An interface representing different contrast accessibility contexts for text elements.

G

getThreshold() - Method in interface cl.emilym.contrastaccessibility.ContrastAccessibilityContext
Gets the contrast threshold ratio for the context.

I

INCIDENTAL - Static variable in interface cl.emilym.contrastaccessibility.ContrastAccessibilityContext
Represents the contrast accessibility context for incidental text.

L

LARGE_TEXT - Static variable in interface cl.emilym.contrastaccessibility.ContrastAccessibilityContext
Represents the contrast accessibility context for large text.
luminance(long) - Static method in class cl.emilym.contrastaccessibility.ContrastAccessibility
Calculates the relative luminance of a color as per WCAG 2.1 specifications.

R

ratio(long, long) - Static method in class cl.emilym.contrastaccessibility.ContrastAccessibility
Calculates the contrast ratio between two colors.

T

TEXT - Static variable in interface cl.emilym.contrastaccessibility.ContrastAccessibilityContext
Represents the contrast accessibility context for regular text.

V

valid(long, long) - Static method in class cl.emilym.contrastaccessibility.ContrastAccessibility
Checks if the contrast ratio between two colors meets the accessibility threshold for text.
valid(long, long, ContrastAccessibilityContext) - Static method in class cl.emilym.contrastaccessibility.ContrastAccessibility
Checks if the contrast ratio between two colors meets the accessibility threshold for a specified context.
C G I L R T V 
All Classes and Interfaces|All Packages