Uses of Class java.awt.MultipleGradientPaint.CycleMethod (Java Platform SE 8 )
Date: 2026-04-24

## Uses of Class
java.awt.MultipleGradientPaint.CycleMethod

- Packages that use MultipleGradientPaint.CycleMethod
  Package | Description
  --- | ---
  java.awt | Contains all of the classes for creating user interfaces and for painting graphics and images.

- - ### Uses of MultipleGradientPaint.CycleMethod in java.awt

    Methods in java.awt that return MultipleGradientPaint.CycleMethod
    Modifier and Type | Method and Description
    --- | ---
    `MultipleGradientPaint.CycleMethod` | MultipleGradientPaint.`getCycleMethod()` Returns the enumerated type which specifies cycling behavior.
    `static MultipleGradientPaint.CycleMethod` | MultipleGradientPaint.CycleMethod.`valueOf(String name)` Returns the enum constant of this type with the specified name.
    `static MultipleGradientPaint.CycleMethod[]` | MultipleGradientPaint.CycleMethod.`values()` Returns an array containing the constants of this enum type, in the order they are declared.

    Constructors in java.awt with parameters of type MultipleGradientPaint.CycleMethod
    Constructor and Description
    `LinearGradientPaint(float startX, float startY, float endX, float endY, float[] fractions, Color[] colors, MultipleGradientPaint.CycleMethod cycleMethod)` Constructs a `LinearGradientPaint` with a default `SRGB` color space.
    `LinearGradientPaint(Point2D start, Point2D end, float[] fractions, Color[] colors, MultipleGradientPaint.CycleMethod cycleMethod)` Constructs a `LinearGradientPaint` with a default `SRGB` color space.
    `LinearGradientPaint(Point2D start, Point2D end, float[] fractions, Color[] colors, MultipleGradientPaint.CycleMethod cycleMethod, MultipleGradientPaint.ColorSpaceType colorSpace, AffineTransform gradientTransform)` Constructs a `LinearGradientPaint`.
    `RadialGradientPaint(float cx, float cy, float radius, float[] fractions, Color[] colors, MultipleGradientPaint.CycleMethod cycleMethod)` Constructs a `RadialGradientPaint` with a default `SRGB` color space, using the center as the focus point.
    `RadialGradientPaint(float cx, float cy, float radius, float fx, float fy, float[] fractions, Color[] colors, MultipleGradientPaint.CycleMethod cycleMethod)` Constructs a `RadialGradientPaint` with a default `SRGB` color space.
    `RadialGradientPaint(Point2D center, float radius, float[] fractions, Color[] colors, MultipleGradientPaint.CycleMethod cycleMethod)` Constructs a `RadialGradientPaint` with a default `SRGB` color space, using the center as the focus point.
    `RadialGradientPaint(Point2D center, float radius, Point2D focus, float[] fractions, Color[] colors, MultipleGradientPaint.CycleMethod cycleMethod)` Constructs a `RadialGradientPaint` with a default `SRGB` color space.
    `RadialGradientPaint(Point2D center, float radius, Point2D focus, float[] fractions, Color[] colors, MultipleGradientPaint.CycleMethod cycleMethod, MultipleGradientPaint.ColorSpaceType colorSpace, AffineTransform gradientTransform)` Constructs a `RadialGradientPaint`.
    `RadialGradientPaint(Rectangle2D gradientBounds, float[] fractions, Color[] colors, MultipleGradientPaint.CycleMethod cycleMethod)` Constructs a `RadialGradientPaint` with a default `SRGB` color space.

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, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.