|
||||||||||
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<javax.swing.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(javax.swing.ImageIcon pImage)
Creates an instance of AwtImage based on
a java.awt.Image . |
|
SwingImage(java.lang.String pImageName,
javax.swing.ImageIcon pImage)
Creates an instance of AwtImage based on
a java.awt.Image . |
Method Summary | |
---|---|
int |
getHeight()
Determines the height of the image. |
java.lang.String |
getImageName()
Gets the name of the image. |
int |
getWidth()
Determines the width of the image. |
void |
saveAs(java.io.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(javax.swing.ImageIcon pImage)
AwtImage
based on
a java.awt.Image
.
pImage
- java.awt.ImageImage
public SwingImage(java.lang.String pImageName, javax.swing.ImageIcon pImage)
AwtImage
based on
a java.awt.Image
.
pImageName
- the image namepImage
- java.awt.ImageImage
Method Detail |
---|
public java.lang.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(java.io.OutputStream pOut, IImage.ImageType pType) throws java.io.IOException
saveAs
in interface IImage
pOut
- the output streampType
- the image type
java.io.IOException
- if the image can not be saved
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |