| java.lang.Object com.xoetrope.batik.ext.awt.MultipleGradientPaintContext com.xoetrope.batik.ext.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 author: Vincent Hardy version: $Id: RadialGradientPaintContext.java,v 1.2 2006/08/31 09:28:47 val Exp $ |
Constructor Summary | |
public | RadialGradientPaintContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform t, RenderingHints hints, float cx, float cy, float r, float fx, float fy, float[] fractions, Color[] colors, MultipleGradientPaint.CycleMethodEnum cycleMethod, MultipleGradientPaint.ColorSpaceEnum colorSpace) Constructor for RadialGradientPaintContext.
Parameters: cm - ColorModel that receivesthe Paint data. |
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 | public RadialGradientPaintContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform t, RenderingHints hints, float cx, float cy, float r, float fx, float fy, float[] fractions, Color[] colors, MultipleGradientPaint.CycleMethodEnum cycleMethod, MultipleGradientPaint.ColorSpaceEnum colorSpace) throws NoninvertibleTransformException(Code) | | Constructor for RadialGradientPaintContext.
Parameters: cm - 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 point in user space of the circle defining the gradient. The last color of the gradient is mapped to the perimeter of this circle X coordinate Parameters: cy - the center point in user space of the circle defining the gradient. The last color of the gradient is mapped to the perimeter of this circle Y coordinate Parameters: r - the radius of the circle defining the extents of the color gradient Parameters: fx - the point in user space to which the first color is mappedX coordinate Parameters: fy - the point in user space to which the first color is mappedY coordinate 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. |
Methods inherited from com.xoetrope.batik.ext.awt.MultipleGradientPaintContext | final protected void calculateGradientFractions(Color[] loColors, Color[] hiColors)(Code)(Java Doc) final public void dispose()(Code)(Java Doc) abstract protected void fillRaster(int pixels, int off, int adjust, int x, int y, int w, int h)(Code)(Java Doc) final protected static synchronized WritableRaster getCachedRaster(ColorModel cm, int w, int h)(Code)(Java Doc) final public ColorModel getColorModel()(Code)(Java Doc) final public Raster getRaster(int x, int y, int w, int h)(Code)(Java Doc) final protected int indexGradientAntiAlias(float position, float sz)(Code)(Java Doc) final protected int indexIntoGradientsArrays(float position)(Code)(Java Doc) final protected static synchronized void putCachedRaster(ColorModel cm, WritableRaster ras)(Code)(Java Doc)
|
|
|