Uses of Class
specialized_checkers.CheckerColor
Packages that use CheckerColor
-
Uses of CheckerColor in specialized_checkers
Subclasses with type arguments of type CheckerColor in specialized_checkersModifier and TypeClassDescriptionclass
CheckerColor is a specialized checker for validating and performing assertions onColor
values.Methods in specialized_checkers that return CheckerColorModifier and TypeMethodDescriptionstatic CheckerColor
Creates a new CheckerColor instance for the given color with a default name.static CheckerColor
Creates a new CheckerColor instance for the given color and name.CheckerColor.hasAlpha
(int alpha) Checks if the color has the specified alpha (transparency) value.CheckerColor.hasContrast
(Color other) Checks if the color has sufficient contrast with another color using the default threshold (128).CheckerColor.hasContrast
(Color other, double umbral) Checks if the color has sufficient contrast with another color using the specified threshold.CheckerColor.hasHexadecimal
(String hex) Checks if the color's hexadecimal representation matches the specified string.CheckerColor.isBlack()
Checks if the color is black.Checks if the color is equal to another color.CheckerColor.isDark()
Checks if the color is considered dark using the default threshold (128).CheckerColor.isDark
(double umbral) Checks if the color is considered dark using the specified threshold.CheckerColor.isDesaturated
(double umbral) Checks if the color is desaturated (saturation below the specified threshold).CheckerColor.isGray()
Checks if the color is a shade of gray (red, green, and blue components are equal).CheckerColor.isLight()
Checks if the color is considered light using the default threshold (128).CheckerColor.isLight
(double umbral) Checks if the color is considered light using the specified threshold.CheckerColor.isOpaque()
Checks if the color is fully opaque (alpha value is 255).Checks if the color is similar to another color within the specified threshold.CheckerColor.isTransparent()
Checks if the color is transparent (alpha value less than 255).CheckerColor.isWhite()
Checks if the color is white.protected CheckerColor
CheckerColor.self()
Returns this instance (for fluent API usage). -
Uses of CheckerColor in util
Methods in util that return CheckerColorModifier and TypeMethodDescriptionChecker.isColor()
Checks if the object is a Color and returns a CheckerColor for further validation.