< prev index next >

src/java.desktop/share/classes/javax/swing/plaf/metal/MetalBumps.java

Print this page

        

*** 53,63 **** private static final Object METAL_BUMPS = new Object(); protected BumpBuffer buffer; /** * Creates MetalBumps of the specified size with the specified colors. ! * If <code>newBackColor</code> is null, the background will be * transparent. */ public MetalBumps( int width, int height, Color newTopColor, Color newShadowColor, Color newBackColor ) { setBumpArea( width, height ); --- 53,63 ---- private static final Object METAL_BUMPS = new Object(); protected BumpBuffer buffer; /** * Creates MetalBumps of the specified size with the specified colors. ! * If {@code newBackColor} is null, the background will be * transparent. */ public MetalBumps( int width, int height, Color newTopColor, Color newShadowColor, Color newBackColor ) { setBumpArea( width, height );
*** 178,188 **** backColor.equals( aBackColor ); } /** * Returns the Image containing the bumps appropriate for the passed in ! * <code>GraphicsConfiguration</code>. */ public Image getImage() { return image; } --- 178,188 ---- backColor.equals( aBackColor ); } /** * Returns the Image containing the bumps appropriate for the passed in ! * {@code GraphicsConfiguration}. */ public Image getImage() { return image; }
*** 213,223 **** g.dispose(); } /** * Creates the image appropriate for the passed in ! * <code>GraphicsConfiguration</code>, which may be null. */ private void createImage() { if (gc != null) { image = gc.createCompatibleImage(IMAGE_SIZE, IMAGE_SIZE, (backColor != MetalBumps.ALPHA) ? Transparency.OPAQUE : --- 213,223 ---- g.dispose(); } /** * Creates the image appropriate for the passed in ! * {@code GraphicsConfiguration}, which may be null. */ private void createImage() { if (gc != null) { image = gc.createCompatibleImage(IMAGE_SIZE, IMAGE_SIZE, (backColor != MetalBumps.ALPHA) ? Transparency.OPAQUE :
< prev index next >