android.graphics
Enum PorterDuff.Mode
java.lang.Object
java.lang.Enum<PorterDuff.Mode>
android.graphics.PorterDuff.Mode
- All Implemented Interfaces:
- Serializable, Comparable<PorterDuff.Mode>
- Enclosing class:
- PorterDuff
public static enum PorterDuff.Mode
- extends Enum<PorterDuff.Mode>
Method Summary |
static PorterDuff.Mode |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static PorterDuff.Mode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
ADD
public static final PorterDuff.Mode ADD
CLEAR
public static final PorterDuff.Mode CLEAR
DARKEN
public static final PorterDuff.Mode DARKEN
DST
public static final PorterDuff.Mode DST
DST_ATOP
public static final PorterDuff.Mode DST_ATOP
DST_IN
public static final PorterDuff.Mode DST_IN
DST_OUT
public static final PorterDuff.Mode DST_OUT
DST_OVER
public static final PorterDuff.Mode DST_OVER
LIGHTEN
public static final PorterDuff.Mode LIGHTEN
MULTIPLY
public static final PorterDuff.Mode MULTIPLY
OVERLAY
public static final PorterDuff.Mode OVERLAY
SCREEN
public static final PorterDuff.Mode SCREEN
SRC
public static final PorterDuff.Mode SRC
SRC_ATOP
public static final PorterDuff.Mode SRC_ATOP
SRC_IN
public static final PorterDuff.Mode SRC_IN
SRC_OUT
public static final PorterDuff.Mode SRC_OUT
SRC_OVER
public static final PorterDuff.Mode SRC_OVER
XOR
public static final PorterDuff.Mode XOR
values
public static PorterDuff.Mode[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (PorterDuff.Mode c : PorterDuff.Mode.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static PorterDuff.Mode valueOf(String name)
- 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 name
NullPointerException
- if the argument is null
Copyright © 2008-2012. All Rights Reserved.