Cytoscape 2.8.0 API

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)
          Deprecated. Will be removed April, 2011. Use ColorUtil.getColorAsText instead.
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 colorAsText)
          Deprecated. will be removed in April, 2011. use ColorUtil.parseColorText instead.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Misc

public Misc()
Method Detail

parseRGBText

@Deprecated
public static Color parseRGBText(String colorAsText)
Deprecated. will be removed in April, 2011. use ColorUtil.parseColorText instead.

Convert string to color object.

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

getRGBText

@Deprecated
public static String getRGBText(Color color)
Deprecated. Will be removed April, 2011. Use ColorUtil.getColorAsText instead.

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!

Cytoscape 2.8.0 API

Copyright 2010 Cytoscape Consortium. All rights reserved.