|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<Spread>
com.flagstone.transform.fillstyle.Spread
public enum Spread
The Spread describes how the gradient is used to fill the available shape when the area to be filled is larger than the area covered by the gradient.
| Enum Constant Summary | |
|---|---|
PAD
The last colour of the gradient is used to fill the remaining area. |
|
REFLECT
The gradient is reflected (repeatedly reversing the gradient) across the area to be filled. |
|
REPEAT
The gradient is repeated across the area to be filled. |
|
| Method Summary | |
|---|---|
static Spread |
fromInt(int value)
Returns the Spread for a given type. |
int |
getValue()
Get the value used to represent the Spread when it is encoded. |
static Spread |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Spread[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final Spread PAD
public static final Spread REFLECT
public static final Spread REPEAT
| Method Detail |
|---|
public static Spread[] values()
for (Spread c : Spread.values()) System.out.println(c);
public static Spread valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic static Spread fromInt(int value)
value - the type that identifies the Spread when it is encoded.
public int getValue()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||