| java.lang.Object java.awt.MultipleGradientPaintContext java.awt.LinearGradientPaintContext
Constructor Summary | |
| LinearGradientPaintContext(LinearGradientPaint paint, ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform t, RenderingHints hints, Point2D start, Point2D end, float[] fractions, Color[] colors, CycleMethod cycleMethod, ColorSpaceType colorSpace) Constructor for LinearGradientPaintContext.
Parameters: paint - the LinearGradientPaint from which this contextis created 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. |
LinearGradientPaintContext | LinearGradientPaintContext(LinearGradientPaint paint, ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform t, RenderingHints hints, Point2D start, Point2D end, float[] fractions, Color[] colors, CycleMethod cycleMethod, ColorSpaceType colorSpace)(Code) | | Constructor for LinearGradientPaintContext.
Parameters: paint - the LinearGradientPaint from which this contextis created 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 |
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. |
|
|