Author: apico
Date: 2010-09-06 01:10:22 -0700 (Mon, 06 Sep 2010)
New Revision: 21711

Modified:
   
csplugins/trunk/ucsf/scooter/nodeCharts/src/main/java/nodeCharts/command/ValueUtils.java
Log:
added support for colorlists with only a single color 

Modified: 
csplugins/trunk/ucsf/scooter/nodeCharts/src/main/java/nodeCharts/command/ValueUtils.java
===================================================================
--- 
csplugins/trunk/ucsf/scooter/nodeCharts/src/main/java/nodeCharts/command/ValueUtils.java
    2010-09-06 00:13:54 UTC (rev 21710)
+++ 
csplugins/trunk/ucsf/scooter/nodeCharts/src/main/java/nodeCharts/command/ValueUtils.java
    2010-09-06 08:10:22 UTC (rev 21711)
@@ -246,8 +246,13 @@
                        return generateModulatedRainbowColors(nColors);
                else if (input.equals(CONTRASTING))
                        return generateContrastingColors(nColors);
-               else
-                       throw new CyCommandException("unknown color keyword: 
'"+input+"'");
+               else {
+                       String [] colorArray = null;
+                       colorArray[0] = input;
+                       List<Color> colors = parseColorList(colorArray);
+                       return colors;
+                       //throw new CyCommandException("unknown color keyword: 
'"+input+"'");
+               }
        }
 
        private static List<Color> parseColorList(String[] inputArray) throws 
CyCommandException {

-- 
You received this message because you are subscribed to the Google Groups 
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/cytoscape-cvs?hl=en.

Reply via email to