org.biojava.spice.utils
Class ColorTools

java.lang.Object
  extended byorg.biojava.spice.utils.ColorTools

public class ColorTools
extends Object


Constructor Summary
ColorTools()
           
 
Method Summary
static String colorToString(Color c)
          convert a Color to a html style hexadecimal String representation e.g.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColorTools

public ColorTools()
Method Detail

colorToString

public static String colorToString(Color c)
convert a Color to a html style hexadecimal String representation e.g. new Color(0,153,255); will be shown as #0099ff

Parameters:
c - color
Returns:
a HTML style String representation of the color