|
||||||||||
| 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.SubimageIcon
public class SubimageIcon
Displays a region of an image as an icon.
| Constructor Summary | |
|---|---|
SubimageIcon(Image image,
int x,
int y,
int width,
int height)
Creates an icon that will display the specified region of the supplied 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 SubimageIcon(Image image,
int x,
int y,
int width,
int height)
| 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 | |||||||||