public class ItemIcon
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static javax.swing.ImageIcon |
CHAIR_ICON_1 |
static javax.swing.ImageIcon |
CHAIR_ICON_2 |
static javax.swing.ImageIcon[] |
DESK_ICON |
static javax.swing.ImageIcon |
DESK_ICON_1 |
static javax.swing.ImageIcon |
DESK_ICON_2 |
static javax.swing.ImageIcon |
DESK_ICON_3 |
static javax.swing.ImageIcon |
DESK_ICON_4 |
static javax.swing.ImageIcon |
TABLE_ICON_1 |
static javax.swing.ImageIcon |
TABLE_ICON_2 |
| Constructor and Description |
|---|
ItemIcon() |
| Modifier and Type | Method and Description |
|---|---|
static javax.swing.ImageIcon |
resize(javax.swing.ImageIcon i,
java.awt.Dimension d)
Resizes an ImageIcon using the Image.SCALE_SMOOTH arg.
|
static javax.swing.ImageIcon |
resize(javax.swing.ImageIcon i,
int x,
int y)
Resizes an ImageIcon using the Image.SCALE_SMOOTH arg.
|
public static final javax.swing.ImageIcon CHAIR_ICON_1
public static final javax.swing.ImageIcon CHAIR_ICON_2
public static final javax.swing.ImageIcon DESK_ICON_1
public static final javax.swing.ImageIcon DESK_ICON_2
public static final javax.swing.ImageIcon DESK_ICON_3
public static final javax.swing.ImageIcon DESK_ICON_4
public static final javax.swing.ImageIcon[] DESK_ICON
public static final javax.swing.ImageIcon TABLE_ICON_1
public static final javax.swing.ImageIcon TABLE_ICON_2
public static javax.swing.ImageIcon resize(javax.swing.ImageIcon i,
int x,
int y)
i - The ImageIcon.x - The X size of the new image,y - The Y size of the new image.public static javax.swing.ImageIcon resize(javax.swing.ImageIcon i,
java.awt.Dimension d)
i - The ImageIcon.d - Dimension of the desired image.