public static enum NinePatch.Mode extends java.lang.Enum<NinePatch.Mode>
| Enum Constant and Description |
|---|
STRETCHING
The texture is stretched to fill the edges and the center.
|
TILING
The texture is tiled to fill the edges and the center.
|
| Modifier and Type | Method and Description |
|---|---|
static @Nullable NinePatch.Mode |
fromString(java.lang.String str)
Deserializes a nine-patch mode from a string.
|
static NinePatch.Mode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static NinePatch.Mode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NinePatch.Mode STRETCHING
public static final NinePatch.Mode TILING
public static NinePatch.Mode[] values()
for (NinePatch.Mode c : NinePatch.Mode.values()) System.out.println(c);
public static NinePatch.Mode valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null@Nullable public static @Nullable NinePatch.Mode fromString(java.lang.String str)
str - the mode string