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 ColorcolorFromHexString(String hexString) Returns afrom the givenColorStringcontaining the hexadecimal coding of a color.
-
Constructor Details
-
Colors
private Colors()
-
-
Method Details
-
colorFromHexString
Returns afrom the givenColorStringcontaining the hexadecimal coding of a color.- Parameters:
hexString- contains the hexadecimal coding of a color.- Returns:
- a
Colorfrom the givenStringcontaining 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.
-