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) |
getDimension
getAccessibleContext, getDescription, getImageLoadStatus, getImageObserver, loadImage, setDescription, setImage, setImageObserver, toString
public 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 Icon
getIconHeight
in class ImageIcon
public int getIconWidth()
getIconWidth
in interface Icon
getIconWidth
in class ImageIcon
Copyright © 2015. All rights reserved.