public class FontHelper
extends java.lang.Object
Constructor and Description |
---|
FontHelper()
No-op constructor (for beans conformity)
|
FontHelper(java.awt.Font font)
Constructor
|
Modifier and Type | Method and Description |
---|---|
java.awt.Font |
getFont()
Get the Font wrapped by this instance
|
java.lang.String |
getFontName()
Get the font name
|
int |
getFontSize()
Get the font size
|
int |
getFontStyle()
Get the font style (see constants in Font class)
|
void |
setFontName(java.lang.String fontName)
Set the font name
|
void |
setFontSize(int size)
Set the font size
|
void |
setFontStyle(int style)
Set the font style (see constants in Font class)
|
public FontHelper(java.awt.Font font)
font
- the font to wrappublic FontHelper()
public void setFontName(java.lang.String fontName)
fontName
- the name of the fontpublic java.lang.String getFontName()
public void setFontStyle(int style)
style
- the style of the fontpublic int getFontStyle()
public void setFontSize(int size)
size
- the sizepublic int getFontSize()
public java.awt.Font getFont()