Class BufferedImageFactory.Consumer

  • All Implemented Interfaces:
    java.awt.image.ImageConsumer
    Enclosing class:
    BufferedImageFactory

    private class BufferedImageFactory.Consumer
    extends java.lang.Object
    implements java.awt.image.ImageConsumer
    • Field Summary

      • Fields inherited from interface java.awt.image.ImageConsumer

        COMPLETESCANLINES, IMAGEABORTED, IMAGEERROR, RANDOMPIXELORDER, SINGLEFRAME, SINGLEFRAMEDONE, SINGLEPASS, STATICIMAGEDONE, TOPDOWNLEFTRIGHT
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Consumer()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void imageComplete​(int status)  
      void setColorModel​(java.awt.image.ColorModel colorModel)  
      private void setColorModelOnce​(java.awt.image.ColorModel colorModel)  
      void setDimensions​(int w, int h)  
      void setHints​(int hintFlags)  
      void setPixels​(int x, int y, int width, int height, java.awt.image.ColorModel colorModel, byte[] pixels, int offset, int scanSize)  
      void setPixels​(int x, int y, int width, int height, java.awt.image.ColorModel colorModel, int[] pixels, int offset, int scanSize)  
      void setPixels​(int x, int y, int width, int height, java.awt.image.ColorModel colorModel, short[] pixels, int offset, int scanSize)  
      private void setPixelsImpl​(int pX, int pY, int pWidth, int pHeight, java.awt.image.ColorModel pModel, java.lang.Object pPixels, int pOffset, int pScanSize)
      Implementation of all setPixels methods.
      void setProperties​(java.util.Hashtable properties)  
      • Methods inherited from class java.lang.Object

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

      • Consumer

        private Consumer()
    • Method Detail

      • setPixelsImpl

        private void setPixelsImpl​(int pX,
                                   int pY,
                                   int pWidth,
                                   int pHeight,
                                   java.awt.image.ColorModel pModel,
                                   java.lang.Object pPixels,
                                   int pOffset,
                                   int pScanSize)
        Implementation of all setPixels methods. Note that this implementation assumes that all invocations for one image uses the same color model, and that the pixel data has the same type.
        Parameters:
        pX - x coordinate of pixel data region
        pY - y coordinate of pixel data region
        pWidth - width of pixel data region
        pHeight - height of pixel data region
        pModel - the color model of the pixel data
        pPixels - the pixel data array
        pOffset - the offset into the pixel data array
        pScanSize - the scan size of the pixel data array
      • setPixels

        public void setPixels​(int x,
                              int y,
                              int width,
                              int height,
                              java.awt.image.ColorModel colorModel,
                              short[] pixels,
                              int offset,
                              int scanSize)
      • setColorModelOnce

        private void setColorModelOnce​(java.awt.image.ColorModel colorModel)
      • imageComplete

        public void imageComplete​(int status)
        Specified by:
        imageComplete in interface java.awt.image.ImageConsumer
      • setColorModel

        public void setColorModel​(java.awt.image.ColorModel colorModel)
        Specified by:
        setColorModel in interface java.awt.image.ImageConsumer
      • setDimensions

        public void setDimensions​(int w,
                                  int h)
        Specified by:
        setDimensions in interface java.awt.image.ImageConsumer
      • setHints

        public void setHints​(int hintFlags)
        Specified by:
        setHints in interface java.awt.image.ImageConsumer
      • setPixels

        public void setPixels​(int x,
                              int y,
                              int width,
                              int height,
                              java.awt.image.ColorModel colorModel,
                              byte[] pixels,
                              int offset,
                              int scanSize)
        Specified by:
        setPixels in interface java.awt.image.ImageConsumer
      • setPixels

        public void setPixels​(int x,
                              int y,
                              int width,
                              int height,
                              java.awt.image.ColorModel colorModel,
                              int[] pixels,
                              int offset,
                              int scanSize)
        Specified by:
        setPixels in interface java.awt.image.ImageConsumer
      • setProperties

        public void setProperties​(java.util.Hashtable properties)
        Specified by:
        setProperties in interface java.awt.image.ImageConsumer