Package de.intarsys.cwt.hybrid.image
Class ImageIOImageEntry
- java.lang.Object
-
- de.intarsys.cwt.image.ImageEntry
-
- 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
Constructors Constructor Description ImageIOImageEntry(IImageContainer container, int index)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddrawFromGraphicsContext(IGraphicsContext graphicsContext, float x, float y)java.awt.image.BufferedImagegetBufferedImage()TheBufferedImagethat represents this image.protected IImagegetErrorImage(java.lang.Exception e)org.eclipse.swt.graphics.ImagegetImage(org.eclipse.swt.graphics.Device device)org.eclipse.swt.graphics.ImageDatagetImageData()intgetIndex()protected IImageloadContent()-
Methods inherited from class de.intarsys.cwt.image.ImageEntry
getAttribute, getContainer, getDelegate, getHeight, getWidth, removeAttribute, setAttribute
-
-
-
-
Constructor Detail
-
ImageIOImageEntry
public ImageIOImageEntry(IImageContainer container, int index)
-
-
Method Detail
-
drawFromGraphicsContext
public void drawFromGraphicsContext(IGraphicsContext graphicsContext, float x, float y)
- Specified by:
drawFromGraphicsContextin interfaceIImage
-
getBufferedImage
public java.awt.image.BufferedImage getBufferedImage()
Description copied from interface:IAwtImageTheBufferedImagethat represents this image.- Specified by:
getBufferedImagein interfaceIAwtImage- Returns:
- The
BufferedImagethat represents this image.
-
getErrorImage
protected IImage getErrorImage(java.lang.Exception e)
- Specified by:
getErrorImagein classImageEntry
-
getImage
public org.eclipse.swt.graphics.Image getImage(org.eclipse.swt.graphics.Device device)
-
getImageData
public org.eclipse.swt.graphics.ImageData getImageData()
- Specified by:
getImageDatain interfaceISwtImage
-
getIndex
public int getIndex()
- Specified by:
getIndexin interfaceIImageEntry
-
loadContent
protected IImage loadContent() throws java.io.IOException
- Specified by:
loadContentin classImageEntry- Throws:
java.io.IOException
-
-