public final class GuiConvert extends Object
The GNU General Public License for details.
Modifier and Type | Field and Description |
---|---|
private static org.slf4j.Logger |
log
The log stream
|
Modifier | Constructor and Description |
---|---|
private |
GuiConvert()
We don't want anyone doing this ...
|
Modifier and Type | Method and Description |
---|---|
static String |
color2String(Color color)
Convert a Color to a String
|
static Font |
deriveFont(String fontspec,
String fontName)
Create a font just like the another with regard to style and size, but
differing in font family.
|
static String |
font2String(Font font)
Convert a Font to a String.
|
static Color |
string2Color(String value)
Convert a String to a Color
|
static Font |
string2Font(String value)
Convert a String to a Font.
|
public static Font string2Font(String value)
value
- the thing to convertpublic static String font2String(Font font)
Font.decode(String)
.font
- the thing to convertpublic static Font deriveFont(String fontspec, String fontName)
fontspec
- the font to modelfontName
- the font to usepublic static Color string2Color(String value)
value
- the thing to convert