public class

ImageUtilsImpl

extends Object
implements ImageUtils
java.lang.Object
   ↳ com.atlassian.jira.image.util.ImageUtilsImpl

Class Overview

Default omplementation of the Image Utility class

Summary

Public Constructors
ImageUtilsImpl()
Public Methods
Color getColor(String hexString, boolean transparent)
Turn a hex string into a Color Input string can ontain a leading hash (#) and can be a 3 char or 6 char hex string.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.image.util.ImageUtils

Public Constructors

public ImageUtilsImpl ()

Public Methods

public Color getColor (String hexString, boolean transparent)

Turn a hex string into a Color Input string can ontain a leading hash (#) and can be a 3 char or 6 char hex string. See any web tutorial for what colour the string represents. If hex colors are wrong, null is returned.

Parameters
hexString The hex representation to convert
transparent whether or not to add transparency
Returns
  • The equiv Color or null if there was a problem parsing the string