Class Colors

java.lang.Object
org.fest.swing.util.Colors

public final class Colors extends Object
Understands utility methods related to colors.
  • Constructor Details

    • Colors

      private Colors()
  • Method Details

    • 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.