swingwt.awt.image
Class VolatileImage

java.lang.Object
  extended byswingwt.awt.Image
      extended byswingwt.awt.image.BufferedImage
          extended byswingwt.awt.image.VolatileImage

public class VolatileImage
extends BufferedImage

Actually implemented it useful enough to do something :) Although it is abstract in AWT, there is no need to make it abstract here, since we can now use a straight image and just override the bits of behaviour we want.


Field Summary
static int IMAGE_INCOMPATIBLE
           
static int IMAGE_OK
           
static int IMAGE_RESTORED
           
 
Fields inherited from class swingwt.awt.image.BufferedImage
TYPE_3BYTE_BGR, TYPE_4BYTE_ABGR, TYPE_4BYTE_ABGR_PRE, TYPE_BYTE_BINARY, TYPE_BYTE_GRAY, TYPE_BYTE_INDEXED, TYPE_CUSTOM, TYPE_INT_ARGB, TYPE_INT_ARGB_PRE, TYPE_INT_BGR, TYPE_INT_RGB, TYPE_USHORT_555_RGB, TYPE_USHORT_565_RGB, TYPE_USHORT_GRAY
 
Fields inherited from class swingwt.awt.Image
gc, image, SCALE_AREA_AVERAGING, SCALE_DEFAULT, SCALE_FAST, SCALE_REPLICATE, SCALE_SMOOTH
 
Constructor Summary
VolatileImage(int width, int height, int imagetype)
           
 
Method Summary
 boolean contentsLost()
           
 void flush()
           
 ImageCapabilities getCapabilities()
           
 int getHeight()
           
 BufferedImage getSnapshot()
           
 int getWidth()
           
 int validate(GraphicsConfiguration gc)
           
 
Methods inherited from class swingwt.awt.Image
createGraphics, getGraphics, getHeight, getScaledInstance, getSource, getWidth
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IMAGE_OK

public static final int IMAGE_OK
See Also:
Constant Field Values

IMAGE_RESTORED

public static final int IMAGE_RESTORED
See Also:
Constant Field Values

IMAGE_INCOMPATIBLE

public static final int IMAGE_INCOMPATIBLE
See Also:
Constant Field Values
Constructor Detail

VolatileImage

public VolatileImage(int width,
                     int height,
                     int imagetype)
Method Detail

getSnapshot

public BufferedImage getSnapshot()

getWidth

public int getWidth()
Overrides:
getWidth in class Image

getHeight

public int getHeight()
Overrides:
getHeight in class Image

flush

public void flush()

validate

public int validate(GraphicsConfiguration gc)

contentsLost

public boolean contentsLost()

getCapabilities

public ImageCapabilities getCapabilities()