Cytoscape 2.8.0 API

cytoscape.util
Class ColorUtil

java.lang.Object
  extended by cytoscape.util.ColorUtil

public class ColorUtil
extends Object

Color utility class to convert Java color object to string and vice versa.

Since:
Cytoscape 2.8.0
Author:
kono

Constructor Summary
ColorUtil()
           
 
Method Summary
static String getColorAsText(Color color)
          Convert Color object into RGB String (e.g., (200,100,120))
static Color getComplementaryColor(Color color1)
           
static Color parseColorText(String colorAsText)
          Convert text representation of color into Color object.
 
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

parseColorText

public static Color parseColorText(String colorAsText)
Convert text representation of color into Color object.

This parser cupports the following test representation of color:

Parameters:
colorAsText -
Returns:
Color object

getColorAsText

public static String getColorAsText(Color color)
Convert Color object into RGB String (e.g., (200,100,120))

Parameters:
color -
Returns:

getComplementaryColor

public static Color getComplementaryColor(Color color1)

Cytoscape 2.8.0 API

Copyright 2010 Cytoscape Consortium. All rights reserved.