public class Icons extends Object
ImageIcon(Toolkit.getDefaultToolkit().createImage(String imageFile))"| Constructor and Description |
|---|
Icons(Icon icon)
Creates Icons from a single sized Icon.
|
Icons(Icon iconSmall,
Icon iconLarge)
Creates Icons from two sized Icons.
|
| Modifier and Type | Method and Description |
|---|---|
Icon |
getIcon(int size)
Get an icon of size * size dimensions.
|
Icon |
getIcon16()
Get a 16 * 16 pixel icon
|
Icon |
getIcon24()
Get a 24 * 24 pixel icon
|
Icon |
getIcon32()
Get a 32 * 32 pixel icon
|
Icon |
getOriginalIcon()
Get the icon used to construct this Icons object if the single parameter constructor was used,
or the larger icon if the two parameter constructor was used.
|
public Icons(Icon icon)
icon - of any size. Must not be null.public Icons(Icon iconSmall, Icon iconLarge)
iconSmall - preferably 16 * 16 pixels. May be null only if iconLarge is not null.iconLarge - preferably 24 * 24 pixels for actions and 32 * 32 for documents. May be null only if iconSmall is not null.public Icon getIcon16()
public Icon getIcon24()
public Icon getIcon32()
public Icon getOriginalIcon()
public Icon getIcon(int size)
size - size in pixels of the icon to get