javax.swing.plaf.metal
Class BumpBuffer

java.lang.Object
  extended byjavax.swing.plaf.metal.BumpBuffer

class BumpBuffer
extends Object


Field Summary
(package private)  Color backColor
           
private  GraphicsConfiguration gc
           
(package private)  Image image
           
(package private) static int IMAGE_SIZE
           
(package private) static Dimension imageSize
           
(package private)  Color shadowColor
           
(package private)  Color topColor
           
 
Constructor Summary
BumpBuffer(GraphicsConfiguration gc, Color aTopColor, Color aShadowColor, Color aBackColor)
           
 
Method Summary
private  void createImage()
          Creates the image appropriate for the passed in GraphicsConfiguration, which may be null.
private  void fillBumpBuffer()
          Paints the bumps into the current image.
 Image getImage()
          Returns the Image containing the bumps appropriate for the passed in GraphicsConfiguration.
 Dimension getImageSize()
           
 boolean hasSameConfiguration(GraphicsConfiguration gc, Color aTopColor, Color aShadowColor, Color aBackColor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IMAGE_SIZE

static final int IMAGE_SIZE
See Also:
Constant Field Values

imageSize

static Dimension imageSize

image

transient Image image

topColor

Color topColor

shadowColor

Color shadowColor

backColor

Color backColor

gc

private GraphicsConfiguration gc
Constructor Detail

BumpBuffer

public BumpBuffer(GraphicsConfiguration gc,
                  Color aTopColor,
                  Color aShadowColor,
                  Color aBackColor)
Method Detail

hasSameConfiguration

public boolean hasSameConfiguration(GraphicsConfiguration gc,
                                    Color aTopColor,
                                    Color aShadowColor,
                                    Color aBackColor)

getImage

public Image getImage()
Returns the Image containing the bumps appropriate for the passed in GraphicsConfiguration.


getImageSize

public Dimension getImageSize()

fillBumpBuffer

private void fillBumpBuffer()
Paints the bumps into the current image.


createImage

private void createImage()
Creates the image appropriate for the passed in GraphicsConfiguration, which may be null.