de.intarsys.cwt.hybrid.image
Class ImageIOImageEntry

java.lang.Object
  extended by de.intarsys.cwt.image.ImageEntry
      extended by de.intarsys.cwt.hybrid.image.ImageIOImageEntry
All Implemented Interfaces:
IAwtImage, IImage, IImageEntry, ISwtImage, de.intarsys.tools.attribute.IAttributeSupport

public class ImageIOImageEntry
extends ImageEntry
implements IAwtImage, ISwtImage


Constructor Summary
ImageIOImageEntry(IImageContainer container, int index)
           
 
Method Summary
 void drawFromGraphicsContext(IGraphicsContext graphicsContext, float x, float y)
           
 java.awt.image.BufferedImage getBufferedImage()
          The BufferedImage that represents this image.
protected  IImage getErrorImage(java.lang.Exception e)
           
 org.eclipse.swt.graphics.Image getImage(org.eclipse.swt.graphics.Device device)
           
 org.eclipse.swt.graphics.ImageData getImageData()
           
 int getIndex()
           
protected  IImage loadContent()
           
 
Methods inherited from class de.intarsys.cwt.image.ImageEntry
getAttribute, getContainer, getDelegate, getHeight, getWidth, removeAttribute, setAttribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.intarsys.cwt.image.IImage
getHeight, getWidth
 

Constructor Detail

ImageIOImageEntry

public ImageIOImageEntry(IImageContainer container,
                         int index)
Method Detail

drawFromGraphicsContext

public void drawFromGraphicsContext(IGraphicsContext graphicsContext,
                                    float x,
                                    float y)
Specified by:
drawFromGraphicsContext in interface IImage

getBufferedImage

public java.awt.image.BufferedImage getBufferedImage()
Description copied from interface: IAwtImage
The BufferedImage that represents this image.

Specified by:
getBufferedImage in interface IAwtImage
Returns:
The BufferedImage that represents this image.

getErrorImage

protected IImage getErrorImage(java.lang.Exception e)
Specified by:
getErrorImage in class ImageEntry

getImage

public org.eclipse.swt.graphics.Image getImage(org.eclipse.swt.graphics.Device device)
Specified by:
getImage in interface ISwtImage

getImageData

public org.eclipse.swt.graphics.ImageData getImageData()
Specified by:
getImageData in interface ISwtImage

getIndex

public int getIndex()
Specified by:
getIndex in interface IImageEntry

loadContent

protected IImage loadContent()
                      throws java.io.IOException
Specified by:
loadContent in class ImageEntry
Throws:
java.io.IOException