This documentation differs from the official API.
Jadeite adds
extra features to the API including:
variable font sizes,
constructions examples,
placeholders for classes and methods, and auto-generated “See Also” links.
Additionally it
is missing some items found in standard Javadoc documentation, including:
generics type information,
“Deprecated” tags and comments,
“See Also” links,
along with other minor differences.
Please send any questions or feedback to
bam@cs.cmu.edu.
java.awt
class MultipleGradientPaint
- All Implemented Interfaces:
- Paint
- Direct Known Subclasses:
- LinearGradientPaint, RadialGradientPaint
public abstract class MultipleGradientPaint
extends Object
implements Paint
This is the superclass for Paints which use a multiple color
gradient to fill in their raster. It provides storage for variables and
enumerated values common to
{@code LinearGradientPaint} and {@code RadialGradientPaint}.
Nested Class Summary |
static enum |
The color space in which to perform the gradient interpolation. |
static enum |
The method to use when painting outside the gradient bounds. |
Method Summary |
Color[] |
Returns a copy of the array of colors used by this gradient.
|
MultipleGradientPaint.ColorSpaceType |
Returns the enumerated type which specifies color space for
interpolation.
|
MultipleGradientPaint.CycleMethod |
Returns the enumerated type which specifies cycling behavior.
|
float[] |
Returns a copy of the array of floats used by this gradient
to calculate color distribution.
|
AffineTransform |
Returns a copy of the transform applied to the gradient.
|
int |
Returns the transparency mode for this Paint object.
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getColors
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.
- Returns:
- a copy of the array of colors used by this gradient
getColorSpace
public final MultipleGradientPaint.ColorSpaceType getColorSpace()
-
Returns the enumerated type which specifies color space for
interpolation.
- Returns:
- the enumerated type which specifies color space for
interpolation
getCycleMethod
public final MultipleGradientPaint.CycleMethod getCycleMethod()
-
Returns the enumerated type which specifies cycling behavior.
- Returns:
- the enumerated type which specifies cycling behavior
getFractions
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.
- Returns:
- a copy of the array of floats used by this gradient to
calculate color distribution
getTransform
public final AffineTransform getTransform()
-
Returns a copy of the transform applied to the gradient.
- Returns:
- a copy of the transform applied to the gradient
getTransparency
public final int getTransparency()
-
Returns the transparency mode for this Paint object.
- Returns:
- an integer value representing the transparency mode for
this Paint object
This documentation differs from the official API.
Jadeite adds
extra features to the API including:
variable font sizes,
constructions examples,
placeholders for classes and methods, and auto-generated “See Also” links.
Additionally it
is missing some items found in standard Javadoc documentation, including:
generics type information,
“Deprecated” tags and comments,
“See Also” links,
along with other minor differences.
Please send any questions or feedback to
bam@cs.cmu.edu.
This page displays the
Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
The official Sun™ documentation can be found here at
http://java.sun.com/javase/6/docs/api/.