|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.threerings.opengl.gui.icon.Icon
com.threerings.opengl.gui.icon.ImageIcon
public class ImageIcon
Displays an image as an icon.
| Constructor Summary | |
|---|---|
ImageIcon(Icon icon)
Converts the supplied AWT icon into a BUI icon. |
|
ImageIcon(Image image)
Creates an icon from the supplied source image. |
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ImageIcon(Image image)
public ImageIcon(Icon icon)
| Method Detail |
|---|
public int getWidth()
Icon
getWidth in class Iconpublic int getHeight()
Icon
getHeight in class Icon
public void render(Renderer renderer,
int x,
int y,
float alpha)
Icon
render in class Icon
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||