public abstract class MultipleGradientPaint extends Objectimplements Paint
LinearGradientPaint and
RadialGradientPaint.
| Modifier and Type | Class and Description |
|---|---|
static class |
MultipleGradientPaint
The color space in which to perform the gradient interpolation.
|
static class |
MultipleGradientPaint
The method to use when painting outside the gradient bounds.
|
BITMASK, OPAQUE, TRANSLUCENT| Modifier and Type | Method and Description |
|---|---|
Color |
getColors()
Returns a copy of the array of colors used by this gradient.
|
MultipleGradientPaint |
getColorSpace()
Returns the enumerated type which specifies color space for interpolation.
|
MultipleGradientPaint |
getCycleMethod()
Returns the enumerated type which specifies cycling behavior.
|
float[] |
getFractions()
Returns a copy of the array of floats used by this gradient to calculate color distribution.
|
AffineTransform |
getTransform()
Returns a copy of the transform applied to the gradient.
|
int |
getTransparency()
Returns the transparency mode for this
Paint object.
|
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 AffineTransformgetTransform()
Note that if no transform is applied to the gradient when it is created, the identity transform is used.
public final int getTransparency()
Paint object.
getTransparency in interface
Transparency
OPAQUE if all colors used by this
Paint object are opaque,
TRANSLUCENT if at least one of the colors used by this
Paint object is not opaque.
Transparency