com.nerius.img
Class BuffProducer

java.lang.Object
  extended by com.nerius.img.BuffProducer
All Implemented Interfaces:
java.awt.image.ImageProducer

public class BuffProducer
extends java.lang.Object
implements java.awt.image.ImageProducer

This ImageProducer represents a static image. The immediate state of the image buffer (the array m_pix) will be delivered to anyone calling addConsumer(ImageConsumer). For animated images, use AnimBuffProducer.

See Also:
AnimBuffProducer

Field Summary
protected  int[] m_pix
           
 
Constructor Summary
BuffProducer(int[] pix, int width, int height, java.awt.image.ColorModel clrModel)
           
 
Method Summary
 void addConsumer(java.awt.image.ImageConsumer ic)
           
 java.awt.image.ColorModel getColorModel()
           
 int getHeight()
           
 int getWidth()
           
 boolean isConsumer(java.awt.image.ImageConsumer ic)
           
 void removeConsumer(java.awt.image.ImageConsumer ic)
           
 void requestTopDownLeftRightResend(java.awt.image.ImageConsumer ic)
           
 void startProduction(java.awt.image.ImageConsumer ic)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_pix

protected final int[] m_pix
Constructor Detail

BuffProducer

public BuffProducer(int[] pix,
                    int width,
                    int height,
                    java.awt.image.ColorModel clrModel)
Method Detail

getWidth

public int getWidth()

getHeight

public int getHeight()

getColorModel

public java.awt.image.ColorModel getColorModel()

addConsumer

public void addConsumer(java.awt.image.ImageConsumer ic)
Specified by:
addConsumer in interface java.awt.image.ImageProducer

isConsumer

public boolean isConsumer(java.awt.image.ImageConsumer ic)
Specified by:
isConsumer in interface java.awt.image.ImageProducer

removeConsumer

public void removeConsumer(java.awt.image.ImageConsumer ic)
Specified by:
removeConsumer in interface java.awt.image.ImageProducer

startProduction

public void startProduction(java.awt.image.ImageConsumer ic)
Specified by:
startProduction in interface java.awt.image.ImageProducer

requestTopDownLeftRightResend

public void requestTopDownLeftRightResend(java.awt.image.ImageConsumer ic)
Specified by:
requestTopDownLeftRightResend in interface java.awt.image.ImageProducer