java.awt.LinearGradientPaint , java.awt.PaintContext , java.awt.Paint
| Modifier and Type | Field and Description |
|---|---|
| private float | dgdX
The following invariants are used to process the gradient value from a device space coordinate, (X, Y): g(X, Y) = dgdX*X + dgdY*Y + gc |
| private float | dgdY
The following invariants are used to process the gradient value from a device space coordinate, (X, Y): g(X, Y) = dgdX*X + dgdY*Y + gc |
| private float | gc
The following invariants are used to process the gradient value from a device space coordinate, (X, Y): g(X, Y) = dgdX*X + dgdY*Y + gc |
| Access | Constructor and Description |
|---|---|
| pack-priv | LinearGradientPaintContext(LinearGradientPaint
the paint, ColorModel LinearGradientPaint from which this context
is createdColorModel that receives
the Paint data. This is used only as a hint.the device space bounding box of the
graphics primitive being rendered deviceBounds, Rectangle2D the user space bounding box of the
graphics primitive being rendered userBounds, AffineTransform the t, RenderingHints AffineTransform from user
space into device space (gradientTransform should be
concatenated with this)the hints that the context object uses to choose
between rendering alternatives hints, Point2D gradient start point, in user space start, Point2D gradient end point, in user space end, float[] the fractions specifying the gradient distribution fractions, Color[] the gradient colors colors, MultipleGradientPaint.either NO_CYCLE, REFLECT, or REPEAT cycleMethod,which colorspace to use for interpolation,
either SRGB or LINEAR_RGB colorSpaceConstructor for LinearGradientPaintContext. |
| Modifier and Type | Method and Description |
|---|---|
| protected void | fillRaster(int[] pixels, int off, int adjust, int x, int y, int w, int h)
Implements abstract java. Return a Raster containing the colors generated for the graphics operation. |
| dgdX | back to summary |
|---|---|
| private float dgdX The following invariants are used to process the gradient value from a device space coordinate, (X, Y): g(X, Y) = dgdX*X + dgdY*Y + gc | |
| dgdY | back to summary |
|---|---|
| private float dgdY The following invariants are used to process the gradient value from a device space coordinate, (X, Y): g(X, Y) = dgdX*X + dgdY*Y + gc | |
| gc | back to summary |
|---|---|
| private float gc The following invariants are used to process the gradient value from a device space coordinate, (X, Y): g(X, Y) = dgdX*X + dgdY*Y + gc | |
| LinearGradientPaintContext | back to summary |
|---|---|
| pack-priv LinearGradientPaintContext(LinearGradientPaint paint, ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform t, RenderingHints hints, Point2D start, Point2D end, float[] fractions, Color[] colors, MultipleGradientPaint. Constructor for LinearGradientPaintContext.
| |
| fillRaster | back to summary |
|---|---|
| protected void fillRaster(int[] pixels, int off, int adjust, int x, int y, int w, int h) Implements abstract java. Return a Raster containing the colors generated for the graphics operation. This is where the area is filled with colors distributed linearly. | |