Class ColorUtil
java.lang.Object
de.julianweinelt.datacat.dbx.util.ColorUtil
Utility class for parsing colors. Colors are converted in a database-friendly String format:
rrr;ggg;bbb;aaa- Version:
- 1.0.0
- Author:
- Julian Weinelt
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ColorUtil
public ColorUtil()
-
-
Method Details
-
toString
- Parameters:
color- TheColorobject to convert- Returns:
- The color in the text format
rrr;ggg;bbb;aaa
-
toColor
Convert a text into aColorusing the formatrrr;ggg;bbb;aaa- Parameters:
color- TheStringto convert- Returns:
- A
Colorobject created from the text - Throws:
InvalidColorException- if the entered text cannot be parsed to a color.
-
isValidRGBA
-