swingwt.awt.image
Class VolatileImage
java.lang.Object
swingwt.awt.Image
swingwt.awt.image.BufferedImage
swingwt.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.
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 |
Constructor Summary |
VolatileImage(int width,
int height,
int imagetype)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
VolatileImage
public VolatileImage(int width,
int height,
int imagetype)
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()