/openjdk7/jdk/src/share/classes/javax/swing/text/ |
H A D | LabelView.java | 128 * @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 D | bug7181438.java | 76 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 D | OffScreenImage.java | 78 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 D | LWCanvasPeer.java | 89 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 D | SystemBgColorTest.java | 88 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 D | MotifTreeCellRenderer.java | 74 Color bg; field in class:MotifTreeCellRenderer.TreeLeafIcon 79 bg = UIManager.getColor("Tree.iconBackground"); 85 g.setColor(bg);
|
H A D | MotifTreeUI.java | 95 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 D | WCanvasPeer.java | 57 Color bg = ((Component)target).getBackground(); 58 if (bg != null) { 59 setBackground(bg);
|
H A D | WCheckboxPeer.java | 74 Color bg = ((Component)target).getBackground(); 75 if (bg != null) { 76 setBackground(bg);
|
H A D | WLabelPeer.java | 78 Color bg = ((Component)target).getBackground(); 79 if (bg != null) { 80 setBackground(bg);
|
/openjdk7/jdk/src/share/classes/javax/swing/text/html/ |
H A D | InlineView.java | 211 Color bg = doc.getBackground(a); 212 if (bg != null) { 213 setBackground(bg);
|
H A D | HRuleView.java | 148 Color bg = getContainer().getBackground(); 150 if (bg == null || bg.equals(Color.white)) {
|
/openjdk7/jdk/src/solaris/classes/sun/awt/X11/ |
H A D | MotifColorUtilities.java | 163 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 D | XComponentPeer.java | 649 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 D | DefaultListCellRenderer.java | 122 Color bg = null; 130 bg = DefaultLookup.getColor(this, ui, "List.dropCellBackground"); 137 setBackground(bg == null ? list.getSelectionBackground() : bg);
|
H A D | LookAndFeel.java | 173 Color bg = c.getBackground(); 174 if (bg == null || bg instanceof UIResource) {
|
/openjdk7/jdk/src/share/classes/javax/swing/table/ |
H A D | DefaultTableCellRenderer.java | 194 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 D | AquaFocusHandler.java | 114 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 D | AquaComboBoxButton.java | 216 final Color bg = c.getBackground(); 217 final boolean inhibitBackground = bg instanceof UIResource; 222 if (inhibitBackground) c.setBackground(bg);
|
H A D | AquaRootPaneUI.java | 80 final Color bg = frameParent.getBackground(); 81 if (bg == null || bg instanceof UIResource) {
|
/openjdk7/jdk/test/javax/imageio/plugins/gif/ |
H A D | GifTransparencyTest.java | 80 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 D | WindowsScrollBarUI.java | 380 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 D | AbstractRegionPainter.java | 704 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 D | D3DScreenUpdateManager.java | 257 * @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 D | Decoration.java | 306 Color bg = (Color)background; 308 int brightness = 33 * bg.getRed() 309 + 53 * bg.getGreen() 310 + 14 * bg.getBlue();
|