Serializable, Comparable<Gradient.Type>public static enum Gradient.Type extends Enum<Gradient.Type>
| Enum Constant | Description |
|---|---|
HORIZONTAL |
|
NONE |
|
RADIAL |
|
VERTICAL |
| Modifier and Type | Method | Description |
|---|---|---|
String |
toString() |
|
static Gradient.Type |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static Gradient.Type[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Gradient.Type RADIAL
public static final Gradient.Type HORIZONTAL
public static final Gradient.Type VERTICAL
public static final Gradient.Type NONE
public static Gradient.Type[] values()
for (Gradient.Type c : Gradient.Type.values()) System.out.println(c);
public static Gradient.Type valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String toString()
toString in class Enum<Gradient.Type>Copyright © 2022. All rights reserved.