public abstract class MultipleGradientPaint extends Object implements Paint
LinearGradientPaint和RadialGradientPaint 。
| Modifier and Type | Class and Description |
|---|---|
static class |
MultipleGradientPaint.ColorSpaceType
执行渐变插值的颜色空间。
|
static class |
MultipleGradientPaint.CycleMethod
绘画之外使用的方法边界渐变。
|
BITMASK, OPAQUE, TRANSLUCENT| Modifier and Type | Method and Description |
|---|---|
Color[] |
getColors()
返回此梯度使用的颜色数组的副本。
|
MultipleGradientPaint.ColorSpaceType |
getColorSpace()
返回枚举类型,它指定插值的颜色空间。
|
MultipleGradientPaint.CycleMethod |
getCycleMethod()
返回指定循环行为的枚举类型。
|
float[] |
getFractions()
返回此梯度使用的浮点数组的副本以计算颜色分布。
|
AffineTransform |
getTransform()
返回应用于渐变的变换的副本。
|
int |
getTransparency()
返回此
Paint对象的透明度模式。
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateContextpublic final float[] getFractions()
public final Color[] getColors()
public final MultipleGradientPaint.CycleMethod getCycleMethod()
public final MultipleGradientPaint.ColorSpaceType getColorSpace()
public final AffineTransform getTransform()
请注意,如果在创建梯形时不应用变换,则使用标识变换。
public final int getTransparency()
Paint对象的透明度模式。
getTransparency在界面
Transparency
OPAQUE如果此
Paint对象使用的所有颜色都不透明,则
TRANSLUCENT如果此
Paint对象使用的颜色中至少有一种不是不透明的。
Transparency
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.