Package com.jgoodies.looks.plastic
Class PlasticBumps.BumpBuffer
- java.lang.Object
-
- com.jgoodies.looks.plastic.PlasticBumps.BumpBuffer
-
- Enclosing class:
- PlasticBumps
private static final class PlasticBumps.BumpBuffer extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private java.awt.Color
backColor
private java.awt.GraphicsConfiguration
gc
(package private) java.awt.Image
image
private static int
IMAGE_SIZE
private static java.awt.Dimension
imageSize
private java.awt.Color
shadowColor
private java.awt.Color
topColor
-
Constructor Summary
Constructors Constructor Description BumpBuffer(java.awt.GraphicsConfiguration gc, java.awt.Color aTopColor, java.awt.Color aShadowColor, java.awt.Color aBackColor)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
createImage()
Creates the image appropriate for the passed inGraphicsConfiguration
, which may be null.private void
fillBumpBuffer()
Paints the bumps into the current image.(package private) java.awt.Image
getImage()
Returns the Image containing the bumps appropriate for the passed inGraphicsConfiguration
.(package private) static java.awt.Dimension
getImageSize()
(package private) boolean
hasSameConfiguration(java.awt.GraphicsConfiguration aGC, java.awt.Color aTopColor, java.awt.Color aShadowColor, java.awt.Color aBackColor)
-
-
-
Field Detail
-
IMAGE_SIZE
private static final int IMAGE_SIZE
- See Also:
- Constant Field Values
-
imageSize
private static java.awt.Dimension imageSize
-
image
transient java.awt.Image image
-
topColor
private final java.awt.Color topColor
-
shadowColor
private final java.awt.Color shadowColor
-
backColor
private final java.awt.Color backColor
-
gc
private final java.awt.GraphicsConfiguration gc
-
-
Method Detail
-
hasSameConfiguration
boolean hasSameConfiguration(java.awt.GraphicsConfiguration aGC, java.awt.Color aTopColor, java.awt.Color aShadowColor, java.awt.Color aBackColor)
-
getImage
java.awt.Image getImage()
Returns the Image containing the bumps appropriate for the passed inGraphicsConfiguration
.
-
getImageSize
static java.awt.Dimension getImageSize()
-
fillBumpBuffer
private void fillBumpBuffer()
Paints the bumps into the current image.
-
createImage
private void createImage()
Creates the image appropriate for the passed inGraphicsConfiguration
, which may be null.
-
-