Class 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 in GraphicsConfiguration, 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 in GraphicsConfiguration.
      (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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • 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
    • Constructor Detail

      • BumpBuffer

        BumpBuffer​(java.awt.GraphicsConfiguration gc,
                   java.awt.Color aTopColor,
                   java.awt.Color aShadowColor,
                   java.awt.Color aBackColor)
    • 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 in GraphicsConfiguration.
      • 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 in GraphicsConfiguration, which may be null.