Cytoscape 2.6.2 (c) 2006,2007 ISB, MSKCC, UCSD

cytoscape.util
Class Misc

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

public class Misc
extends Object


Constructor Summary
Misc()
           
 
Method Summary
static Vector getPropertyValues(Properties props, String propName)
          return the (possibly multiple) value of the specified property as a vector.
static String getRGBText(Color color)
          DOCUMENT ME!
static boolean isList(String listString, String startToken, String endToken, String delimiter)
          DOCUMENT ME!
static String[] parseList(String listString, String startToken, String endToken, String delimiter)
          DOCUMENT ME!
static Color parseRGBText(String text)
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Misc

public Misc()
Method Detail

parseRGBText

public static Color parseRGBText(String text)
DOCUMENT ME!

Parameters:
text - DOCUMENT ME!
Returns:
DOCUMENT ME!

getRGBText

public static String getRGBText(Color color)
DOCUMENT ME!

Parameters:
color - DOCUMENT ME!
Returns:
DOCUMENT ME!

getPropertyValues

public static Vector getPropertyValues(Properties props,
                                       String propName)
return the (possibly multiple) value of the specified property as a vector. property values (which typically come from cytoscape.prop files) are usually scalar strings, but may be a list of such strings, surrounded by parentheses, and delimited by the value of a property called 'property.delimiter' (whose value is usually "::") get the property value; check to see if it is a list; parse it if necessary


isList

public static boolean isList(String listString,
                             String startToken,
                             String endToken,
                             String delimiter)
DOCUMENT ME!

Parameters:
listString - DOCUMENT ME!
startToken - DOCUMENT ME!
endToken - DOCUMENT ME!
delimiter - DOCUMENT ME!
Returns:
DOCUMENT ME!

parseList

public static String[] parseList(String listString,
                                 String startToken,
                                 String endToken,
                                 String delimiter)
DOCUMENT ME!

Parameters:
listString - DOCUMENT ME!
startToken - DOCUMENT ME!
endToken - DOCUMENT ME!
delimiter - DOCUMENT ME!
Returns:
DOCUMENT ME!

www.cytoscape.org