de.intarsys.cwt.swt.image
Class CwtSwtImage

java.lang.Object
  extended by de.intarsys.cwt.swt.image.CwtSwtImage
All Implemented Interfaces:
IImage, ISwtImage

public class CwtSwtImage
extends java.lang.Object
implements ISwtImage


Field Summary
static boolean IS_GTK
           
 
Constructor Summary
CwtSwtImage(org.eclipse.swt.graphics.ImageData imageData)
           
 
Method Summary
protected  org.eclipse.swt.graphics.Image createSwtImage(org.eclipse.swt.graphics.Device device)
           
 void drawFromGraphicsContext(IGraphicsContext graphicsContext, float x, float y)
           
 int getHeight()
           
 org.eclipse.swt.graphics.Image getImage(org.eclipse.swt.graphics.Device device)
           
 org.eclipse.swt.graphics.ImageData getImageData()
           
 int getWidth()
           
protected  void setHeight(int paramHeight)
           
protected  void setWidth(int paramWidth)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IS_GTK

public static final boolean IS_GTK
Constructor Detail

CwtSwtImage

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

createSwtImage

protected org.eclipse.swt.graphics.Image createSwtImage(org.eclipse.swt.graphics.Device device)

drawFromGraphicsContext

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

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

setHeight

protected void setHeight(int paramHeight)

setWidth

protected void setWidth(int paramWidth)