|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectyu.ac.bg.etf.javaqx.qswing.ImageIcon
Image Icon.
Constructor Summary | |
ImageIcon(byte[] imageData)
Constructs new ImageIcon object. |
|
ImageIcon(Image image)
Constructs new ImageIcon object. |
|
ImageIcon(java.lang.String fileName)
Constructs new ImageIcon object. |
|
ImageIcon(java.net.URL location)
Constructs new ImageIcon object. |
Method Summary | |
boolean |
equals(java.lang.Object obj)
|
int |
getIconHeight()
Returns the icon's height. |
int |
getIconWidth()
Returns the icon's width. |
Image |
getImage()
Returns image. |
int |
hashCode()
|
void |
paintIcon(JQComponent component,
Graphics g,
int x,
int y)
Draws the icon at the specified location. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ImageIcon(Image image)
image
- the imagepublic ImageIcon(java.lang.String fileName)
fileName
- the file namepublic ImageIcon(java.net.URL location)
location
- the locationpublic ImageIcon(byte[] imageData)
imageData
- the image dataMethod Detail |
public Image getImage()
public int getIconWidth()
getIconWidth
in interface Icon
public int getIconHeight()
getIconHeight
in interface Icon
public void paintIcon(JQComponent component, Graphics g, int x, int y)
paintIcon
in interface Icon
component
- the componentg
- the graphicsx
- the icon's x coordinatey
- the icon's y coordinatepublic boolean equals(java.lang.Object obj)
public int hashCode()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |