|
|||||||||
| 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.SubimageIcon
public class SubimageIcon
Displays a region of an image as an icon.
| Field Summary | |
|---|---|
protected BImage |
_image
|
protected Rectangle |
_region
|
| Constructor Summary | |
|---|---|
SubimageIcon(BImage 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. |
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
protected Rectangle _region
| Constructor Detail |
|---|
public SubimageIcon(BImage image,
int x,
int y,
int width,
int height)
| 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 | ||||||||