intarsys CWT library

de.intarsys.cwt.hybrid.image
Class ImageIOImageEntry

java.lang.Object
  extended by de.intarsys.cwt.image.ImageEntry
      extended by de.intarsys.cwt.hybrid.image.ImageIOImageEntry
All Implemented Interfaces:
IAwtImage, IImage, IImageEntry, ISwtImage, de.intarsys.tools.attribute.IAttributeSupport

public class ImageIOImageEntry
extends ImageEntry
implements IAwtImage, ISwtImage


Constructor Summary
ImageIOImageEntry(IImageContainer container, int index)
           
 
Method Summary
 void drawFromGraphicsContext(IGraphicsContext graphicsContext, float x, float y)
           
 BufferedImage getBufferedImage()
          The BufferedImage that represents this image.
 org.eclipse.swt.graphics.Image getImage(org.eclipse.swt.graphics.Device device)
           
 org.eclipse.swt.graphics.ImageData getImageData()
           
 int getIndex()
           
 
Methods inherited from class de.intarsys.cwt.image.ImageEntry
getAttribute, getContainer, getHeight, getWidth, removeAttribute, setAttribute
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.intarsys.cwt.image.IImage
getHeight, getWidth
 
Methods inherited from interface de.intarsys.cwt.image.IImage
getHeight, getWidth
 

Constructor Detail

ImageIOImageEntry

public ImageIOImageEntry(IImageContainer container,
                         int index)
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.

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

getIndex

public int getIndex()
Specified by:
getIndex in interface IImageEntry

intarsys CWT library

Copyright © 2008 intarsys consulting GmbH. All Rights Reserved.