Searched refs:colors (Results 1 - 25 of 63) sorted by relevance

123

/openjdk7/jdk/src/share/classes/java/awt/
H A DMultipleGradientPaint.java49 * Use the terminal colors to fill the remaining area.
54 * Cycle the gradient colors start-to-end, end-to-start
60 * Cycle the gradient colors start-to-end, start-to-end
88 /** Gradient colors. */
89 final Color[] colors; field in class:MultipleGradientPaint
116 * distribution of colors along the gradient
117 * @param colors array of colors corresponding to each fractional value
126 * or {@code colors} array is null,
131 * if {@code fractions.length != colors
136 MultipleGradientPaint(float[] fractions, Color[] colors, CycleMethod cycleMethod, ColorSpaceType colorSpace, AffineTransform gradientTransform) argument
[all...]
H A DLinearGradientPaint.java37 * may specify two or more gradient colors, and this paint will provide an
43 * colors along the gradient. These values should range from 0.0 to 1.0 and
49 * at these positions and the first and last colors will be replicated there.
63 * The distances between any two colors in any of the reflected or repeated
65 * colors between the start and end points.
69 * default, which means the endpoint colors will be used to fill the
83 * Color[] colors = {Color.RED, Color.WHITE, Color.BLUE};
85 * new LinearGradientPaint(start, end, dist, colors);
123 * distribution of colors along the gradient
124 * @param colors arra
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 DRadialGradientPaint.java37 * gradient colors, and this paint will provide an interpolation between
48 * smoothly for any in-between colors specified by the user. Any line drawn
50 * colors.
59 * colors along the gradient. These values should range from 0.0 to 1.0 and
65 * at these positions and the first and last colors will be replicated there.
110 * Color[] colors = {Color.RED, Color.WHITE, Color.BLUE};
112 * new RadialGradientPaint(center, radius, dist, colors);
132 * Color[] colors = {Color.RED, Color.WHITE, Color.BLUE};
135 * dist, colors,
177 * distribution of colors alon
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.java56 * The PaintContext's ColorModel. This is ARGB if colors are not all
61 /** Color model used if gradient colors are all opaque. */
86 * array of gradient colors. If this boolean value is false, then we have
94 * colors the fast way.
117 /** Used to determine if gradient colors are all opaque. */
133 * Constant number of max colors between any 2 arbitrary colors.
157 Color[] colors,
216 calculateLookupData(colors);
244 * gradient colors base
150 MultipleGradientPaintContext(MultipleGradientPaint mgp, ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform t, RenderingHints hints, float[] fractions, Color[] colors, CycleMethod cycleMethod, ColorSpaceType colorSpace) argument
247 calculateLookupData(Color[] colors) argument
338 calculateSingleArrayGradient(Color[] colors, float Imin) argument
408 calculateMultipleArrayGradient(Color[] colors) argument
[all...]
H A DLinearGradientPaintContext.java72 * @param colors the gradient colors
86 Color[] colors,
91 colors, cycleMethod, colorSpace);
126 * Return a Raster containing the colors generated for the graphics
127 * operation. This is where the area is filled with colors distributed
130 * @param x,y,w,h the area in device space for which colors are
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
/openjdk7/jdk/src/solaris/native/sun/awt/
H A Drobot_common.c51 XColor *colors ; local
54 *src_colors = colors = (XColor *)calloc(ncolors,sizeof(XColor) ) ;
60 colors[i].pixel = i ;
61 colors[i].pad = 0;
62 colors[i].flags = DoRed|DoGreen|DoBlue;
87 if( (uint32_t)i <= redMask) colors[i].pixel = (i<<redShift) ;
88 if( (uint32_t)i <= greenMask) colors[i].pixel |= (i<<greenShift) ;
89 if( (uint32_t)i <= blueMask) colors[i].pixel |= (i<<blueShift) ;
92 colors[i].pixel = (i<<redShift)|(i<<greenShift)|(i<<blueShift);
94 colors[
[all...]
/openjdk7/hotspot/src/share/tools/IdealGraphVisualizer/Util/src/com/sun/hotspot/igv/util/
H A DRangeSliderModel.java46 private List<Color> colors; field in class:RangeSliderModel
56 boolean colorChanged = (colors != model.colors);
57 colors = model.colors;
75 colors = new ArrayList<Color>();
77 colors.add(Color.black);
83 public void setColors(List<Color> colors) { argument
84 this.colors = colors;
[all...]
/openjdk7/jdk/test/javax/swing/JColorChooser/
H A DTest4193384.java44 private static void test(Color[] colors) { argument
51 for (int i = 0; i < colors.length; i++) {
52 Color color = colors[i];
66 throw new Error("a custom preview panel doesn't handle colors");
/openjdk7/jdk/src/share/classes/sun/swing/plaf/synth/
H A DDefaultSynthStyle.java141 // For the enabled state, prefer the widget's colors
713 private Color[] colors; field in class:DefaultSynthStyle.StateInfo
730 * @param colors Colors for this state
732 public StateInfo(int state, Font font, Color[] colors) { argument
735 this.colors = colors;
753 if (info.colors != null) {
754 this.colors = new Color[info.colors.length];
755 System.arraycopy(info.colors,
791 setColors(Color[] colors) argument
[all...]
/openjdk7/jdk/src/share/demo/applets/BarChart/
H A DBarChart.java63 private Color colors[]; field in class:BarChart
79 colors = new Color[columns];
160 colors[i] = Color.red;
162 colors[i] = Color.green;
164 colors[i] = Color.blue;
166 colors[i] = Color.pink;
168 colors[i] = Color.orange;
170 colors[i] = Color.magenta;
172 colors[i] = Color.cyan;
174 colors[
[all...]
/openjdk7/jdk/src/solaris/classes/sun/awt/X11/
H A DMotifColorUtilities.java423 int colors[] = new int[8];
433 colors[i] = 0xff000000 | r<<16 | g<<8 | b;
434 // System.out.println("color["+i+"]="+Integer.toHexString(colors[i]) + "r = " +r + "g="+g+"b="+b);
437 systemColors[SystemColor.ACTIVE_CAPTION] = colors[0];
438 systemColors[SystemColor.ACTIVE_CAPTION_BORDER] = colors[0];
440 systemColors[SystemColor.INACTIVE_CAPTION] = colors[1];
441 systemColors[SystemColor.INACTIVE_CAPTION_BORDER] = colors[1];
443 systemColors[SystemColor.WINDOW] = colors[1];
445 systemColors[SystemColor.WINDOW_BORDER] = colors[1];
446 systemColors[SystemColor.MENU] = colors[
[all...]
H A DListHelper.java79 private Color[] colors; // Passed in for painting on notifyValue() field in class:ListHelper
91 Color[] colors,
103 this.colors = colors;
461 paintItems(g, colors, bounds, first, last);
473 colors = newColors;
478 Color[] colors,
487 Color[] colors,
496 Color[] colors,
498 paintItems(g, colors, bound
90 ListHelper(XWindow peer, Color[] colors, int initialSize, boolean multiSelect, boolean scrollVert, boolean scrollHoriz, Font font, int maxVisItems, int SPACE, int MARGIN, int BORDER, int SCROLLBAR) argument
486 paintItems(Graphics g, Color[] colors, Rectangle bounds) argument
495 paintAllItems(Graphics g, Color[] colors, Rectangle bounds) argument
501 paintItems(Graphics g, Color[] colors, Rectangle bounds, int first, int last) argument
534 paintItem(Graphics g, Color[] colors, String string, int x, int y, int width, int height, boolean selected, boolean focused) argument
591 paintVSB(Graphics g, Color colors[], Rectangle bounds) argument
607 paintHSB(Graphics g, Color colors[], Rectangle bounds) argument
[all...]
H A DXScrollPanePeer.java278 Color colors[] = getGUIcolors();
295 paintHorScrollbar(g, colors, true);
307 paintVerScrollbar(g, colors, true);
325 void paintScrollBars(Graphics g, Color[] colors) { argument
327 paintVerScrollbar(g, colors, true);
332 paintHorScrollbar(g, colors, true);
339 Color colors[] = getGUIcolors();
341 paintScrollBars(g,colors);
348 Color colors[] = getGUIcolors();
351 paintVerScrollbar(g,colors,tru
401 paintHorScrollbar(Graphics g, Color colors[], boolean paintAll) argument
437 paintVerScrollbar(Graphics g, Color colors[], boolean paintAll) argument
[all...]
/openjdk7/jdk/src/share/classes/javax/swing/plaf/metal/
H A DMetalSplitPaneDivider.java125 Color[] colors = {
141 colors[1] = colors[2];
152 colors[buffer[j-1][i-1]]);
176 colors[buffer[j-1][i-1]]);
234 Color[] colors = {
250 colors[1] = colors[2];
261 colors[buffer[j-1][i-1]]);
285 colors[buffe
[all...]
/openjdk7/jdk/test/javax/imageio/plugins/bmp/
H A DBMPSubsamplingTest.java86 Color[] colors = new Color[] { Color.red, Color.green, Color.blue }; field in class:BMPSubsamplingTest
93 int w = dx * colors.length + srcXSubsampling;
300 for (int i = 0; i < colors.length; i++) {
301 g.setColor(colors[i]);
317 for (int i = 0; i < colors.length; i++) {
318 r[i] = (byte)(0xff & colors[i].getRed());
319 g[i] = (byte)(0xff & colors[i].getGreen());
320 b[i] = (byte)(0xff & colors[i].getBlue());
350 for (int i = 0; i < colors.length; i++) {
352 int srcRgb = colors[
[all...]
/openjdk7/jdk/src/share/classes/sun/java2d/pipe/
H A DBufferedPaints.java123 * clamp the colors properly at the extremes.) The following diagram
125 * GradientPaint colors (C1 and C2):
136 * non-obvious, but since the gradient colors are generated by
161 // convert gradient colors to IntArgbPre format
355 private static int[] convertToIntArgbPrePixels(Color[] colors, argument
358 int[] pixels = new int[colors.length];
359 for (int i = 0; i < colors.length; i++) {
360 pixels[i] = colorToIntArgbPrePixel(colors[i], linear);
393 Color[] colors = paint.getColors();
394 int numStops = colors
[all...]
/openjdk7/jdk/test/javax/imageio/plugins/jpeg/
H A DConcurrentWritingTest.java102 Color[] colors = { Color.red, Color.green, Color.blue };
107 new RadialGradientPaint(center, 0.5f * w, dist, colors);
H A DReadAsGrayTest.java55 static Color[] colors = new Color[] { field in class:ReadAsGrayTest
137 for (int i = 0; i < colors.length; i++) {
168 BufferedImage img = new BufferedImage(dx * colors.length, h, type);
171 for (int i = 0; i < colors.length; i++) {
172 g.setColor(colors[i]);
/openjdk7/jdk/src/solaris/classes/sun/java2d/xr/
H A DXRPaints.java153 Color[] colors = paint.getColors();
163 int[] pixels = convertToIntArgbPixels(colors, linear);
189 Color[] colors = paint.getColors();
195 int[] pixels = convertToIntArgbPixels(colors, linear);
289 public int[] convertToIntArgbPixels(Color[] colors, boolean linear) { argument
290 int[] pixels = new int[colors.length];
291 for (int i = 0; i < colors.length; i++) {
292 pixels[i] = colorToIntArgbPixel(colors[i], linear);
/openjdk7/jdk/src/windows/native/sun/java2d/windows/
H A DGDIBlitLoops.cpp41 } colors; member in struct:tagBitmapheader
155 memcpy(bmi.colors.palette, srcInfo.lutBase, srcInfo.lutSize * sizeof(RGBQUAD));
177 memcpy(bmi.colors.palette, byteGrayPalette, 256 * sizeof(RGBQUAD));
181 bmi.colors.dwMasks[0] = rmask;
182 bmi.colors.dwMasks[1] = gmask;
183 bmi.colors.dwMasks[2] = bmask;
/openjdk7/jdk/src/share/classes/javax/swing/colorchooser/
H A DDefaultSwatchChooserPanel.java272 protected Color[] colors; field in class:SwatchPanel
432 return colors[ (row * numSwatches.width) + column ]; // (STEVE) - change data orientation here
452 colors = new Color[numColors];
454 colors[i] = defaultRecentColor;
460 System.arraycopy( colors, 0, colors, 1, colors.length-1);
461 colors[0] = c;
480 colors = new Color[numColors];
482 colors[
[all...]
/openjdk7/jdk/src/solaris/native/sun/java2d/x11/
H A DXRBackendNative.c78 const XRenderColor *colors,
85 const XRenderColor *colors,
459 XRenderColor *colors; local
480 colors = (XRenderColor *) malloc(numStops * sizeof(XRenderColor));
485 colors[i].alpha = pixels[i*4 + 0];
486 colors[i].red = pixels[i*4 + 1];
487 colors[i].green = pixels[i*4 + 2];
488 colors[i].blue = pixels[i*4 + 3];
492 gradient = (*XRenderCreateLinearGradientFunc)(awt_display, &grad, stops, colors, numStops);
495 gradient = XRenderCreateLinearGradient(awt_display, &grad, stops, colors, numStop
526 XRenderColor *colors; local
[all...]
/openjdk7/jdk/make/tools/src/build/tools/generatenimbus/
H A DPainterGenerator.java48 * do they have common paths? Do they have common colors? Gradients? Is the painting
49 * code for the different states identical other than for colors?
74 private Map<String, String> colors = new HashMap<String, String>(); field in class:PainterGenerator
106 * Map of component colors keyed by state constant name
111 * For the current state the list of all component colors used by this
141 //generate all the code for component colors
176 //create new array for component colors for this state
367 //collect component colors
435 String variableName = colors.get(declaration);
438 colors
[all...]
/openjdk7/hotspot/src/share/tools/IdealGraphVisualizer/View/src/com/sun/hotspot/igv/view/
H A DDiagramViewModel.java211 List<Color> colors = new ArrayList<Color>();
213 colors.add(Color.black);
223 Color curColor = colors.get(index);
241 colors.set(index, curColor);
245 this.setColors(colors);
247 setColors(colors);
/openjdk7/jdk/test/java/awt/image/mlib/
H A DMlibOpsTest.java121 Color[] colors = { Color.red, Color.green, Color.blue };
126 new RadialGradientPaint(center, 0.5f * w, dist, colors);

Completed in 189 milliseconds

123