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