com.sun.jimi.core.raster
Class OneshotIntRasterImage

java.lang.Object
  |
  +--com.sun.jimi.core.raster.JimiRasterImageSupport
        |
        +--com.sun.jimi.core.raster.MemoryIntRasterImage
              |
              +--com.sun.jimi.core.raster.OneshotIntRasterImage

public class OneshotIntRasterImage
extends MemoryIntRasterImage

In-memory implementation of int-based storage. Luke Gorrie


Field Summary
protected  int[] pixelBuffer
           
 
Fields inherited from class com.sun.jimi.core.raster.MemoryIntRasterImage
imageData, pixelBuffer
 
Fields inherited from class com.sun.jimi.core.raster.JimiRasterImageSupport
abort, colorModel, error, finished, forceRGB, modified, newFrameData, productionAllowed, productionStarted, properties, rowBuf, sourceColorModel, waitForOptions
 
Constructor Summary
OneshotIntRasterImage(int width, int height, java.awt.image.ColorModel cm)
           
 
Method Summary
protected  void initStorage()
           
protected  void sendRegionToConsumerFully(java.awt.image.ImageConsumer consumer, java.awt.Rectangle region)
           
protected  void sendToConsumerFully(java.awt.image.ImageConsumer consumer)
           
 void setChannelPixel(int channel, int x, int y, byte value)
           
 void setChannelRectangle(int channel, int x, int y, int width, int height, byte[] pixels, int offset, int scansize)
           
 void setChannelRow(int channel, int y, byte[] pixels, int offset)
           
 void setPixel(int x, int y, int value)
           
 void setRectangle(int x, int y, int width, int height, int[] pixels, int offset, int scansize)
           
 void setRow(int y, int[] pixels, int offset)
           
 void storeChannelRectangle(int channel, int x, int y, int width, int height, byte[] pixels, int offset, int scansize)
           
 void storePixel(int x, int y, int value)
           
 void storeRectangle(int x, int y, int width, int height, int[] pixels, int offset, int scansize)
           
 void storeRow(int y, int[] pixels, int offset)
           
 
Methods inherited from class com.sun.jimi.core.raster.MemoryIntRasterImage
asIntArray, getAppropriateColorModel, getChannelRectangle, getChannelRow, getPixel, getPixelRGB, getRectangle, getRectangleRGB, getRow, getRowRGB, sendPixel, sendRectangle, sendRow, toRGB, toRGB
 
Methods inherited from class com.sun.jimi.core.raster.JimiRasterImageSupport
addConsumer, addDirectConsumer, addWaitingConsumer, catchupConsumer, getColorModel, getCroppedImageProducer, getDirectConsumer, getFactory, getHeight, getImageProducer, getOptions, getProperties, getRectangleARGBChannels, getRectangleRGBAChannels, getRectangleRGBChannels, getWidth, hasDirectConsumer, initConsumer, isConsumer, isError, mustWaitForOptions, produceCroppedImage, removeConsumer, requestTopDownLeftRightResend, setColorModel, setDecodingController, setError, setFactory, setFinished, setImageConsumerHints, setModified, setOptions, setWaitForOptions, startProduction, waitFinished, waitInfoAvailable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pixelBuffer

protected int[] pixelBuffer
Constructor Detail

OneshotIntRasterImage

public OneshotIntRasterImage(int width,
                             int height,
                             java.awt.image.ColorModel cm)
Method Detail

initStorage

protected void initStorage()
                    throws JimiException
Overrides:
initStorage in class MemoryIntRasterImage

setRectangle

public void setRectangle(int x,
                         int y,
                         int width,
                         int height,
                         int[] pixels,
                         int offset,
                         int scansize)
                  throws ImageAccessException
Overrides:
setRectangle in class MemoryIntRasterImage

setRow

public void setRow(int y,
                   int[] pixels,
                   int offset)
            throws ImageAccessException
Overrides:
setRow in class MemoryIntRasterImage

setPixel

public void setPixel(int x,
                     int y,
                     int value)
              throws ImageAccessException
Overrides:
setPixel in class MemoryIntRasterImage

storeRectangle

public void storeRectangle(int x,
                           int y,
                           int width,
                           int height,
                           int[] pixels,
                           int offset,
                           int scansize)
                    throws ImageAccessException
Overrides:
storeRectangle in class MemoryIntRasterImage

storeRow

public void storeRow(int y,
                     int[] pixels,
                     int offset)
              throws ImageAccessException
Overrides:
storeRow in class MemoryIntRasterImage

storePixel

public void storePixel(int x,
                       int y,
                       int value)
                throws ImageAccessException
Overrides:
storePixel in class MemoryIntRasterImage

setChannelRectangle

public void setChannelRectangle(int channel,
                                int x,
                                int y,
                                int width,
                                int height,
                                byte[] pixels,
                                int offset,
                                int scansize)
                         throws ImageAccessException
Overrides:
setChannelRectangle in class MemoryIntRasterImage

setChannelRow

public void setChannelRow(int channel,
                          int y,
                          byte[] pixels,
                          int offset)
                   throws ImageAccessException
Overrides:
setChannelRow in class MemoryIntRasterImage

setChannelPixel

public void setChannelPixel(int channel,
                            int x,
                            int y,
                            byte value)
                     throws ImageAccessException
Overrides:
setChannelPixel in class MemoryIntRasterImage

storeChannelRectangle

public void storeChannelRectangle(int channel,
                                  int x,
                                  int y,
                                  int width,
                                  int height,
                                  byte[] pixels,
                                  int offset,
                                  int scansize)
                           throws ImageAccessException
Overrides:
storeChannelRectangle in class MemoryIntRasterImage

sendToConsumerFully

protected void sendToConsumerFully(java.awt.image.ImageConsumer consumer)
                            throws ImageAccessException
Overrides:
sendToConsumerFully in class MemoryIntRasterImage

sendRegionToConsumerFully

protected void sendRegionToConsumerFully(java.awt.image.ImageConsumer consumer,
                                         java.awt.Rectangle region)
                                  throws ImageAccessException
Overrides:
sendRegionToConsumerFully in class MemoryIntRasterImage