public class ColorHelper extends Object
Constructor and Description |
---|
ColorHelper() |
Modifier and Type | Method and Description |
---|---|
static String |
getHexColor(Color color)
Convert a color into a string representation as hex digits.
|
static String |
getHtmlColor(Color color)
Convert a color into an HTML color representation.
|
static Color |
parseHexColor(String value)
Create a Color instance by parsing a hex string representation of a color.
|
static Color |
parseHtmlColor(String value)
Create a Color instance by parsing an HTML representation of a color.
|
public static String getHtmlColor(Color color)
color
- Color instancepublic static String getHexColor(Color color)
color
- Color instancepublic static Color parseHexColor(String value)
value
- hex string representation of a colorCopyright © 2000–2024 Packwood Software. All rights reserved.