| Package | Description | 
|---|---|
| java.awt | Contains all of the classes for creating user
interfaces and for painting graphics and images. | 
| Modifier and Type | Method and Description | 
|---|---|
| MultipleGradientPaint.ColorSpaceType | MultipleGradientPaint. getColorSpace()Returns the enumerated type which specifies color space for
 interpolation. | 
| static MultipleGradientPaint.ColorSpaceType | MultipleGradientPaint.ColorSpaceType. valueOf(String name)Returns the enum constant of this type with the specified name. | 
| static MultipleGradientPaint.ColorSpaceType[] | MultipleGradientPaint.ColorSpaceType. values()Returns an array containing the constants of this enum type, in
the order they are declared. | 
| Constructor and Description | 
|---|
| LinearGradientPaint(Point2D start,
                   Point2D end,
                   float[] fractions,
                   Color[] colors,
                   MultipleGradientPaint.CycleMethod cycleMethod,
                   MultipleGradientPaint.ColorSpaceType colorSpace,
                   AffineTransform gradientTransform)Constructs a  LinearGradientPaint. | 
| RadialGradientPaint(Point2D center,
                   float radius,
                   Point2D focus,
                   float[] fractions,
                   Color[] colors,
                   MultipleGradientPaint.CycleMethod cycleMethod,
                   MultipleGradientPaint.ColorSpaceType colorSpace,
                   AffineTransform gradientTransform)Constructs a  RadialGradientPaint. | 
 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, 2025, Oracle and/or its affiliates.  All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.