|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sibvisions.rad.ui.awt.impl.AwtResource<ImageIcon>
com.sibvisions.rad.ui.swing.impl.SwingImage
public class SwingImage
The AwtImage
represents graphical images.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface javax.rad.ui.IImage |
---|
IImage.ImageType |
Field Summary |
---|
Fields inherited from class com.sibvisions.rad.ui.awt.impl.AwtResource |
---|
resource |
Constructor Summary | |
---|---|
SwingImage(ImageIcon pImage)
Creates an instance of AwtImage based on
a java.awt.Image . |
|
SwingImage(String pImageName,
ImageIcon pImage)
Creates an instance of AwtImage based on
a java.awt.Image . |
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 class com.sibvisions.rad.ui.awt.impl.AwtResource |
---|
equals, getResource, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.rad.ui.IResource |
---|
getResource |
Constructor Detail |
---|
public SwingImage(ImageIcon pImage)
AwtImage
based on
a java.awt.Image
.
pImage
- java.awt.ImageImage
public SwingImage(String pImageName, ImageIcon pImage)
AwtImage
based on
a java.awt.Image
.
pImageName
- the image namepImage
- java.awt.ImageImage
Method Detail |
---|
public String getImageName()
getImageName
in interface IImage
public int getWidth()
-1
.
getWidth
in interface IImage
-1
if the width is not yet known.Image.getHeight(java.awt.image.ImageObserver)
public int getHeight()
-1
.
getHeight
in interface IImage
-1
if the height is not yet known.Image.getWidth(java.awt.image.ImageObserver)
public void saveAs(OutputStream pOut, IImage.ImageType pType) throws IOException
saveAs
in interface IImage
pOut
- the output streampType
- the image type
IOException
- if the image can not be saved
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |