Package com.oorian.css
Enum Class BackgroundBlendMode
- All Implemented Interfaces:
Serializable,Comparable<BackgroundBlendMode>,Constable
CSS background-blend-mode property values for blending background layers.
The background-blend-mode property defines how an element's background images and background color blend with each other. These are similar to blend modes found in image editing software.
Usage:
element.setBackgroundBlendMode(BackgroundBlendMode.MULTIPLY);
element.setBackgroundBlendMode(BackgroundBlendMode.OVERLAY);
- Since:
- 2012
- Version:
- 1.0
- Author:
- Marvin P. Warble Jr.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionPreserves hue and saturation from the top layer.Brightens by dividing bottom layer by inverted top layer.Retains the darkest pixels of both layers.Retains the lightest pixels of both layers.Preserves luminosity from the top layer.Multiplies the colors.Normal blend mode (default).Combines multiply and screen.Preserves saturation from the top layer.Lightens by inverting, multiplying, then inverting again. -
Method Summary
Modifier and TypeMethodDescriptiongetValue()Returns the CSS value string.toString()Returns the CSS value string.static BackgroundBlendModeReturns the enum constant of this class with the specified name.static BackgroundBlendMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NORMAL
Normal blend mode (default). -
MULTIPLY
Multiplies the colors. -
SCREEN
Lightens by inverting, multiplying, then inverting again. -
OVERLAY
Combines multiply and screen. -
DARKEN
Retains the darkest pixels of both layers. -
LIGHTEN
Retains the lightest pixels of both layers. -
COLOR_DODGE
Brightens by dividing bottom layer by inverted top layer. -
SATURATION
Preserves saturation from the top layer. -
COLOR
Preserves hue and saturation from the top layer. -
LUMINOSITY
Preserves luminosity from the top layer.
-
-
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
-
getValue
Returns the CSS value string.- Returns:
- the CSS value
-
toString
Returns the CSS value string.- Overrides:
toStringin classEnum<BackgroundBlendMode>- Returns:
- the CSS value
-