de.intarsys.cwt.awt.image
Class CwtAwtImage

java.lang.Object
  extended by de.intarsys.cwt.awt.image.CwtAwtImage
All Implemented Interfaces:
IAwtImage, IImage

public class CwtAwtImage
extends java.lang.Object
implements IAwtImage

The concrete implementation for an IImage for AWT.


Constructor Summary
protected CwtAwtImage()
           
  CwtAwtImage(java.awt.image.BufferedImage bufferedImage)
           
 
Method Summary
 void drawFromGraphicsContext(IGraphicsContext graphicsContext, float x, float y)
           
 java.awt.image.BufferedImage getBufferedImage()
          The BufferedImage that represents this image.
 int getHeight()
           
 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
 

Constructor Detail

CwtAwtImage

protected CwtAwtImage()

CwtAwtImage

public CwtAwtImage(java.awt.image.BufferedImage bufferedImage)
Method Detail

drawFromGraphicsContext

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

getBufferedImage

public java.awt.image.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

getWidth

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

setHeight

protected void setHeight(int paramHeight)

setWidth

protected void setWidth(int paramWidth)