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 | LinearGradientContext(LinearGradient
the paint, BaseTransform LinearGradientPaint from which this context
is createdthe t, float startx, float starty, float endx, float endy, float[] AffineTransform from user
space into device space (gradientTransform should be
concatenated with this)the fractions specifying the gradient distribution fractions, Color[] the gradient colors colors, int either NO_CYCLE, REFLECT, or REPEAT cycleMethod)Constructor for LinearGradientContext. |
| 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 com. 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 | |
| LinearGradientContext | back to summary |
|---|---|
| pack-priv LinearGradientContext(LinearGradient paint, BaseTransform t, float startx, float starty, float endx, float endy, float[] fractions, Color[] colors, int cycleMethod) Constructor for LinearGradientContext.
| |
| fillRaster | back to summary |
|---|---|
| protected void fillRaster(int[] pixels, int off, int adjust, int x, int y, int w, int h) Implements abstract com. Return a Raster containing the colors generated for the graphics operation. This is where the area is filled with colors distributed linearly.
| |