public class FontIcon
extends java.lang.Object
| Constructor and Description |
|---|
FontIcon(java.awt.Font font,
char text)
Instantiates a new icon.
|
FontIcon(java.awt.Font font,
java.lang.String unicode) |
| Modifier and Type | Method and Description |
|---|---|
java.awt.Font |
getFont()
Gets the font.
|
java.lang.String |
getText()
Gets the text.
|
void |
render(java.awt.Graphics2D g,
java.awt.Color color,
float fontSize,
double x,
double y,
boolean bold)
Render.
|
public FontIcon(java.awt.Font font,
char text)
font - the fonttext - the textpublic FontIcon(java.awt.Font font,
java.lang.String unicode)
public java.awt.Font getFont()
public java.lang.String getText()
public void render(java.awt.Graphics2D g,
java.awt.Color color,
float fontSize,
double x,
double y,
boolean bold)
g - the gcolor - the colorfontSize - the font sizex - the xy - the ybold - the bold