| java.lang.Object com.xoetrope.batik.ext.awt.MultipleGradientPaintContext com.xoetrope.batik.ext.awt.LinearGradientPaintContext
Constructor Summary | |
public | LinearGradientPaintContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform t, RenderingHints hints, Point2D dStart, Point2D dEnd, float[] fractions, Color[] colors, MultipleGradientPaint.CycleMethodEnum cycleMethod, MultipleGradientPaint.ColorSpaceEnum colorSpace) Constructor for LinearGradientPaintContext.
Parameters: cm - ColorModel that receivesthe Paint data. |
Method Summary | |
protected void | fillHardNoCycle(int[] pixels, int off, int adjust, int x, int y, int w, int h) | 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. | protected void | fillSimpleNoCycle(int[] pixels, int off, int adjust, int x, int y, int w, int h) | protected void | fillSimpleReflect(int[] pixels, int off, int adjust, int x, int y, int w, int h) | protected void | fillSimpleRepeat(int[] pixels, int off, int adjust, int x, int y, int w, int h) |
LinearGradientPaintContext | public LinearGradientPaintContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform t, RenderingHints hints, Point2D dStart, Point2D dEnd, float[] fractions, Color[] colors, MultipleGradientPaint.CycleMethodEnum cycleMethod, MultipleGradientPaint.ColorSpaceEnum colorSpace) throws NoninvertibleTransformException(Code) | | Constructor for LinearGradientPaintContext.
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: dStart - gradient start point, in user space Parameters: dEnd - gradient end point, in user space 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 |
fillHardNoCycle | protected void fillHardNoCycle(int[] pixels, int off, int adjust, int x, int y, int w, int h)(Code) | | |
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. This is where the area is filled with colors distributed
linearly.
x,y,w,h The area in device space for which colors aregenerated. |
fillSimpleNoCycle | protected void fillSimpleNoCycle(int[] pixels, int off, int adjust, int x, int y, int w, int h)(Code) | | |
fillSimpleReflect | protected void fillSimpleReflect(int[] pixels, int off, int adjust, int x, int y, int w, int h)(Code) | | |
fillSimpleRepeat | protected void fillSimpleRepeat(int[] pixels, int off, int adjust, int x, int y, int w, int h)(Code) | | |
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)
|
|
|