Package com.atlassian.greenhopper.util
Class ColorUtils
java.lang.Object
com.atlassian.greenhopper.util.ColorUtils
Color utilities
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringcolorToHex(Color color) Returns the hex string of a colorstatic ColorhexToColor(String hex) Converts a hex to a colorstatic ColorhexToColor(String hex, Color fallback) Convert a hex to a Color
-
Constructor Details
-
ColorUtils
public ColorUtils()
-
-
Method Details
-
colorToHex
Returns the hex string of a color -
hexToColor
Converts a hex to a color- Returns:
- the Color or null in case hex couldn't be parsed
-
hexToColor
Convert a hex to a Color- Returns:
- the Color described by hex or fallback in case of errors (null, wrong format, etc)
-