Lines Matching refs:gradient

47  * gradient to fill in their raster.  It provides the actual color
49 * the gradient to fill pixels in a raster.
61 /** Color model used if gradient colors are all opaque. */
74 /** The method to use when painting out of the gradient bounds. */
86 * array of gradient colors. If this boolean value is false, then we have
87 * to use a 2-step process where we have to determine which gradient array
103 protected int[] gradient;
106 * Array of gradient arrays, one array for each interval. Used by
117 /** Used to determine if gradient colors are all opaque. */
207 // store the fast gradient array or the slow one, but never both
209 int[] gradient =
210 (mgp.gradient != null) ? mgp.gradient.get() : null;
214 if (gradient == null && gradients == null) {
226 mgp.gradient = new SoftReference<int[]>(this.gradient);
236 this.gradient = gradient;
244 * gradient colors based on an array of fractions and color values at
267 // this will store the intervals (distances) between gradient stops
318 * This method calculates the gradient color values and places them in a
319 * single int array, gradient[]. It does this by allocating space for
332 * disproportionately small gradient interval. In this case the other
370 gradient = new int[gradientsTot];
373 System.arraycopy(gradients[i], 0, gradient,
377 gradient[gradient.length-1] = colors[colors.length-1].getRGB();
382 for (int i = 0; i < gradient.length; i++) {
383 gradient[i] = convertEntireColorLinearRGBtoSRGB(gradient[i]);
387 fastGradientArraySize = gradient.length - 1;
393 * This method calculates the gradient color values for each interval and
564 return gradient[(int)(position * fastGradientArraySize)];
568 // for all the gradient interval arrays