All Packages Class Hierarchy This Package Previous Next Index
Class com.ibm.webrunner.bab.BImageIcon
java.lang.Object
|
+----com.sun.java.swing.ImageIcon
|
+----com.ibm.webrunner.bab.BImageIcon
- public class BImageIcon
- extends ImageIcon
- implements Serializable
BImageIcon is componentized swing's ImageIcon. The images
loaded with this bean works for both Applet and Application run time.
Basically the images are loaded as resources relative to the application
launch directory ( when the image file is specified starting with '/')
and hence this can load images from a JAR or from a relative directory
and works when deployed as JAR file for applets or applications.
It is important to note that either image file name, or image URL
string must be used to initialize this Icon. If an attempt is made to set
both, only the last set operation will take effect.
Modification(s) History :
09/16/98 - created
- Version:
- 0.1
- See Also:
- BAction, AbstractUndoableEdit
-
BImageIcon()
- Empty constructor
-
getDescription()
- Return the image description
-
getImageFile()
- Return the image file
-
getImageObserver()
- Return the image observer
-
getImageURL()
- Return the image URL string
-
setDescription(String)
- Set the image description
-
setImageFile(String)
- Set a new image file from which the icon will be drawn
-
setImageObserver(ImageObserver)
- Set the image observer.
-
setImageURL(String)
- Set a new image URL string
BImageIcon
public BImageIcon()
- Empty constructor
setImageFile
public void setImageFile(String newImageFile) throws IOException, ImageNotFoundException
- Set a new image file from which the icon will be drawn
getImageFile
public String getImageFile()
- Return the image file
setImageURL
public void setImageURL(String newImageURL) throws MalformedURLException
- Set a new image URL string
getImageURL
public String getImageURL()
- Return the image URL string
setDescription
public void setDescription(String description)
- Set the image description
- Overrides:
- setDescription in class ImageIcon
getDescription
public String getDescription()
- Return the image description
- Overrides:
- getDescription in class ImageIcon
setImageObserver
public void setImageObserver(ImageObserver observer)
- Set the image observer. Use this for animated GIF.
- Overrides:
- setImageObserver in class ImageIcon
getImageObserver
public ImageObserver getImageObserver()
- Return the image observer
- Overrides:
- getImageObserver in class ImageIcon
All Packages Class Hierarchy This Package Previous Next Index