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 void
drawFromGraphicsContext(IGraphicsContext graphicsContext, float x, float y)
java.awt.image.BufferedImage
getBufferedImage()
TheBufferedImage
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
-
-
-
-
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 interfaceIImage
-
getBufferedImage
public java.awt.image.BufferedImage getBufferedImage()
Description copied from interface:IAwtImage
TheBufferedImage
that represents this image.- Specified by:
getBufferedImage
in interfaceIAwtImage
- Returns:
- The
BufferedImage
that represents this image.
-
getErrorImage
protected IImage getErrorImage(java.lang.Exception e)
- Specified by:
getErrorImage
in 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:
getImageData
in interfaceISwtImage
-
getIndex
public int getIndex()
- Specified by:
getIndex
in interfaceIImageEntry
-
loadContent
protected IImage loadContent() throws java.io.IOException
- Specified by:
loadContent
in classImageEntry
- Throws:
java.io.IOException
-
-