Package de.intarsys.cwt.hybrid.image
Class CwtHybridImage
- java.lang.Object
-
- de.intarsys.cwt.hybrid.image.CwtHybridImage
-
-
Constructor Summary
Constructors Constructor Description CwtHybridImage(CwtAwtImage awtImage)
CwtHybridImage(CwtSwtImage swtImage)
CwtHybridImage(java.awt.image.BufferedImage bufferedImage)
CwtHybridImage(org.eclipse.swt.graphics.ImageData imageData)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CwtAwtImage
createAwtImage()
protected CwtSwtImage
createSwtImage()
protected void
drawFromAwt(CwtAwtGraphicsContext graphicsContext, float x, float y)
void
drawFromGraphicsContext(IGraphicsContext graphicsContext, float x, float y)
protected void
drawFromSwt(CwtSwtGraphicsContext graphicsContext, float x, float y)
java.awt.image.BufferedImage
getBufferedImage()
TheBufferedImage
that represents this image.int
getHeight()
org.eclipse.swt.graphics.Image
getImage(org.eclipse.swt.graphics.Device device)
org.eclipse.swt.graphics.ImageData
getImageData()
int
getWidth()
-
-
-
Constructor Detail
-
CwtHybridImage
public CwtHybridImage(java.awt.image.BufferedImage bufferedImage)
-
CwtHybridImage
public CwtHybridImage(CwtAwtImage awtImage)
-
CwtHybridImage
public CwtHybridImage(CwtSwtImage swtImage)
-
CwtHybridImage
public CwtHybridImage(org.eclipse.swt.graphics.ImageData imageData)
-
-
Method Detail
-
createAwtImage
protected CwtAwtImage createAwtImage()
-
createSwtImage
protected CwtSwtImage createSwtImage()
-
drawFromAwt
protected void drawFromAwt(CwtAwtGraphicsContext graphicsContext, float x, float y)
-
drawFromGraphicsContext
public void drawFromGraphicsContext(IGraphicsContext graphicsContext, float x, float y)
- Specified by:
drawFromGraphicsContext
in interfaceIImage
-
drawFromSwt
protected void drawFromSwt(CwtSwtGraphicsContext graphicsContext, float x, float y)
-
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.
-
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
-
-