|
Crossfire JXClient, Trunk
R20561
|
A set of images to form a button image. More...
Collaboration diagram for com.realtime.crossfire.jxclient.gui.button.ButtonImages:Public Member Functions | |
| ButtonImages (@NotNull final Image imageLeft, @NotNull final Image imageMiddle, @NotNull final Image imageRight) | |
| Creates a new instance. More... | |
| int | getHeight () |
| Returns the button's height. More... | |
| void | render (@NotNull final Graphics g, final int w) |
| Draws the button. More... | |
Private Attributes | |
| final int | height |
| The button height. More... | |
| final Image | imageLeft |
| The left border of the button. More... | |
| final Image | imageMiddle |
| The background of the middle part of the button. More... | |
| final Image | imageRight |
| The right border of the button. More... | |
A set of images to form a button image.
The button image consists of a left, a middle, and a right part. Left and right parts have fixed size, the middle part is clipped or repeated to the button's width.
Definition at line 34 of file ButtonImages.java.
| com.realtime.crossfire.jxclient.gui.button.ButtonImages.ButtonImages | ( | @NotNull final Image | imageLeft, |
| @NotNull final Image | imageMiddle, | ||
| @NotNull final Image | imageRight | ||
| ) |
Creates a new instance.
| imageLeft | the left image |
| imageMiddle | the middle image |
| imageRight | the right image |
Definition at line 65 of file ButtonImages.java.
References com.realtime.crossfire.jxclient.gui.button.ButtonImages.imageLeft, com.realtime.crossfire.jxclient.gui.button.ButtonImages.imageMiddle, and com.realtime.crossfire.jxclient.gui.button.ButtonImages.imageRight.
| int com.realtime.crossfire.jxclient.gui.button.ButtonImages.getHeight | ( | ) |
Returns the button's height.
Definition at line 83 of file ButtonImages.java.
References com.realtime.crossfire.jxclient.gui.button.ButtonImages.height.
| void com.realtime.crossfire.jxclient.gui.button.ButtonImages.render | ( | @NotNull final Graphics | g, |
| final int | w | ||
| ) |
Draws the button.
| g | the graphics to paint into |
| w | the button width |
Definition at line 92 of file ButtonImages.java.
|
private |
The button height.
Definition at line 57 of file ButtonImages.java.
Referenced by com.realtime.crossfire.jxclient.gui.button.ButtonImages.getHeight().
|
private |
The left border of the button.
Definition at line 40 of file ButtonImages.java.
Referenced by com.realtime.crossfire.jxclient.gui.button.ButtonImages.ButtonImages().
|
private |
The background of the middle part of the button.
Definition at line 46 of file ButtonImages.java.
Referenced by com.realtime.crossfire.jxclient.gui.button.ButtonImages.ButtonImages().
|
private |
The right border of the button.
Definition at line 52 of file ButtonImages.java.
Referenced by com.realtime.crossfire.jxclient.gui.button.ButtonImages.ButtonImages().