de.intarsys.cwt.hybrid.image
public class ImageIOImageEntry extends ImageEntry implements IAwtImage, ISwtImage
Constructor and Description |
---|
ImageIOImageEntry(IImageContainer container,
int index) |
Modifier and Type | Method and Description |
---|---|
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() |
getAttribute, getContainer, getDelegate, getHeight, getWidth, removeAttribute, setAttribute
public ImageIOImageEntry(IImageContainer container, int index)
public void drawFromGraphicsContext(IGraphicsContext graphicsContext, float x, float y)
drawFromGraphicsContext
in interface IImage
public java.awt.image.BufferedImage getBufferedImage()
IAwtImage
BufferedImage
that represents this image.getBufferedImage
in interface IAwtImage
BufferedImage
that represents this image.protected IImage getErrorImage(java.lang.Exception e)
getErrorImage
in class ImageEntry
public org.eclipse.swt.graphics.Image getImage(org.eclipse.swt.graphics.Device device)
public org.eclipse.swt.graphics.ImageData getImageData()
getImageData
in interface ISwtImage
public int getIndex()
getIndex
in interface IImageEntry
protected IImage loadContent() throws java.io.IOException
loadContent
in class ImageEntry
java.io.IOException