public class FontAwesomeIcon extends Icon
Icon from a given FontAwesome unicode identifier.http://fortawesome.github.io/Font-Awesome/cheatsheet/,
Serialized FormImageIcon.AccessibleImageIcon| Constructor and Description |
|---|
FontAwesomeIcon(char iconID,
int size)
Creates a new
FontAwesomeIcon painted in Color.BLACK. |
FontAwesomeIcon(char iconID,
int size,
Paint color)
Creates a new
FontAwesomeIcon painted in the given Paint. |
| Modifier and Type | Method and Description |
|---|---|
int |
getIconHeight() |
int |
getIconWidth() |
Image |
getImage() |
void |
paintIcon(Component c,
Graphics g,
int x,
int y) |
getDimensiongetAccessibleContext, getDescription, getImageLoadStatus, getImageObserver, loadImage, setDescription, setImage, setImageObserver, toStringpublic FontAwesomeIcon(char iconID,
int size)
FontAwesomeIcon painted in Color.BLACK.
iconID.http://fortawesome.github.io/Font-Awesome/cheatsheet/}public FontAwesomeIcon(char iconID,
int size,
Paint color)
FontAwesomeIcon painted in the given Paint.
iconID.http://fortawesome.github.io/Font-Awesome/cheatsheet/}public int getIconHeight()
getIconHeight in interface IcongetIconHeight in class ImageIconpublic int getIconWidth()
getIconWidth in interface IcongetIconWidth in class ImageIconCopyright © 2015. All rights reserved.