public class HexAlphaColorFormat extends Object implements ColorFormat
| Name | HexAlphaColorFormat |
|---|---|
| Format |
|
| Description |
|
| Example of valid values |
|
| Notes | Not an official format, as HexColorFormat just added the AA field. |
| Links | |
| Constructor and Description |
|---|
HexAlphaColorFormat() |
| Modifier and Type | Method and Description |
|---|---|
String |
format(Color color)
Formats the color to a string representation of this format.
|
boolean |
isAlphaSupported()
Do the implemtation supports Alpha (opacity).
|
Color |
parse(String text)
See class documentation
|
public Color parse(String text) throws ColorFormatException
parse in interface ColorFormattext - a text string with the color format.ColorFormatException - if the text is null or can not be parse by this format.Colorpublic String format(Color color) throws NullPointerException
ColorFormatformat in interface ColorFormatcolor - the color.NullPointerException - if color is null.public boolean isAlphaSupported()
ColorFormatisAlphaSupported in interface ColorFormattrue if the ColorFormat supports Alpha, otherwise false.