Icon
ButtonStateIcon
public abstract class MultiIcon extends Object implements Icon
Modifier and Type | Field | Description |
---|---|---|
protected Icon[] |
icons |
The icons from which we choose from.
|
Constructor | Description |
---|---|
MultiIcon(Image[] images) |
Creates a new instance from an array of images.
|
MultiIcon(Image tiledImage,
int tileCount,
boolean isTiledHorizontaly) |
Creates a new instance.
|
MultiIcon(Icon[] icons) |
Creates a new instance from an array of icons.
|
Modifier and Type | Method | Description |
---|---|---|
protected abstract void |
generateMissingIcons() |
|
protected abstract Icon |
getIcon(Component c) |
|
int |
getIconHeight() |
|
int |
getIconWidth() |
|
void |
paintIcon(Component c,
Graphics g,
int x,
int y) |
protected Icon[] icons
public MultiIcon(Icon[] icons)
public MultiIcon(Image[] images)
public MultiIcon(Image tiledImage, int tileCount, boolean isTiledHorizontaly)
public int getIconHeight()
getIconHeight
in interface Icon
public int getIconWidth()
getIconWidth
in interface Icon
protected abstract void generateMissingIcons()