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

Constructor Index

 o BImageIcon()
Empty constructor

Method Index

 o getDescription()
Return the image description
 o getImageFile()
Return the image file
 o getImageObserver()
Return the image observer
 o getImageURL()
Return the image URL string
 o setDescription(String)
Set the image description
 o setImageFile(String)
Set a new image file from which the icon will be drawn
 o setImageObserver(ImageObserver)
Set the image observer.
 o setImageURL(String)
Set a new image URL string

Constructors

 o BImageIcon
 public BImageIcon()
Empty constructor

Methods

 o setImageFile
 public void setImageFile(String newImageFile) throws IOException, ImageNotFoundException
Set a new image file from which the icon will be drawn

 o getImageFile
 public String getImageFile()
Return the image file

 o setImageURL
 public void setImageURL(String newImageURL) throws MalformedURLException
Set a new image URL string

 o getImageURL
 public String getImageURL()
Return the image URL string

 o setDescription
 public void setDescription(String description)
Set the image description

Overrides:
setDescription in class ImageIcon
 o getDescription
 public String getDescription()
Return the image description

Overrides:
getDescription in class ImageIcon
 o setImageObserver
 public void setImageObserver(ImageObserver observer)
Set the image observer. Use this for animated GIF.

Overrides:
setImageObserver in class ImageIcon
 o getImageObserver
 public ImageObserver getImageObserver()
Return the image observer

Overrides:
getImageObserver in class ImageIcon

All Packages  Class Hierarchy  This Package  Previous  Next  Index