| java.lang.Object java.awt.MultipleGradientPaintContext java.awt.RadialGradientPaintContext
RadialGradientPaintContext | final class RadialGradientPaintContext extends MultipleGradientPaintContext (Code) | | Provides the actual implementation for the RadialGradientPaint.
This is where the pixel processing is done. A RadialGradienPaint
only supports circular gradients, but it should be possible to scale
the circle to look approximately elliptical, by means of a
gradient transform passed into the RadialGradientPaint constructor.
author: Nicholas Talian, Vincent Hardy, Jim Graham, Jerry Evans |
Constructor Summary | |
| RadialGradientPaintContext(RadialGradientPaint paint, ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform t, RenderingHints hints, float cx, float cy, float r, float fx, float fy, float[] fractions, Color[] colors, CycleMethod cycleMethod, ColorSpaceType colorSpace) Constructor for RadialGradientPaintContext.
Parameters: paint - the RadialGradientPaint from which this contextis created Parameters: cm - the ColorModel that receivesthe Paint data (this is used only as a hint) Parameters: deviceBounds - the device space bounding box of the graphics primitive being rendered Parameters: userBounds - the user space bounding box of the graphics primitive being rendered Parameters: t - the AffineTransform from userspace into device space (gradientTransform should be concatenated with this) Parameters: hints - the hints that the context object uses to choosebetween rendering alternatives Parameters: cx - the center X coordinate in user space of the circle defining the gradient. |
Method Summary | |
protected void | fillRaster(int pixels, int off, int adjust, int x, int y, int w, int h) Return a Raster containing the colors generated for the graphics
operation. |
RadialGradientPaintContext | RadialGradientPaintContext(RadialGradientPaint paint, ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform t, RenderingHints hints, float cx, float cy, float r, float fx, float fy, float[] fractions, Color[] colors, CycleMethod cycleMethod, ColorSpaceType colorSpace)(Code) | | Constructor for RadialGradientPaintContext.
Parameters: paint - the RadialGradientPaint from which this contextis created Parameters: cm - the ColorModel that receivesthe Paint data (this is used only as a hint) Parameters: deviceBounds - the device space bounding box of the graphics primitive being rendered Parameters: userBounds - the user space bounding box of the graphics primitive being rendered Parameters: t - the AffineTransform from userspace into device space (gradientTransform should be concatenated with this) Parameters: hints - the hints that the context object uses to choosebetween rendering alternatives Parameters: cx - the center X coordinate in user space of the circle defining the gradient. The last color of the gradient is mapped tothe perimeter of this circle. Parameters: cy - the center Y coordinate in user space of the circle defining the gradient. The last color of the gradient is mapped tothe perimeter of this circle. Parameters: r - the radius of the circle defining the extents of the color gradient Parameters: fx - the X coordinate in user space to which the first coloris mapped Parameters: fy - the Y coordinate in user space to which the first coloris mapped Parameters: fractions - the fractions specifying the gradient distribution Parameters: colors - the gradient colors Parameters: cycleMethod - either NO_CYCLE, REFLECT, or REPEAT Parameters: colorSpace - which colorspace to use for interpolation, either SRGB or LINEAR_RGB |
fillRaster | protected void fillRaster(int pixels, int off, int adjust, int x, int y, int w, int h)(Code) | | Return a Raster containing the colors generated for the graphics
operation.
x,y,w,h the area in device space for which colors aregenerated. |
|
|