Package limn.themeeditor
Enum Class ThemeAudit.Metric
- All Implemented Interfaces:
Serializable,Comparable<ThemeAudit.Metric>,Constable
- Enclosing class:
ThemeAudit
Which scale a finding was measured on, and how a number on it is written.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionHow opaque one tone is, 0 to 100: a percentage rather than a fraction because a percentage is what a colour picker's alpha line reads, so the number in the finding is the number the author has to move.WCAG contrast ratio between two tones, 1 to 21.CIE L* difference between two tones, 0 to 100. -
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether this scale compares two tones, and so whether a finding on it names anThemeAudit.Finding.against.unit()How a number on this scale is written, appended to the number itself.static ThemeAudit.MetricReturns the enum constant of this class with the specified name.static ThemeAudit.Metric[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CONTRAST
WCAG contrast ratio between two tones, 1 to 21. -
LIGHTNESS_STEP
CIE L* difference between two tones, 0 to 100. -
ALPHA
How opaque one tone is, 0 to 100: a percentage rather than a fraction because a percentage is what a colour picker's alpha line reads, so the number in the finding is the number the author has to move.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
isPairwise
public boolean isPairwise()Whether this scale compares two tones, and so whether a finding on it names anThemeAudit.Finding.against. Alpha does not: it belongs to a single tone. -
unit
How a number on this scale is written, appended to the number itself.
-