Class ColorUtils

java.lang.Object
com.atlassian.greenhopper.util.ColorUtils

public class ColorUtils extends Object
Color utilities
  • Constructor Details

    • ColorUtils

      public ColorUtils()
  • Method Details

    • colorToHex

      public static String colorToHex(Color color)
      Returns the hex string of a color
    • hexToColor

      public static Color hexToColor(String hex)
      Converts a hex to a color
      Returns:
      the Color or null in case hex couldn't be parsed
    • hexToColor

      public static Color hexToColor(String hex, Color fallback)
      Convert a hex to a Color
      Returns:
      the Color described by hex or fallback in case of errors (null, wrong format, etc)