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.ColorbackColorprivate java.awt.GraphicsConfigurationgc(package private) java.awt.Imageimageprivate static intIMAGE_SIZEprivate static java.awt.DimensionimageSizeprivate java.awt.ColorshadowColorprivate java.awt.ColortopColor
-
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 voidcreateImage()Creates the image appropriate for the passed inGraphicsConfiguration, which may be null.private voidfillBumpBuffer()Paints the bumps into the current image.(package private) java.awt.ImagegetImage()Returns the Image containing the bumps appropriate for the passed inGraphicsConfiguration.(package private) static java.awt.DimensiongetImageSize()(package private) booleanhasSameConfiguration(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.
-
-