com.atlassian.jira.image.util
Class ImageUtilsImpl
java.lang.Object
com.atlassian.jira.image.util.ImageUtilsImpl
- All Implemented Interfaces:
- ImageUtils
public class ImageUtilsImpl
- extends Object
- implements ImageUtils
Default omplementation of the Image Utility class
- Since:
- v4.0
Method Summary |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImageUtilsImpl
public ImageUtilsImpl()
getColor
public Color getColor(String hexString,
boolean transparent)
- Description copied from interface:
ImageUtils
- 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.
- Specified by:
getColor
in interface ImageUtils
- Parameters:
hexString
- The hex representation to converttransparent
- whether or not to add transparency
- Returns:
- The equiv Color or null if there was a problem parsing the string
Copyright © 2002-2014 Atlassian. All Rights Reserved.