Groovy Documentation

griffon.plugins.fontawesome
[Java] Class FontAwesomeIcon

java.lang.Object
  griffon.plugins.fontawesome.FontAwesomeIcon
All Implemented Interfaces:
Icon

public class FontAwesomeIcon
extends Object

Based on original code by Mario Torre
http://icedtea.classpath.org/people/neugens/SwingUIPatterns/file/f4528c35cc0c/src/main/java/org/icedtea/ui/patterns/swing/images/FontAwesomeIcon.java

Authors:
Andres Almiray


Field Summary
private static String AWESOME_SET

private static Object LOCK

private static Font awesome

private BufferedImage buffer

private Color color

private Font font

private FontAwesome id

private int size

 
Constructor Summary
FontAwesomeIcon(FontAwesome id)

FontAwesomeIcon(String description)

 
Method Summary
Color getColor()

int getIconHeight()

int getIconWidth()

int getSize()

void paintIcon(Component c, Graphics g, int x, int y)

void setColor(Color color)

void setSize(int size)

 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Field Detail

AWESOME_SET

private static final String AWESOME_SET


LOCK

private static final Object LOCK


awesome

private static final Font awesome


buffer

private BufferedImage buffer


color

private Color color


font

private Font font


id

private FontAwesome id


size

private int size


 
Constructor Detail

FontAwesomeIcon

public FontAwesomeIcon(FontAwesome id)


FontAwesomeIcon

public FontAwesomeIcon(String description)


 
Method Detail

getColor

public Color getColor()


getIconHeight

public int getIconHeight()


getIconWidth

public int getIconWidth()


getSize

public int getSize()


paintIcon

public void paintIcon(Component c, Graphics g, int x, int y)


setColor

public void setColor(Color color)


setSize

public void setSize(int size)


 

Groovy Documentation