|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.jmex.bui.icon.BIcon
com.jmex.bui.icon.ImageIcon
public class ImageIcon
Displays an image as an icon.
| Field Summary | |
|---|---|
protected BImage |
_image
|
| Constructor Summary | |
|---|---|
ImageIcon(BImage image)
Creates an icon from the supplied source image. |
|
ImageIcon(Icon icon)
Converts the supplied AWT icon into a BUI icon. |
|
| Method Summary | |
|---|---|
int |
getHeight()
Returns the height of this icon. |
int |
getWidth()
Returns the width of this icon. |
void |
render(Renderer renderer,
int x,
int y,
float alpha)
Renders this icon. |
void |
wasAdded()
Called when the component that contains this icon is was added to the interface hierarchy. |
void |
wasRemoved()
Called when the component that contains this icon is no longer part of a user interface hierarchy. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected BImage _image
| Constructor Detail |
|---|
public ImageIcon(BImage image)
public ImageIcon(Icon icon)
| Method Detail |
|---|
public int getWidth()
BIcon
getWidth in class BIconpublic int getHeight()
BIcon
getHeight in class BIconpublic void wasAdded()
BIcon
wasAdded in class BIconpublic void wasRemoved()
BIcon
wasRemoved in class BIcon
public void render(Renderer renderer,
int x,
int y,
float alpha)
BIcon
render in class BIcon
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||