|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.hedenus.mobilegui.Icon
public class Icon
An icon that can be rendered.
Constructor Summary | |
---|---|
Icon()
|
|
Icon(java.net.URL source)
|
Method Summary | |
---|---|
java.lang.String |
getDescription()
|
int |
getHeight()
|
java.awt.Image |
getImage()
Returns this icon's Image . |
int |
getImageLoadStatus()
Returns the status of the image loading operation. |
java.net.URL |
getSource()
|
int |
getWidth()
|
void |
load(java.net.URL source)
|
void |
paint(java.awt.Component c,
java.awt.Graphics g,
int x,
int y)
|
void |
setImage(java.awt.Image image)
Sets the image displayed by this icon. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Icon()
public Icon(java.net.URL source)
Method Detail |
---|
public void load(java.net.URL source)
public void paint(java.awt.Component c, java.awt.Graphics g, int x, int y)
public int getImageLoadStatus()
MediaTracker.ABORTED
,
MediaTracker.ERRORED
,
MediaTracker.COMPLETE
public java.awt.Image getImage()
Image
.
Image
object for this icon.public void setImage(java.awt.Image image)
image
- the imagepublic java.lang.String getDescription()
public int getHeight()
public java.net.URL getSource()
public int getWidth()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |