org.simBio.sim.analyzer.graph
Class ColorUtil

java.lang.Object
  extended by org.simBio.sim.analyzer.graph.ColorUtil

public class ColorUtil
extends java.lang.Object

Colour-related utility class.

Version:
$Id: ColorUtil.java,v 1.2 2007/02/07 03:13:03 nsarai Exp $
Author:
misaki

Constructor Summary
ColorUtil()
           
 
Method Summary
static java.awt.Color stringToColor(java.lang.String color)
          Returns a Color object, from a string which shows the colour. The string which displays the colour has the 2 patterns below #RRGGBB : Specifies each R,G,B with base 16 numbers {@.en RED, WHITE, ...
static java.awt.Color stringToColor(java.lang.String color, java.awt.Color defaultColor)
          Returns a Color object, from a string which shows the colour. The string which displays the colour has the 2 patterns below #RRGGBB : Specifies each R,G,B with base 16 numbers {@.en RED, WHITE, ...
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColorUtil

public ColorUtil()
Method Detail

stringToColor

public static java.awt.Color stringToColor(java.lang.String color)
Returns a Color object, from a string which shows the colour. The string which displays the colour has the 2 patterns below

Parameters:
color - string which shows the colour
Returns:
a Color object, or null in the case of an incorrect parameter

stringToColor

public static java.awt.Color stringToColor(java.lang.String color,
                                           java.awt.Color defaultColor)
Returns a Color object, from a string which shows the colour. The string which displays the colour has the 2 patterns below

Parameters:
color - string that shows the colour
defaultColor - return value in the case of an incorrect parameter
Returns:
Color object


Copyright © 2002-2008 Cell/Biodinamics simulation project. All Rights Reserved.