|
|||||||||
| 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.ScaledImageIcon
public class ScaledImageIcon
Displays a scaled region of an image as an icon.
| Field Summary | |
|---|---|
protected Image |
_image
|
protected Rectangle |
_sregion
|
protected int |
_theight
|
protected int |
_twidth
|
| Constructor Summary | |
|---|---|
ScaledImageIcon(Image image,
int twidth,
int theight)
Creates an icon that will display the specified image scaled to the supplied size. |
|
ScaledImageIcon(Image image,
int sx,
int sy,
int swidth,
int sheight,
int twidth,
int theight)
Creates an icon that will display the specified region of the supplied image scaled to the supplied size. |
|
| 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 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Image _image
protected Rectangle _sregion
protected int _twidth
protected int _theight
| Constructor Detail |
|---|
public ScaledImageIcon(Image image,
int twidth,
int theight)
public ScaledImageIcon(Image image,
int sx,
int sy,
int swidth,
int sheight,
int twidth,
int theight)
| 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 | ||||||||