API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.awt. MultipleGradientPaint View Source
Author(s)
Nicholas Talian, Vincent Hardy, Jim Graham, Jerry Evans
Since
1.6
Version
Serial
Hierarchy
 Object
      MultipleGradientPaint
Implements
 Paint
Subclasses
Description
publicabstract abstract class MultipleGradientPaint
  This is the superclass for Paints which use a multiple color gradient to fill in their raster.
See also:   
Constructors
pack-private MultipleGradientPaint (float[] fractions, Color colors, CycleMethod cycleMethod, ColorSpaceType colorSpace, AffineTransform gradientTransform)
  Package-private constructor.
Methods
Hide/Show inherited methods
publicfinal Color getColors ()
  Returns a copy of the array of colors used by this gradient.
publicfinal ColorSpaceType getColorSpace ()
  Returns the enumerated type which specifies color space for interpolation.
publicfinal CycleMethod getCycleMethod ()
  Returns the enumerated type which specifies cycling behavior.
publicfinal float getFractions ()
  Returns a copy of the array of floats used by this gradient to calculate color distribution.
publicfinal AffineTransform getTransform ()
  Returns a copy of the transform applied to the gradient.
publicfinal int getTransparency ()
  Returns the transparency mode for this Paint object.
Fields
Hide/Show inherited fields
publicfinalstatic int BITMASK = "2" [Inherited From Paint]
Represents image data that is guaranteed to be either completely opaque, with an alpha value of 1.0, or completely transparent, with an alpha value of 0.0.
pack-privatefinal Color colors
Gradient colors.
pack-privatefinal ColorSpaceType colorSpace
The color space in which to perform the gradient interpolation.
pack-privatefinal CycleMethod cycleMethod
The method to use when painting outside the gradient bounds.
pack-private int fastGradientArraySize
pack-privatefinal float fractions
Gradient keyframe values in the range 0 to 1.
pack-private SoftReference<int> gradient
pack-private SoftReference<int> gradients
pack-privatefinal AffineTransform gradientTransform
Transform to apply to gradient.
pack-private boolean isSimpleLookup
pack-private ColorModel model
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
publicfinalstatic int OPAQUE = "1" [Inherited From Paint]
Represents image data that is guaranteed to be completely opaque, meaning that all pixels have an alpha value of 1.0.
publicfinalstatic int TRANSLUCENT = "3" [Inherited From Paint]
Represents image data that contains or might contain arbitrary alpha values between and including 0.0 and 1.0.
pack-privatefinal int transparency
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