Package org.fest.swing.util
Class Colors
java.lang.Object
org.fest.swing.util.Colors
Understands utility methods related to colors.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Color
colorFromHexString
(String hexString) Returns a
from the givenColor
String
containing the hexadecimal coding of a color.
-
Constructor Details
-
Colors
private Colors()
-
-
Method Details
-
colorFromHexString
Returns a
from the givenColor
String
containing the hexadecimal coding of a color.- Parameters:
hexString
- contains the hexadecimal coding of a color.- Returns:
- a
Color
from the givenString
containing the hexadecimal coding of a color. - Throws:
NullPointerException
- if the hexadecimal code isnull
.IllegalArgumentException
- if the hexadecimal code is empty.NumberFormatException
- if the hexadecimal code is empty.
-