intarsys CWT library

de.intarsys.cwt.hybrid.image
Class CwtHybridImage

java.lang.Object
  extended by de.intarsys.cwt.hybrid.image.CwtHybridImage
All Implemented Interfaces:
IAwtImage, IImage, ISwtImage

public class CwtHybridImage
extends Object
implements IAwtImage, ISwtImage


Constructor Summary
CwtHybridImage(BufferedImage bufferedImage)
           
CwtHybridImage(CwtAwtImage awtImage)
           
CwtHybridImage(CwtSwtImage swtImage)
           
CwtHybridImage(org.eclipse.swt.graphics.ImageData imageData)
           
 
Method Summary
 void drawFromGraphicsContext(IGraphicsContext graphicsContext, float x, float y)
           
 BufferedImage getBufferedImage()
          The BufferedImage 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()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CwtHybridImage

public CwtHybridImage(BufferedImage bufferedImage)

CwtHybridImage

public CwtHybridImage(CwtAwtImage awtImage)

CwtHybridImage

public CwtHybridImage(CwtSwtImage swtImage)

CwtHybridImage

public CwtHybridImage(org.eclipse.swt.graphics.ImageData imageData)
Method Detail

drawFromGraphicsContext

public void drawFromGraphicsContext(IGraphicsContext graphicsContext,
                                    float x,
                                    float y)
Specified by:
drawFromGraphicsContext in interface IImage

getBufferedImage

public BufferedImage getBufferedImage()
Description copied from interface: IAwtImage
The BufferedImage that represents this image.

Specified by:
getBufferedImage in interface IAwtImage
Returns:
The BufferedImage that represents this image.

getHeight

public int getHeight()
Specified by:
getHeight in interface IImage

getImage

public org.eclipse.swt.graphics.Image getImage(org.eclipse.swt.graphics.Device device)
Specified by:
getImage in interface ISwtImage

getImageData

public org.eclipse.swt.graphics.ImageData getImageData()
Specified by:
getImageData in interface ISwtImage

getWidth

public int getWidth()
Specified by:
getWidth in interface IImage

intarsys CWT library

Copyright © 2008 intarsys consulting GmbH. All Rights Reserved.