com.atlassian.jira.image.util
Class ImageUtilsImpl

java.lang.Object
  extended by com.atlassian.jira.image.util.ImageUtilsImpl
All Implemented Interfaces:
ImageUtils

public class ImageUtilsImpl
extends java.lang.Object
implements ImageUtils

Default omplementation of the Image Utility class

Since:
v4.0

Constructor Summary
ImageUtilsImpl()
           
 
Method Summary
 java.awt.Color getColor(java.lang.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
 

Constructor Detail

ImageUtilsImpl

public ImageUtilsImpl()
Method Detail

getColor

public java.awt.Color getColor(java.lang.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 convert
transparent - whether or not to add transparency
Returns:
The equiv Color or null if there was a problem parsing the string


Copyright © 2002-2010 Atlassian. All Rights Reserved.