/openjdk7/jdk/src/share/classes/java/awt/ |
H A D | MultipleGradientPaint.java | 86 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 D | LinearGradientPaint.java | 122 * @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 D | RadialGradientPaint.java | 176 * @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 D | LinearGradientPaintContext.java | 71 * @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 D | MultipleGradientPaintContext.java | 115 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 D | RadialGradientPaintContext.java | 103 * @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 D | D3DPaints.h | 110 void *fractions, void *pixels); 120 void *fractions, void *pixels);
|
H A D | D3DPaints.cpp | 329 * 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 D | D3DRenderQueue.cpp | 750 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 D | OGLPaints.h | 47 void *fractions, void *pixels); 55 void *fractions, void *pixels);
|
H A D | OGLPaints.c | 363 * 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 D | OGLRenderQueue.c | 586 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/make/tools/src/build/tools/generatenimbus/ |
H A D | PainterGenerator.java | 492 * Takes a abstract gradient and creates the code for the fractions float 505 // number of fractions and colors. 506 float[] fractions = new float[stops.size() + stops.size() - 1]; 507 String[] colors = new String[fractions.length]; 509 int index = 0; // the index into fractions and colors 514 fractions[index] = s.getPosition(); 517 if (index < fractions.length - 1) { 521 fractions[index] = f1 + (f2 - f1) * s.getMidpoint(); 529 for (int i = 1; i < fractions.length; i++) { 530 //to avoid an error with LinearGradientPaint where two fractions [all...] |
/openjdk7/jdk/src/solaris/classes/sun/java2d/xr/ |
H A D | XRPaints.java | 113 float fractions[] = new float[2]; 114 fractions[0] = 0; 115 fractions[1] = 1; 130 int gradient = con.createLinearGradient(pt1, pt2, fractions, pixels, repeat, at); 162 float[] fractions = paint.getFractions(); 172 int gradient = con.createLinearGradient(pt1, pt2, fractions, pixels, repeat, at); 194 float[] fractions = paint.getFractions(); 228 int gradient = con.createRadialGradient(new Point2D.Float(0, 0), new Point2D.Float(0, 0), 0, radius, fractions, pixels, repeat, at);
|
H A D | XRBackendNative.java | 177 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
|
H A D | XRBackend.java | 105 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
|
/openjdk7/jdk/test/sun/java2d/OpenGL/ |
H A D | GradientPaints.java | 178 float[] fractions = new float[colors.length]; 179 for (int i = 0; i < fractions.length; i++) { 180 fractions[i] = ((float)i) / (fractions.length-1); 217 fractions, colors, 227 fractions, colors,
|
/openjdk7/jdk/test/java/awt/MultipleGradientPaint/ |
H A D | MultiGradientTest.java | 244 float[] fractions = new float[colors.length]; 245 for (int i = 0; i < fractions.length; i++) { 246 fractions[i] = ((float)i) / (fractions.length-1); 261 fractions, colors, 271 fractions, colors,
|
/openjdk7/jdk/src/share/classes/sun/java2d/pipe/ |
H A D | BufferedPaints.java | 295 * hardware could handle 16, or even 32 fractions without any problem. 414 float[] fractions = paint.getFractions(); 451 buf.put(fractions); 477 float[] fractions = paint.getFractions(); 530 buf.put(fractions);
|
/openjdk7/jdk/src/solaris/native/sun/java2d/x11/ |
H A D | XRBackendNative.c | 455 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);
|
/openjdk7/jdk/src/share/demo/java2d/J2DBench/src/j2dbench/tests/ |
H A D | RenderTests.java | 353 float[] fractions = new float[numColors]; 354 for (int i = 0; i < fractions.length; i++) { 355 fractions[i] = i * interval; 360 fractions, colors, 366 float[] fractions = new float[numColors]; 367 for (int i = 0; i < fractions.length; i++) { 368 fractions[i] = i * interval; 372 fractions, colors,
|