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 CwtAwtImagecreateAwtImage()protected CwtSwtImagecreateSwtImage()protected voiddrawFromAwt(CwtAwtGraphicsContext graphicsContext, float x, float y)voiddrawFromGraphicsContext(IGraphicsContext graphicsContext, float x, float y)protected voiddrawFromSwt(CwtSwtGraphicsContext graphicsContext, float x, float y)java.awt.image.BufferedImagegetBufferedImage()TheBufferedImagethat represents this image.intgetHeight()org.eclipse.swt.graphics.ImagegetImage(org.eclipse.swt.graphics.Device device)org.eclipse.swt.graphics.ImageDatagetImageData()intgetWidth()
-
-
-
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:
drawFromGraphicsContextin interfaceIImage
-
drawFromSwt
protected void drawFromSwt(CwtSwtGraphicsContext graphicsContext, float x, float y)
-
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.
-
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
-
-