org.fest.swing.util
Class Colors
java.lang.Object
org.fest.swing.util.Colors
public final class Colors
- extends Object
Understands utility methods related to colors.
- Author:
- Alex Ruiz
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
colorFromHexString
public static Color colorFromHexString(String hexString)
- Returns a
Color
from the given String
containing the hexadecimal coding of a
color.
- Parameters:
hexString
- contains the hexadecimal coding of a color.
- Returns:
- a
Color
from the given String
containing the hexadecimal coding of a color.
- Throws:
NullPointerException
- if the hexadecimal code is null
.
IllegalArgumentException
- if the hexadecimal code is empty.
NumberFormatException
- if the hexadecimal code is empty.
Copyright © 2007-2011 FEST (Fixtures for Easy Software Testing). All Rights Reserved.