jas.util
Class ColorConverter

java.lang.Object
  extended by jas.util.ColorConverter

public final class ColorConverter
extends Object


Nested Class Summary
static class ColorConverter.ColorConversionException
           
 
Method Summary
static String colorToString(Color c)
           
static Color stringToHTMLColor(String str)
          Convert a color string "RED" (case-insensitive) or "#NNNNNN" or "(RRR,GGG,BBB)" to a Color.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

stringToHTMLColor

public static Color stringToHTMLColor(String str)
                               throws ColorConverter.ColorConversionException
Convert a color string "RED" (case-insensitive) or "#NNNNNN" or "(RRR,GGG,BBB)" to a Color.

Returns:
the Color (null if no match is found)
Throws:
ColorConverter.ColorConversionException

colorToString

public static String colorToString(Color c)


Copyright © 2000-2009 FreeHEP. All Rights Reserved.