public class ButtonImages
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private int |
height
The button height.
|
private java.awt.Image |
imageLeft
The left border of the button.
|
private java.awt.Image |
imageMiddle
The background of the middle part of the button.
|
private java.awt.Image |
imageRight
The right border of the button.
|
Constructor and Description |
---|
ButtonImages(java.awt.Image imageLeft,
java.awt.Image imageMiddle,
java.awt.Image imageRight)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
int |
getHeight()
Returns the button's height.
|
void |
render(java.awt.Graphics g,
int w)
Draws the button.
|
private final int height
@NotNull private final java.awt.Image imageLeft
@NotNull private final java.awt.Image imageMiddle
@NotNull private final java.awt.Image imageRight