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, wait
createContext
public 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.