com.croftsoft.core.awt.image
Class NullVolatileImage

java.lang.Object
  extended by java.awt.Image
      extended by java.awt.image.VolatileImage
          extended by 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

Field Summary
static NullVolatileImage INSTANCE
           
 
Fields inherited from class java.awt.image.VolatileImage
IMAGE_INCOMPATIBLE, IMAGE_OK, IMAGE_RESTORED, transparency
 
Fields inherited from class java.awt.Image
accelerationPriority, SCALE_AREA_AVERAGING, SCALE_DEFAULT, SCALE_FAST, SCALE_REPLICATE, SCALE_SMOOTH, UndefinedProperty
 
Fields inherited from interface java.awt.Transparency
BITMASK, OPAQUE, TRANSLUCENT
 
Method Summary
 boolean contentsLost()
           
 Graphics2D createGraphics()
           
 void flush()
           
 ImageCapabilities getCapabilities()
           
 Graphics getGraphics()
           
 int getHeight()
           
 int getHeight(ImageObserver imageObserver)
           
 Object getProperty(String name, ImageObserver imageObserver)
           
 BufferedImage getSnapshot()
           
 ImageProducer getSource()
           
 int getWidth()
           
 int getWidth(ImageObserver imageObserver)
           
 int validate(GraphicsConfiguration gc)
           
 
Methods inherited from class java.awt.image.VolatileImage
getTransparency
 
Methods inherited from class java.awt.Image
getAccelerationPriority, getCapabilities, getScaledInstance, setAccelerationPriority
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final NullVolatileImage INSTANCE
Method Detail

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 Javadoc

CroftSoft Core Javadoc (2008-09-28 20:58:02)