javax.rad.ui
Interface IImage

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

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

Nested Class Summary
static class IImage.ImageType
          the save image types.
 
Method Summary
 int getHeight()
          Determines the height of the image.
 String getImageName()
          Gets the name of the image.
 int getWidth()
          Determines the width of the image.
 void saveAs(OutputStream pOut, IImage.ImageType pType)
          Saves the current image as file.
 
Methods inherited from interface javax.rad.ui.IResource
getResource
 

Method Detail

getImageName

String getImageName()
Gets the name of the image.

Returns:
the name of the image.

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(OutputStream pOut,
            IImage.ImageType pType)
            throws IOException
Saves the current image as file.

Parameters:
pOut - the output stream
pType - the image type
Throws:
IOException - if the image can not be saved


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.