|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object swingwtx.swing.ImageIcon
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 |
public ImageIcon()
public ImageIcon(Image image)
public ImageIcon(Image image, java.lang.String description)
public ImageIcon(java.lang.String filename)
public ImageIcon(java.lang.String filename, java.lang.String description)
public ImageIcon(java.net.URL location)
public ImageIcon(java.net.URL location, java.lang.String description)
public ImageIcon(byte[] data)
public ImageIcon(byte[] data, java.lang.String description)
Method Detail |
public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- New value of property description.public Image getImage()
public void setImage(Image image)
image
- New value of property image.public int getIconHeight()
getIconHeight
in interface Icon
public int getIconWidth()
getIconWidth
in interface Icon
public void paintIcon(Component c, Graphics g, int x, int y)
paintIcon
in interface Icon
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |