Searched defs:fractions (Results 1 - 13 of 13) sorted by relevance

/openjdk7/jdk/src/share/classes/java/awt/
H A DLinearGradientPaint.java122 * @param fractions numbers ranging from 0.0 to 1.0 specifying the
127 * if {@code fractions} array is null,
131 * or {@code fractions.length != colors.length},
133 * or a {@code fractions} value is less than 0.0 or greater than 1.0,
134 * or the {@code fractions} are not provided in strictly increasing order
138 float[] fractions, Color[] colors)
142 fractions,
159 * @param fractions numbers ranging from 0.0 to 1.0 specifying the
166 * if {@code fractions} array is null,
171 * or {@code fractions
136 LinearGradientPaint(float startX, float startY, float endX, float endY, float[] fractions, Color[] colors) argument
176 LinearGradientPaint(float startX, float startY, float endX, float endY, float[] fractions, Color[] colors, CycleMethod cycleMethod) argument
209 LinearGradientPaint(Point2D start, Point2D end, float[] fractions, Color[] colors) argument
241 LinearGradientPaint(Point2D start, Point2D end, float[] fractions, Color[] colors, CycleMethod cycleMethod) argument
281 LinearGradientPaint(Point2D start, Point2D end, float[] fractions, Color[] colors, CycleMethod cycleMethod, ColorSpaceType colorSpace, AffineTransform gradientTransform) argument
[all...]
H A DLinearGradientPaintContext.java71 * @param fractions the fractions specifying the gradient distribution
85 float[] fractions,
90 super(paint, cm, deviceBounds, userBounds, t, hints, fractions,
77 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) argument
H A DMultipleGradientPaint.java86 final float[] fractions; field in class:MultipleGradientPaint
115 * @param fractions numbers ranging from 0.0 to 1.0 specifying the
125 * if {@code fractions} array is null,
131 * if {@code fractions.length != colors.length},
133 * or a {@code fractions} value is less than 0.0 or greater than 1.0,
134 * or the {@code fractions} are not provided in strictly increasing order
136 MultipleGradientPaint(float[] fractions, argument
142 if (fractions == null) {
163 if (fractions.length != colors.length) {
164 throw new IllegalArgumentException("Colors and fractions mus
[all...]
H A DRadialGradientPaint.java176 * @param fractions numbers ranging from 0.0 to 1.0 specifying the
183 * if {@code fractions} array is null,
187 * or {@code fractions.length != colors.length},
189 * or a {@code fractions} value is less than 0.0 or greater than 1.0,
190 * or the {@code fractions} are not provided in strictly increasing order
193 float[] fractions, Color[] colors)
198 fractions,
212 * @param fractions numbers ranging from 0.0 to 1.0 specifying the
220 * or {@code fractions} array is null,
224 * or {@code fractions
192 RadialGradientPaint(float cx, float cy, float radius, float[] fractions, Color[] colors) argument
229 RadialGradientPaint(Point2D center, float radius, float[] fractions, Color[] colors) argument
271 RadialGradientPaint(float cx, float cy, float radius, float[] fractions, Color[] colors, CycleMethod cycleMethod) argument
311 RadialGradientPaint(Point2D center, float radius, float[] fractions, Color[] colors, CycleMethod cycleMethod) argument
358 RadialGradientPaint(float cx, float cy, float radius, float fx, float fy, float[] fractions, Color[] colors, CycleMethod cycleMethod) argument
401 RadialGradientPaint(Point2D center, float radius, Point2D focus, float[] fractions, Color[] colors, CycleMethod cycleMethod) argument
451 RadialGradientPaint(Point2D center, float radius, Point2D focus, float[] fractions, Color[] colors, CycleMethod cycleMethod, ColorSpaceType colorSpace, AffineTransform gradientTransform) argument
532 RadialGradientPaint(Rectangle2D gradientBounds, float[] fractions, Color[] colors, CycleMethod cycleMethod) argument
[all...]
H A DMultipleGradientPaintContext.java115 private float[] fractions; field in class:MultipleGradientPaintContext
156 float[] fractions,
204 this.fractions = fractions;
244 * gradient colors based on an array of fractions and color values at
245 * those fractions.
268 normalizedIntervals = new float[fractions.length-1];
270 // convert from fractions into intervals
273 normalizedIntervals[i] = this.fractions[i+1] - this.fractions[
150 MultipleGradientPaintContext(MultipleGradientPaint mgp, ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform t, RenderingHints hints, float[] fractions, Color[] colors, CycleMethod cycleMethod, ColorSpaceType colorSpace) argument
[all...]
H A DRadialGradientPaintContext.java103 * @param fractions the fractions specifying the gradient distribution
118 float[] fractions,
124 fractions, colors, cycleMethod, colorSpace);
109 RadialGradientPaintContext(RadialGradientPaint paint, ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform t, RenderingHints hints, float cx, float cy, float r, float fx, float fy, float[] fractions, Color[] colors, CycleMethod cycleMethod, ColorSpaceType colorSpace) argument
/openjdk7/jdk/src/windows/native/sun/java2d/d3d/
H A DD3DPaints.cpp329 * supports only a few fractions/colors, and then another, less optimal
353 jfloat *fractions = (jfloat *)pFractions; local
360 // update the "uniform" fractions and scale factors
363 fractions[i] : 0.0f;
365 1.0f / (fractions[i+1] - fractions[i]) : 0.0f;
433 void *fractions, void *pixels)
453 // update the common "uniform" values (fractions and colors)
455 numStops, fractions, pixels);
480 void *fractions, voi
429 D3DPaints_SetLinearGradientPaint(D3DContext *d3dc, D3DSDOps *dstOps, jboolean useMask, jboolean linear, jint cycleMethod, jint numStops, jfloat p0, jfloat p1, jfloat p3, void *fractions, void *pixels) argument
474 D3DPaints_SetRadialGradientPaint(D3DContext *d3dc, D3DSDOps *dstOps, jboolean useMask, jboolean linear, jint cycleMethod, jint numStops, jfloat m00, jfloat m01, jfloat m02, jfloat m10, jfloat m11, jfloat m12, jfloat focusX, void *fractions, void *pixels) argument
[all...]
H A DD3DRenderQueue.cpp750 void *fractions, *pixels; local
751 fractions = b; SKIP_BYTES(b, numStops * sizeof(jfloat));
757 fractions, pixels);
773 void *fractions, *pixels; local
774 fractions = b; SKIP_BYTES(b, numStops * sizeof(jfloat));
782 fractions, pixels);
/openjdk7/jdk/src/share/native/sun/java2d/opengl/
H A DOGLPaints.c363 * supports only a few fractions/colors, and then another, less optimal
395 // maximum number of fractions/colors supported by this shader
403 // array of gradient stops/fractions
404 "uniform float fractions[MAX_FRACTIONS];"
441 * One naive way to implement this would be to iterate through the fractions
454 * scaleFactors[i] = 1.0 / (fractions[i+1] - fractions[i]);
456 * For each iteration, we subtract fractions[i] from dist and then multiply
473 " clamp((dist - fractions[i]) * scaleFactors[i], 0.0, 1.0);"
637 GLfloat *fractions local
735 OGLPaints_SetLinearGradientPaint(OGLContext *oglc, OGLSDOps *dstOps, jboolean useMask, jboolean linear, jint cycleMethod, jint numStops, jfloat p0, jfloat p1, jfloat p3, void *fractions, void *pixels) argument
858 OGLPaints_SetRadialGradientPaint(OGLContext *oglc, OGLSDOps *dstOps, jboolean useMask, jboolean linear, jint cycleMethod, jint numStops, jfloat m00, jfloat m01, jfloat m02, jfloat m10, jfloat m11, jfloat m12, jfloat focusX, void *fractions, void *pixels) argument
[all...]
H A DOGLRenderQueue.c586 void *fractions, *pixels; local
587 fractions = b; SKIP_BYTES(b, numStops * sizeof(jfloat));
593 fractions, pixels);
609 void *fractions, *pixels; local
610 fractions = b; SKIP_BYTES(b, numStops * sizeof(jfloat));
618 fractions, pixels);
/openjdk7/jdk/src/solaris/classes/sun/java2d/xr/
H A DXRBackend.java105 float[] fractions, int[] pixels,
108 public int createLinearGradient(Point2D p1, Point2D p2, float[] fractions, argument
103 createRadialGradient(Point2D inner, Point2D outer, float innerRadius, float outerRadius, float[] fractions, int[] pixels, int repeat, AffineTransform transform) argument
H A DXRBackendNative.java177 public int createLinearGradient(Point2D p1, Point2D p2, float[] fractions, argument
182 XRCreateLinearGradientPaintNative(fractions, colorValues,
185 fractions.length, repeat,
197 float[] fractions, int[] pixels, int repeat,
202 (fractions, colorValues, fractions.length,
195 createRadialGradient(Point2D inner, Point2D outer, float innerRadius, float outerRadius, float[] fractions, int[] pixels, int repeat, AffineTransform trx) argument
/openjdk7/jdk/src/solaris/native/sun/java2d/x11/
H A DXRBackendNative.c455 jfloat* fractions; local
467 if ((fractions = (jfloat *)
484 stops[i] = XDoubleToFixed(fractions[i]);
501 (*env)->ReleasePrimitiveArrayCritical(env, fractionsArray, fractions, JNI_ABORT);
522 jfloat* fractions; local
535 if ((fractions = (jfloat *)
554 stops[i] = XDoubleToFixed(fractions[i]);
571 (*env)->ReleasePrimitiveArrayCritical(env, fractionsArray, fractions, JNI_ABORT);

Completed in 106 milliseconds