javax.swing.plaf.metal
Class BumpBuffer
java.lang.Object
javax.swing.plaf.metal.BumpBuffer
- class BumpBuffer
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
BumpBuffer
public BumpBuffer(GraphicsConfiguration gc,
Color aTopColor,
Color aShadowColor,
Color aBackColor)
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.