API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.awt. RadialGradientPaint View Source
Author(s)
Nicholas Talian, Vincent Hardy, Jim Graham, Jerry Evans
Since
1.6
Version
Serial
Hierarchy
 Object
      MultipleGradientPaint
          RadialGradientPaint
Implements
Subclasses
Description
publicfinal class RadialGradientPaint
  The RadialGradientPaint class provides a way to fill a shape with a circular radial color gradient pattern.
Constructors
public RadialGradientPaint (float cx, float cy, float radius, float[] fractions, Color colors)
  Constructs a RadialGradientPaint with a default NO_CYCLE repeating method and SRGB color space, using the center as the focus point.
public RadialGradientPaint (float cx, float cy, float radius, float[] fractions, Color colors, CycleMethod cycleMethod)
  Constructs a RadialGradientPaint with a default SRGB color space, using the center as the focus point.
public RadialGradientPaint (float cx, float cy, float radius, float fx, float fy, float[] fractions, Color colors, CycleMethod cycleMethod)
  Constructs a RadialGradientPaint with a default SRGB color space.
public RadialGradientPaint (Point2D center, float radius, float[] fractions, Color colors)
  Constructs a RadialGradientPaint with a default NO_CYCLE repeating method and SRGB color space, using the center as the focus point.
public RadialGradientPaint (Point2D center, float radius, float[] fractions, Color colors, CycleMethod cycleMethod)
  Constructs a RadialGradientPaint with a default SRGB color space, using the center as the focus point.
public RadialGradientPaint (Point2D center, float radius, Point2D focus, float[] fractions, Color colors, CycleMethod cycleMethod)
  Constructs a RadialGradientPaint with a default SRGB color space.
public RadialGradientPaint (Point2D center, float radius, Point2D focus, float[] fractions, Color colors, CycleMethod cycleMethod, ColorSpaceType colorSpace, AffineTransform gradientTransform)
  Constructs a RadialGradientPaint.
public RadialGradientPaint (Rectangle2D gradientBounds, float[] fractions, Color colors, CycleMethod cycleMethod)
  Constructs a RadialGradientPaint with a default SRGB color space.
Methods
Hide/Show inherited methods
public PaintContext createContext (ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform transform, RenderingHints hints)
  Creates and returns a PaintContext used to generate the color pattern.
public Point2D getCenterPoint ()
  Returns a copy of the center point of the radial gradient.
publicfinal Color getColors () [Inherited From MultipleGradientPaint]
  Returns a copy of the array of colors used by this gradient.
publicfinal ColorSpaceType getColorSpace () [Inherited From MultipleGradientPaint]
  Returns the enumerated type which specifies color space for interpolation.
publicfinal CycleMethod getCycleMethod () [Inherited From MultipleGradientPaint]
  Returns the enumerated type which specifies cycling behavior.
public Point2D getFocusPoint ()
  Returns a copy of the end point of the gradient axis.
publicfinal float getFractions () [Inherited From MultipleGradientPaint]
  Returns a copy of the array of floats used by this gradient to calculate color distribution.
public float getRadius ()
  Returns the radius of the circle defining the radial gradient.
publicfinal AffineTransform getTransform () [Inherited From MultipleGradientPaint]
  Returns a copy of the transform applied to the gradient.
publicfinal int getTransparency () [Inherited From MultipleGradientPaint]
  Returns the transparency mode for this Paint object.
Fields
Hide/Show inherited fields
pack-privatefinal Color colors [Inherited From MultipleGradientPaint]
Gradient colors.
pack-privatefinal ColorSpaceType colorSpace [Inherited From MultipleGradientPaint]
The color space in which to perform the gradient interpolation.
pack-privatefinal CycleMethod cycleMethod [Inherited From MultipleGradientPaint]
The method to use when painting outside the gradient bounds.
pack-private int fastGradientArraySize [Inherited From MultipleGradientPaint]
pack-privatefinal float fractions [Inherited From MultipleGradientPaint]
Gradient keyframe values in the range 0 to 1.
pack-private SoftReference<int> gradient [Inherited From MultipleGradientPaint]
pack-private SoftReference<int> gradients [Inherited From MultipleGradientPaint]
pack-privatefinal AffineTransform gradientTransform [Inherited From MultipleGradientPaint]
Transform to apply to gradient.
pack-private boolean isSimpleLookup [Inherited From MultipleGradientPaint]
pack-private ColorModel model [Inherited From MultipleGradientPaint]
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-private float normalizedIntervals [Inherited From MultipleGradientPaint]
pack-privatefinal int transparency [Inherited From MultipleGradientPaint]
The transparency of this paint object.
Nested Classes
  MultipleGradientPaint.CycleMethod
The method to use when painting outside the gradient bounds.
  MultipleGradientPaint.ColorSpaceType
The color space in which to perform the gradient interpolation.
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar