javax.rad.ui
Interface IImage

All Superinterfaces:
IResource
All Known Implementing Classes:
AwtImage, QtImage, SwingImage, UIImage, WebImage

public interface IImage
extends IResource

Platform and technology independent image definition. It is designed for use with AWT, Swing, SWT, JSP, JSF,... .

See Also:
Image

Method Summary
 int getHeight()
          Determines the height of the image.
 int getWidth()
          Determines the width of the image.
 void saveAs(String pFileName)
          Saves the current image as file.
 
Methods inherited from interface javax.rad.ui.IResource
getResource
 

Method Detail

getWidth

int getWidth()
Determines the width of the image. If the width is not yet known, this method returns -1.

Returns:
the width of this image, or -1 if the width is not yet known.
See Also:
Image.getHeight(java.awt.image.ImageObserver)

getHeight

int getHeight()
Determines the height of the image. If the height is not yet known, this method returns -1.

Returns:
the height of this image, or -1 if the height is not yet known.
See Also:
Image.getWidth(java.awt.image.ImageObserver)

saveAs

void saveAs(String pFileName)
            throws IOException
Saves the current image as file.

Parameters:
pFileName - the filename
Throws:
IOException - if the image can not be saved


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.