public class GlobalUIUtil extends Object
| Constructor and Description |
|---|
GlobalUIUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
colorToString(Color color) |
static Font |
deriveFont(Font font,
float size)
Create a new Font given an existing font and a different font size.
|
static Font |
deriveFont(Font font,
int style)
Create a new Font given an existing font and a different font style.
|
static Font |
deriveFont(Font font,
String name)
Create a new Font given an existing font and a different font name.
|
static String |
fontToString(Font font) |
static String |
numberToPaddedHexString(int number,
int size) |
static Color |
stringToColor(String s) |
static Color |
stringToColor(String s,
Color defaultColor) |
static Font |
stringToFont(String fontString) |
static int |
stringToInt(String number,
int defaultValue) |
public static Font deriveFont(Font font, String name)
font - font to base new font onname - new font namepublic static Font deriveFont(Font font, int style)
font - font to base new font onstyle - new font stylepublic static Font deriveFont(Font font, float size)
font - font to base new font onsize - new font sizepublic static int stringToInt(String number, int defaultValue)
number - defaultValue - public static Color stringToColor(String s)
s - IllegalArgumentExceptionpublic static Color stringToColor(String s, Color defaultColor)
s - IllegalArgumentExceptionpublic static String numberToPaddedHexString(int number, int size)
number - size - IllegalArgumentExceptionCopyright © 2021. All rights reserved.