public abstract class MultipleGradientPaint
extends java.lang.Object
implements java.awt.Paint
LinearGradientPaint
and RadialGradientPaint
.Modifier and Type | Class and Description |
---|---|
static class |
MultipleGradientPaint.ColorSpaceType
The color space in which to perform the gradient interpolation.
|
static class |
MultipleGradientPaint.CycleMethod
The method to use when painting outside the gradient bounds.
|
Modifier and Type | Field and Description |
---|---|
protected java.awt.geom.AffineTransform |
gradientTransform
Transform to apply to gradient.
|
Modifier and Type | Method and Description |
---|---|
static float[] |
copyOf(float[] original,
int newLength) |
static <T> T[] |
copyOf(T[] original,
int newLength) |
static <T,U> T[] |
copyOf(U[] original,
int newLength,
java.lang.Class<? extends T[]> newType) |
java.awt.Color[] |
getColors()
Returns a copy of the array of colors used by this gradient.
|
MultipleGradientPaint.ColorSpaceType |
getColorSpace()
Returns the enumerated type which specifies color space for
interpolation.
|
MultipleGradientPaint.CycleMethod |
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.
|
java.awt.geom.AffineTransform |
getTransform()
Returns a copy of the transform applied to the gradient.
|
int |
getTransparency()
Returns the transparency mode for this Paint object.
|
protected final java.awt.geom.AffineTransform gradientTransform
public final float[] getFractions()
public final java.awt.Color[] getColors()
public static float[] copyOf(float[] original, int newLength)
public static <T> T[] copyOf(T[] original, int newLength)
public static <T,U> T[] copyOf(U[] original, int newLength, java.lang.Class<? extends T[]> newType)
public final MultipleGradientPaint.CycleMethod getCycleMethod()
public final MultipleGradientPaint.ColorSpaceType getColorSpace()
public final java.awt.geom.AffineTransform getTransform()
public final int getTransparency()
getTransparency
in interface java.awt.Transparency
Transparency