Icon
, ResizableIcon
public class LayeredIcon extends Object implements ResizableIcon
Modifier and Type | Field | Description |
---|---|---|
protected ResizableIcon[] |
layers |
The layer icons.
|
Constructor | Description |
---|---|
LayeredIcon(ResizableIcon... layers) |
Creates a new layered icon.
|
Modifier and Type | Method | Description |
---|---|---|
int |
getIconHeight() |
|
int |
getIconWidth() |
|
void |
paintIcon(Component c,
Graphics g,
int x,
int y) |
|
void |
setDimension(Dimension newDimension) |
Changes the dimension of
this icon. |
protected ResizableIcon[] layers
public LayeredIcon(ResizableIcon... layers)
layers
- Layer icons.public void setDimension(Dimension newDimension)
ResizableIcon
this
icon.setDimension
in interface ResizableIcon
newDimension
- New dimension for this
icon.public int getIconHeight()
getIconHeight
in interface Icon
public int getIconWidth()
getIconWidth
in interface Icon