|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.brains2b.swingext.util.FontHelper
public final class FontHelper
Helper class to encode a Font into a String that can be decoded with
Font.decode(String)
Constructor Summary | |
---|---|
FontHelper()
|
Method Summary | |
---|---|
static java.lang.String |
encode(java.awt.Font f)
Encode a Font into a String that can be decoded with Font.decode(String) |
static java.lang.String |
getStyle(int style)
get the String representation of the style constants from Font |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FontHelper()
Method Detail |
---|
public static java.lang.String encode(java.awt.Font f)
Font.decode(String)
f
- Font, the font to encode
public static java.lang.String getStyle(int style)
style
- int, one of the constants Font.BOLD, Font.ITALIC, Font.PLAIN or the sum of those
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |