LinearGradientPaint and RadialGradientPaint.
| Modifier and Type | Class and Description |
|---|---|
| public static enum | MultipleGradientPaint.
The color space in which to perform the gradient interpolation. |
| public static enum | MultipleGradientPaint.
The method to use when painting outside the gradient bounds. |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Color[] | colors
Gradient colors. |
| pack-priv final MultipleGradientPaint. | colorSpace
The color space in which to perform the gradient interpolation. |
| pack-priv final MultipleGradientPaint. | cycleMethod
The method to use when painting outside the gradient bounds. |
| pack-priv int | |
| pack-priv final float[] | fractions
Gradient keyframe values in the range 0 to 1. |
| pack-priv SoftReference | |
| pack-priv SoftReference | |
| pack-priv final AffineTransform | gradientTransform
Transform to apply to gradient. |
| pack-priv boolean | |
| pack-priv ColorModel | model
The following fields are used only by MultipleGradientPaintContext to cache certain values that remain constant and do not need to be recalculated for each context created from this paint instance. |
| pack-priv float[] | |
| pack-priv final int | transparency
The transparency of this paint object. |
| Access | Constructor and Description |
|---|---|
| pack-priv | MultipleGradientPaint(float[]
numbers ranging from 0.0 to 1.0 specifying the
distribution of colors along the gradient fractions, Color[] array of colors corresponding to each fractional value colors, MultipleGradientPaint.either cycleMethod,NO_CYCLE, REFLECT,
or REPEATwhich color space to use for interpolation,
either colorSpace,SRGB or LINEAR_RGBtransform to apply to the gradient gradientTransform)Package-private constructor. |
| Modifier and Type | Method and Description |
|---|---|
| public final Color[] | Returns: a copy of the array of colors used by this gradientReturns a copy of the array of colors used by this gradient. |
| public final MultipleGradientPaint. | Returns: the enumerated type which specifies color space for interpolationReturns the enumerated type which specifies color space for interpolation. |
| public final MultipleGradientPaint. | Returns: the enumerated type which specifies cycling behaviorReturns the enumerated type which specifies cycling behavior. |
| public final float[] | Returns: a copy of the array of floats used by this gradient to calculate color distributionReturns a copy of the array of floats used by this gradient to calculate color distribution. |
| public final AffineTransform | Returns: a copy of the transform applied to the gradientReturns a copy of the transform applied to the gradient. |
| public final int | Returns: an integer value representing the transparency mode for this Paint objectImplements java. Returns the transparency mode for this Paint object. |
| colors | back to summary |
|---|---|
| pack-priv final Color[] colors Gradient colors. | |
| colorSpace | back to summary |
|---|---|
| pack-priv final MultipleGradientPaint. The color space in which to perform the gradient interpolation. | |
| cycleMethod | back to summary |
|---|---|
| pack-priv final MultipleGradientPaint. The method to use when painting outside the gradient bounds. | |
| fastGradientArraySize | back to summary |
|---|---|
| pack-priv int fastGradientArraySize | |
| fractions | back to summary |
|---|---|
| pack-priv final float[] fractions Gradient keyframe values in the range 0 to 1. | |
| gradient | back to summary |
|---|---|
| pack-priv SoftReference<int[]> gradient | |
| gradients | back to summary |
|---|---|
| pack-priv SoftReference<int[][]> gradients | |
| gradientTransform | back to summary |
|---|---|
| pack-priv final AffineTransform gradientTransform Transform to apply to gradient. | |
| isSimpleLookup | back to summary |
|---|---|
| pack-priv boolean isSimpleLookup | |
| model | back to summary |
|---|---|
| pack-priv ColorModel model The following fields are used only by MultipleGradientPaintContext to cache certain values that remain constant and do not need to be recalculated for each context created from this paint instance. | |
| normalizedIntervals | back to summary |
|---|---|
| pack-priv float[] normalizedIntervals | |
| transparency | back to summary |
|---|---|
| pack-priv final int transparency The transparency of this paint object. | |
| MultipleGradientPaint | back to summary |
|---|---|
| pack-priv MultipleGradientPaint(float[] fractions, Color[] colors, MultipleGradientPaint. Package-private constructor.
| |
| getColors | back to summary |
|---|---|
| public final Color[] getColors() Returns a copy of the array of colors used by this gradient. The first color maps to the first value in the fractions array, and the last color maps to the last value in the fractions array.
| |
| getColorSpace | back to summary |
|---|---|
| public final MultipleGradientPaint. Returns the enumerated type which specifies color space for interpolation.
| |
| getCycleMethod | back to summary |
|---|---|
| public final MultipleGradientPaint. Returns the enumerated type which specifies cycling behavior.
| |
| getFractions | back to summary |
|---|---|
| public final float[] getFractions() Returns a copy of the array of floats used by this gradient to calculate color distribution. The returned array always has 0 as its first value and 1 as its last value, with increasing values in between.
| |
| getTransform | back to summary |
|---|---|
| public final AffineTransform getTransform() Returns a copy of the transform applied to the gradient.
| |
| getTransparency | back to summary |
|---|---|
| public final int getTransparency() Implements java. Returns the transparency mode for this Paint object.
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final MultipleGradientPaint. | LINEAR_RGB
Indicates that the color interpolation should occur in linearized RGB space. |
| public static final MultipleGradientPaint. | SRGB
Indicates that the color interpolation should occur in sRGB space. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static MultipleGradientPaint. | |
| public static MultipleGradientPaint. |
| LINEAR_RGB | back to summary |
|---|---|
| public static final MultipleGradientPaint. Indicates that the color interpolation should occur in linearized RGB space. | |
| SRGB | back to summary |
|---|---|
| public static final MultipleGradientPaint. Indicates that the color interpolation should occur in sRGB space. | |
| ColorSpaceType | back to summary |
|---|---|
| private ColorSpaceType() | |
| valueOf | back to summary |
|---|---|
| public static MultipleGradientPaint. | |
| values | back to summary |
|---|---|
| public static MultipleGradientPaint. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final MultipleGradientPaint. | NO_CYCLE
Use the terminal colors to fill the remaining area. |
| public static final MultipleGradientPaint. | REFLECT
Cycle the gradient colors start-to-end, end-to-start to fill the remaining area. |
| public static final MultipleGradientPaint. | REPEAT
Cycle the gradient colors start-to-end, start-to-end to fill the remaining area. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static MultipleGradientPaint. | |
| public static MultipleGradientPaint. |
| NO_CYCLE | back to summary |
|---|---|
| public static final MultipleGradientPaint. Use the terminal colors to fill the remaining area. | |
| REFLECT | back to summary |
|---|---|
| public static final MultipleGradientPaint. Cycle the gradient colors start-to-end, end-to-start to fill the remaining area. | |
| REPEAT | back to summary |
|---|---|
| public static final MultipleGradientPaint. Cycle the gradient colors start-to-end, start-to-end to fill the remaining area. | |
| CycleMethod | back to summary |
|---|---|
| private CycleMethod() | |
| valueOf | back to summary |
|---|---|
| public static MultipleGradientPaint. | |
| values | back to summary |
|---|---|
| public static MultipleGradientPaint. | |