Author: laylaoesper
Date: 2010-06-28 11:00:57 -0700 (Mon, 28 Jun 2010)
New Revision: 20680

Modified:
   
csplugins/trunk/soc/layla/SemanticSummary/src/cytoscape/csplugins/semanticsummary/CloudWordInfo.java
   
csplugins/trunk/soc/layla/SemanticSummary/src/cytoscape/csplugins/semanticsummary/SemanticSummary.jar
   
csplugins/trunk/soc/layla/SemanticSummary/src/cytoscape/csplugins/semanticsummary/SemanticSummaryClusterBuilder.java
Log:
Adding some changes with the colors of words to the SemanticSummary Plugin.

Modified: 
csplugins/trunk/soc/layla/SemanticSummary/src/cytoscape/csplugins/semanticsummary/CloudWordInfo.java
===================================================================
--- 
csplugins/trunk/soc/layla/SemanticSummary/src/cytoscape/csplugins/semanticsummary/CloudWordInfo.java
        2010-06-28 18:00:54 UTC (rev 20679)
+++ 
csplugins/trunk/soc/layla/SemanticSummary/src/cytoscape/csplugins/semanticsummary/CloudWordInfo.java
        2010-06-28 18:00:57 UTC (rev 20680)
@@ -142,7 +142,7 @@
                                if (view.getNetwork().equals(network))
                                //if 
(!Cytoscape.getCurrentNetworkView().equals(Cytoscape.getNullNetworkView()))
                                {
-                                       clickedLabel.setForeground(Color.BLUE);
+                                       clickedLabel.setForeground(Color.CYAN);
                                        clickedLabel.repaint();
                                }
                                

Modified: 
csplugins/trunk/soc/layla/SemanticSummary/src/cytoscape/csplugins/semanticsummary/SemanticSummary.jar
===================================================================
(Binary files differ)

Modified: 
csplugins/trunk/soc/layla/SemanticSummary/src/cytoscape/csplugins/semanticsummary/SemanticSummaryClusterBuilder.java
===================================================================
--- 
csplugins/trunk/soc/layla/SemanticSummary/src/cytoscape/csplugins/semanticsummary/SemanticSummaryClusterBuilder.java
        2010-06-28 18:00:54 UTC (rev 20679)
+++ 
csplugins/trunk/soc/layla/SemanticSummary/src/cytoscape/csplugins/semanticsummary/SemanticSummaryClusterBuilder.java
        2010-06-28 18:00:57 UTC (rev 20680)
@@ -48,7 +48,7 @@
        private Double cutoff;
        private ArrayList<CloudWordInfo> cloudWords;
        boolean initialized;
-       private final static Integer NUMCOLORS = 8;
+       private final static Integer NUMCOLORS = 7;
        
        //CONSTRUCTORS
        
@@ -126,15 +126,26 @@
                
         switch (rem) 
         {
-            case 0:  textColor = Color.BLACK; break;
-            case 1:  textColor = Color.CYAN; break;
-            case 2:  textColor = Color.GRAY; break;
-            case 3:  textColor = Color.GREEN; break;
-            case 4:  textColor = Color.MAGENTA; break;
-            case 5:  textColor = Color.ORANGE; break;
-            case 6:  textColor = Color.PINK; break;
-            case 7:  textColor = Color.RED; break;
+           /*
+               case 0:  textColor = Color.BLACK; break;
+            case 1:  textColor = Color.RED; break;
+            case 2:  textColor = Color.GREEN; break;
+            case 3:  textColor = Color.ORANGE; break;
+            case 4:  textColor = Color.BLUE; break;
+            case 5:  textColor = Color.MAGENTA; break;
+            case 6:  textColor = Color.GRAY; break;
             default: textColor = Color.BLACK;break; //Black by default
+            */
+               
+               case 0:  textColor = Color.BLACK; break;
+               case 1:  textColor = new Color(204,0,0); break;
+               case 2:  textColor = new Color(0,153,0); break;
+               case 3:  textColor = new Color(255,179,0); break;
+               case 4:  textColor = new Color(0,0,204); break;
+               case 5:  textColor = new Color(255,0,204); break;
+               case 6:  textColor = Color.GRAY; break;
+               default: textColor = Color.BLACK;break; //Black by default
+        
         }
         return textColor;
        }

-- 
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