Searched defs:colors (Results 1 - 25 of 40) sorted by relevance

12

/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/com/sun/java/swing/plaf/gtk/
H A DXColors.java67 int pos = Arrays.binarySearch(colors, key);
73 return colors[pos].toColor();
76 private static final XColor[] colors = { field in class:XColors
/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/jdk/test/javax/imageio/plugins/jpeg/
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/share/classes/java/awt/
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 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
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 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 DRadialGradientPaintContext.java104 * @param colors the gradient colors
119 Color[] colors,
124 fractions, colors, cycleMethod, colorSpace);
167 * Return a Raster containing the colors generated for the graphics
170 * @param x,y,w,h the area in device space for which colors are
312 * Fill the raster, cycling the gradient colors when a point falls outside
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/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/java/awt/Graphics2D/MTGraphicsAccessTest/
H A DMTGraphicsAccessTest.java56 static final Paint colors[] = { field in class:MTGraphicsAccessTest
227 sharedGraphics.setPaint(colors[c++ % colors.length]);
/openjdk7/jdk/test/javax/imageio/plugins/png/
H A DPngOutputTypeTest.java226 static Color[] colors = new Color[] { Color.red, Color.green, Color.blue }; field in class:PngOutputTypeTest
234 int dx = w / colors.length;
236 for (int i = 0; i < colors.length; i++) {
239 img.setRGB(x, y, colors[i].getRGB());
/openjdk7/jdk/test/sun/java2d/pipe/MutableColorTest/
H A DMutableColorTest.java54 Color colors[] = { Color.red, Color.green, Color.blue }; field in class:MutableColorTest.EvilColor
62 return colors[currentIndex].getRGB();
171 * We assume that colors with slightly different components
/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/langtools/src/share/sample/javac/processing/src/
H A DCheckNamesProcessor.java502 enum colors { enum in class:BADLY_NAMED_CODE
/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/share/demo/applets/DrawTest/
H A DDrawTest.java111 List<Color> colors = new ArrayList<Color>(); field in class:DrawPanel
143 colors.add(getForeground());
167 colors.add(getForeground());
181 colors.add(getForeground());
212 g.setColor(colors.get(i));
/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/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/hotspot/agent/src/share/classes/sun/jvm/hotspot/ui/
H A DAnnotatedMemoryPanel.java86 // Darker colors than defaults for better readability
87 private static Color[] colors = { field in class:AnnotatedMemoryPanel
566 anno.setColor(colors[0]);
590 anno.setColor(colors[0]);
607 return colors[colors.length - 1];
609 return colors[i - 1];
615 return colors[(findColorIndex(c) + 1) % colors.length];
619 for (int i = 0; i < colors
[all...]
/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/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...]
H A DSynthModel.java39 @XmlElementWrapper(name="colors")
40 private ArrayList<UIColor> colors; field in class:SynthModel
58 for (UIColor c: colors) defBuffer.append(c.write());

Completed in 81 milliseconds

12