public static enum MultipleGradientPaint.CycleMethod extends Enum<MultipleGradientPaint.CycleMethod>
Enum Constant and Description |
---|
NO_CYCLE
使用终端颜色填充剩余的区域。
|
REFLECT
循环渐变颜色从头到尾,结束开始填充剩余的区域。
|
REPEAT
以渐变颜色从头到尾循环,从头到尾填充剩余的区域。
|
Modifier and Type | Method and Description |
---|---|
static MultipleGradientPaint.CycleMethod |
valueOf(String name)
以指定的名称返回此类型的枚举常量。
|
static MultipleGradientPaint.CycleMethod[] |
values()
按照它们声明的顺序返回一个包含此枚举类型常量的数组。
|
public static final MultipleGradientPaint.CycleMethod NO_CYCLE
public static final MultipleGradientPaint.CycleMethod REFLECT
public static final MultipleGradientPaint.CycleMethod REPEAT
public static MultipleGradientPaint.CycleMethod[] values()
for (MultipleGradientPaint.CycleMethod c : MultipleGradientPaint.CycleMethod.values())
System.out.println(c);
public static MultipleGradientPaint.CycleMethod valueOf(String name)
name
- 要返回的枚举常数的名称。
IllegalArgumentException
- 如果此枚举类型没有指定名称的常量
NullPointerException
- if the argument is null
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.