Package com.google.gwt.canvas.dom.client
Enum Context2d.Composite
- All Implemented Interfaces:
Serializable
,Comparable<Context2d.Composite>
,java.lang.constant.Constable
- Enclosing class:
Context2d
Enum for composite style.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionA (B is ignored).B atop A.B in A.B out A.B over A.A plus B.A atop B.A in B.A out B.A over B.A xor B. -
Method Summary
Modifier and TypeMethodDescriptiongetValue()
static Context2d.Composite
Returns the enum constant of this type with the specified name.static Context2d.Composite[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
COPY
A (B is ignored). Display the source image instead of the destination image. -
DESTINATION_ATOP
B atop A. Same as source-atop but using the destination image instead of the source image and vice versa. -
DESTINATION_IN
B in A. Same as source-in but using the destination image instead of the source image and vice versa. -
DESTINATION_OUT
B out A. Same as source-out but using the destination image instead of the source image and vice versa. -
DESTINATION_OVER
B over A. Same as source-over but using the destination image instead of the source image and vice versa. -
LIGHTER
A plus B. Display the sum of the source image and destination image, with color values approaching 1 as a limit. -
SOURCE_ATOP
A atop B. Display the source image wherever both images are opaque. Display the destination image wherever the destination image is opaque but the source image is transparent. Display transparency elsewhere. -
SOURCE_IN
A in B. Display the source image wherever both the source image and destination image are opaque. Display transparency elsewhere. -
SOURCE_OUT
A out B. Display the source image wherever the source image is opaque and the destination image is transparent. Display transparency elsewhere. -
SOURCE_OVER
A over B. Display the source image wherever the source image is opaque. Display the destination image elsewhere. -
XOR
A xor B. Exclusive OR of the source image and destination image.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
getValue
-