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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
drawFromGraphicsContext
(IGraphicsContext graphicsContext, float x, float y) TheBufferedImage
that represents this image.protected IImage
org.eclipse.swt.graphics.Image
getImage
(org.eclipse.swt.graphics.Device device) org.eclipse.swt.graphics.ImageData
int
getIndex()
protected IImage
Methods inherited from class de.intarsys.cwt.image.ImageEntry
getAttribute, getContainer, getDelegate, getHeight, getWidth, removeAttribute, setAttribute
-
Constructor Details
-
ImageIOImageEntry
-
-
Method Details
-
drawFromGraphicsContext
- Specified by:
drawFromGraphicsContext
in interfaceIImage
-
getBufferedImage
Description copied from interface:IAwtImage
TheBufferedImage
that represents this image.- Specified by:
getBufferedImage
in interfaceIAwtImage
- Returns:
- The
BufferedImage
that represents this image.
-
getErrorImage
- 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
- Specified by:
loadContent
in classImageEntry
- Throws:
IOException
-