public class ColorHexUtil
extends java.lang.Object
Constructor and Description |
---|
ColorHexUtil() |
Modifier and Type | Method and Description |
---|---|
static java.awt.Color |
fromHex(java.lang.String str) |
static java.awt.Color |
fromHex(java.lang.String str,
java.awt.Color defaultValue) |
static java.awt.Color |
fromHexOrNull(java.lang.String str)
Return Color object from string.
|
public static java.awt.Color fromHex(java.lang.String str)
public static java.awt.Color fromHexOrNull(java.lang.String str)
0xA1B2C3
,
#abc123
,
ABC123
,
ab5
,
#FFF
.str
- hex stringpublic static java.awt.Color fromHex(java.lang.String str, java.awt.Color defaultValue)