swingwtx.swing
Class ImageIcon

java.lang.Object
  extended byswingwtx.swing.ImageIcon
All Implemented Interfaces:
Icon

public class ImageIcon
extends java.lang.Object
implements Icon


Constructor Summary
ImageIcon()
          Creates an empty imageicon
ImageIcon(byte[] data)
           
ImageIcon(byte[] data, java.lang.String description)
           
ImageIcon(Image image)
           
ImageIcon(Image image, java.lang.String description)
           
ImageIcon(java.lang.String filename)
           
ImageIcon(java.lang.String filename, java.lang.String description)
           
ImageIcon(java.net.URL location)
           
ImageIcon(java.net.URL location, java.lang.String description)
           
 
Method Summary
 java.lang.String getDescription()
          Getter for property description.
 int getIconHeight()
           
 int getIconWidth()
           
 Image getImage()
          Getter for property image.
 void paintIcon(Component c, Graphics g, int x, int y)
           
 void setDescription(java.lang.String description)
          Setter for property description.
 void setImage(Image image)
          Setter for property image.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageIcon

public ImageIcon()
Creates an empty imageicon


ImageIcon

public ImageIcon(Image image)

ImageIcon

public ImageIcon(Image image,
                 java.lang.String description)

ImageIcon

public ImageIcon(java.lang.String filename)

ImageIcon

public ImageIcon(java.lang.String filename,
                 java.lang.String description)

ImageIcon

public ImageIcon(java.net.URL location)

ImageIcon

public ImageIcon(java.net.URL location,
                 java.lang.String description)

ImageIcon

public ImageIcon(byte[] data)

ImageIcon

public ImageIcon(byte[] data,
                 java.lang.String description)
Method Detail

getDescription

public java.lang.String getDescription()
Getter for property description.

Returns:
Value of property description.

setDescription

public void setDescription(java.lang.String description)
Setter for property description.

Parameters:
description - New value of property description.

getImage

public Image getImage()
Getter for property image.

Returns:
Value of property image.

setImage

public void setImage(Image image)
Setter for property image.

Parameters:
image - New value of property image.

getIconHeight

public int getIconHeight()
Specified by:
getIconHeight in interface Icon

getIconWidth

public int getIconWidth()
Specified by:
getIconWidth in interface Icon

paintIcon

public void paintIcon(Component c,
                      Graphics g,
                      int x,
                      int y)
Specified by:
paintIcon in interface Icon