No cache version.

Caching disabled. Default setting for this page:enabled (code LNG204)
If the display is too slow, you can disable the user mode to view the cached version.
java.awt

Class MultipleGradientPaint

  • All Implemented Interfaces:
    Paint, Transparency
    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 LinearGradientPaint and RadialGradientPaint.
    Since:
    1.6
    • Method Detail

      • 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
      • 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
      • getCycleMethod

        public final MultipleGradientPaint.CycleMethod getCycleMethod()
        Returns the enumerated type which specifies cycling behavior.
        Returns:
        the enumerated type which specifies cycling behavior
      • 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
      • getTransform

        public final AffineTransform getTransform()
        Returns a copy of the transform applied to the gradient.

        Note that if no transform is applied to the gradient when it is created, the identity transform is used.

        Returns:
        a copy of the transform applied to the gradient
      • getTransparency

        public final int getTransparency()
        Returns the transparency mode for this Paint object.
        Specified by:
        getTransparency in interface Transparency
        Returns:
        OPAQUE if all colors used by this Paint object are opaque, TRANSLUCENT if at least one of the colors used by this Paint object is not opaque.
        See Also:
        Transparency

Document created the 11/06/2005, last modified the 04/03/2020
Source of the printed document:https://www.gaudry.be/en/java-api-rf-java/awt/multiplegradientpaint.html/.html/.html/

The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.

References

  1. View the html document Language of the document:fr Manuel PHP : https://docs.oracle.com

These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.

Contents Haut