com.croftsoft.core.awt.image
Class NullVolatileImage
java.lang.Object
java.awt.Image
java.awt.image.VolatileImage
com.croftsoft.core.awt.image.NullVolatileImage
- All Implemented Interfaces:
- Transparency
public final class NullVolatileImage
- extends VolatileImage
A Null Object implementation of VolatileImage.
Use wherever a placeholder VolatileImage or Image is needed.
- Since:
- 2002-12-18
- Version:
- 2002-12-18
- Author:
- David Wallace Croft
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
public static final NullVolatileImage INSTANCE
contentsLost
public boolean contentsLost()
- Specified by:
contentsLost
in class VolatileImage
createGraphics
public Graphics2D createGraphics()
- Specified by:
createGraphics
in class VolatileImage
flush
public void flush()
- Overrides:
flush
in class Image
getCapabilities
public ImageCapabilities getCapabilities()
- Specified by:
getCapabilities
in class VolatileImage
getGraphics
public Graphics getGraphics()
- Overrides:
getGraphics
in class VolatileImage
getHeight
public int getHeight()
- Specified by:
getHeight
in class VolatileImage
getHeight
public int getHeight(ImageObserver imageObserver)
- Specified by:
getHeight
in class Image
getProperty
public Object getProperty(String name,
ImageObserver imageObserver)
- Specified by:
getProperty
in class Image
getSnapshot
public BufferedImage getSnapshot()
- Specified by:
getSnapshot
in class VolatileImage
getSource
public ImageProducer getSource()
- Overrides:
getSource
in class VolatileImage
getWidth
public int getWidth()
- Specified by:
getWidth
in class VolatileImage
getWidth
public int getWidth(ImageObserver imageObserver)
- Specified by:
getWidth
in class Image
validate
public int validate(GraphicsConfiguration gc)
- Specified by:
validate
in class VolatileImage
CroftSoft Core Javadoc (2008-09-28 20:58:02)