Searched refs:bg (Results 1 - 25 of 61) sorted by relevance

123

/openjdk7/jdk/src/share/classes/javax/swing/text/
H A DLabelView.java128 * @param bg background color, or null
132 protected void setBackground(Color bg) { argument
133 this.bg = bg;
148 bg = doc.getBackground(attr);
150 bg = null;
185 return bg;
310 private Color bg; field in class:LabelView
/openjdk7/jdk/test/sun/java2d/OpenGL/
H A Dbug7181438.java76 final Graphics bg = bi.getGraphics();
78 bg.setColor(new Color(0, 0, 0, 0));
79 bg.fillRect(0, 0, SIZE, SIZE);
80 bg.dispose();
/openjdk7/jdk/src/share/classes/sun/awt/image/
H A DOffScreenImage.java78 Color bg = c.getBackground();
79 if (bg == null) {
80 bg = SystemColor.window;
97 fg, bg, font);
/openjdk7/jdk/src/macosx/classes/sun/lwawt/
H A DLWCanvasPeer.java89 final Graphics2D bg = (Graphics2D) buffer.getGraphics();
91 bg.setBackground(getBackground());
92 bg.clearRect(0, 0, buffer.getWidth(), buffer.getHeight());
94 bg.dispose();
/openjdk7/jdk/test/java/awt/Graphics/DrawImageBG/
H A DSystemBgColorTest.java88 public static void test(Image src, BufferedImage dst, Color bg) { argument
92 g.drawImage(src, 0, 0, bg, null);
93 if (dst.getRGB(0, 0) != bg.getRGB()) {
94 error("bad bg pixel for: "+bg);
/openjdk7/jdk/src/share/classes/com/sun/java/swing/plaf/motif/
H A DMotifTreeCellRenderer.java74 Color bg; field in class:MotifTreeCellRenderer.TreeLeafIcon
79 bg = UIManager.getColor("Tree.iconBackground");
85 g.setColor(bg);
H A DMotifTreeUI.java95 static Color bg; field in class:MotifTreeUI.MotifExpandedIcon
101 bg = UIManager.getColor("Tree.iconBackground");
120 g.setColor(bg);
/openjdk7/jdk/src/windows/classes/sun/awt/windows/
H A DWCanvasPeer.java57 Color bg = ((Component)target).getBackground();
58 if (bg != null) {
59 setBackground(bg);
H A DWCheckboxPeer.java74 Color bg = ((Component)target).getBackground();
75 if (bg != null) {
76 setBackground(bg);
H A DWLabelPeer.java78 Color bg = ((Component)target).getBackground();
79 if (bg != null) {
80 setBackground(bg);
/openjdk7/jdk/src/share/classes/javax/swing/text/html/
H A DInlineView.java211 Color bg = doc.getBackground(a);
212 if (bg != null) {
213 setBackground(bg);
H A DHRuleView.java148 Color bg = getContainer().getBackground();
150 if (bg == null || bg.equals(Color.white)) {
/openjdk7/jdk/src/solaris/classes/sun/awt/X11/
H A DMotifColorUtilities.java163 int bg = g << 8;
180 color_value = bg;
197 color_value = bg;
216 color_value = bg;
243 int bg = g << 8;
259 color_value = bg;
276 color_value = bg;
295 color_value = bg;
319 int bg = g << 8;
335 color_value = bg;
[all...]
H A DXComponentPeer.java649 void updateMotifColors(Color bg) { argument
650 int red = bg.getRed();
651 int green = bg.getGreen();
652 int blue = bg.getBlue();
934 int bg = tc.getRed() * 30 + tc.getGreen() * 59 + tc.getBlue() * 11;
939 float ave = (float) ((fg + bg) / 51000.0);
1008 void draw3DOval(Graphics g, Color bg, argument
1012 Color shadow = bg.darker();
1013 Color highlight = bg.brighter();
1022 void draw3DRect(Graphics g, Color bg, argument
1038 drawScrollbar(Graphics g, Color bg, int thickness, int length, int min, int max, int val, int vis, boolean horizontal) argument
[all...]
/openjdk7/jdk/src/share/classes/javax/swing/
H A DDefaultListCellRenderer.java122 Color bg = null;
130 bg = DefaultLookup.getColor(this, ui, "List.dropCellBackground");
137 setBackground(bg == null ? list.getSelectionBackground() : bg);
H A DLookAndFeel.java173 Color bg = c.getBackground();
174 if (bg == null || bg instanceof UIResource) {
/openjdk7/jdk/src/share/classes/javax/swing/table/
H A DDefaultTableCellRenderer.java194 Color bg = null;
204 bg = DefaultLookup.getColor(this, ui, "Table.dropCellBackground");
212 super.setBackground(bg == null ? table.getSelectionBackground()
213 : bg);
/openjdk7/jdk/src/macosx/classes/com/apple/laf/
H A DAquaFocusHandler.java114 final Color bg = c.getSelectionBackground();
116 if (!(bg instanceof UIResource) || !(fg instanceof UIResource)) return;
137 final Color bg = c.getSelectionBackground();
139 if (!(bg instanceof UIResource) || !(fg instanceof UIResource)) return;
H A DAquaComboBoxButton.java216 final Color bg = c.getBackground();
217 final boolean inhibitBackground = bg instanceof UIResource;
222 if (inhibitBackground) c.setBackground(bg);
H A DAquaRootPaneUI.java80 final Color bg = frameParent.getBackground();
81 if (bg == null || bg instanceof UIResource) {
/openjdk7/jdk/test/javax/imageio/plugins/gif/
H A DGifTransparencyTest.java80 BufferedImage bg = new BufferedImage(2 * w, h, BufferedImage.TYPE_INT_RGB);
81 Graphics g = bg.createGraphics();
92 int src_rgb = bg.getRGB(x, y);
93 int dst_rgb = bg.getRGB(x + w, y);
/openjdk7/jdk/src/share/classes/com/sun/java/swing/plaf/windows/
H A DWindowsScrollBarUI.java380 public static Grid getGrid(Color fg, Color bg) { argument
381 String key = fg.getRGB() + " " + bg.getRGB();
385 grid = new Grid(fg, bg);
391 public Grid(Color fg, Color bg) { argument
392 int cmap[] = { fg.getRGB(), bg.getRGB() };
400 paintGrid(g, fg, bg);
452 private void paintGrid(Graphics g, Color fg, Color bg) { argument
454 g.setColor(bg);
/openjdk7/jdk/src/share/classes/javax/swing/plaf/nimbus/
H A DAbstractRegionPainter.java704 Graphics2D bg = buffer.createGraphics();
706 bg.setComposite(AlphaComposite.Clear);
707 bg.fillRect(0, 0, w, h);
708 bg.setComposite(AlphaComposite.SrcOver);
709 configureGraphics(bg);
711 paint0(bg, c, w, h, extendedCacheKeys);
713 bg.dispose();
/openjdk7/jdk/src/windows/classes/sun/java2d/d3d/
H A DD3DScreenUpdateManager.java257 * @param bgColor bg color to be used in graphics
492 // if succeeded, first fill the surface with bg color
494 Color bg = sd.getPeer().getBackgroundNoSync();
495 SunGraphics2D sg2d = new SunGraphics2D(sd, bg, bg, null);
/openjdk7/jdk/src/share/classes/sun/font/
H A DDecoration.java306 Color bg = (Color)background;
308 int brightness = 33 * bg.getRed()
309 + 53 * bg.getGreen()
310 + 14 * bg.getBlue();

Completed in 272 milliseconds

123