Author: scooter
Date: 2011-04-08 13:30:08 -0700 (Fri, 08 Apr 2011)
New Revision: 24725

Modified:
   
csplugins/trunk/ucsf/scooter/clusterMaker/src/clusterMaker/treeview/dendroview/GlobalView.java
Log:
Make GlobalView highlight larger and draw it second.



Modified: 
csplugins/trunk/ucsf/scooter/clusterMaker/src/clusterMaker/treeview/dendroview/GlobalView.java
===================================================================
--- 
csplugins/trunk/ucsf/scooter/clusterMaker/src/clusterMaker/treeview/dendroview/GlobalView.java
      2011-04-08 18:58:39 UTC (rev 24724)
+++ 
csplugins/trunk/ucsf/scooter/clusterMaker/src/clusterMaker/treeview/dendroview/GlobalView.java
      2011-04-08 20:30:08 UTC (rev 24725)
@@ -317,21 +317,19 @@
        public synchronized void paintComposite (Graphics g) {
                // composite the rectangles...
                if (selectionRect != null) {        
+                       g.setColor(Color.white);
+                       g.drawRect(selectionRect.x, selectionRect.y, 
selectionRect.width, selectionRect.height);
+                       g.setColor(Color.black);
+                       g.drawRect(selectionRect.x-1, selectionRect.y-1, 
selectionRect.width+2, selectionRect.height+2);
+
+                       // Draw the zoomRect second so that it shows up
                        if (zoomRect != null) {
                                g.setColor(Color.magenta);
-                               g.drawRect(zoomRect.x, zoomRect.y, 
-                               zoomRect.width, zoomRect.height);
+                               g.drawRect(zoomRect.x, zoomRect.y, 
zoomRect.width, zoomRect.height);
+                               g.drawRect(zoomRect.x-1, zoomRect.y-1, 
zoomRect.width+2, zoomRect.height+2);
                                g.setColor(Color.black);
-                               g.drawRect(zoomRect.x-1, zoomRect.y-1, 
-                               zoomRect.width+2, zoomRect.height+2);
+                               g.drawRect(zoomRect.x-2, zoomRect.y-2, 
zoomRect.width+4, zoomRect.height+4);
                        }
-       
-                       g.setColor(Color.white);
-                       g.drawRect(selectionRect.x, selectionRect.y, 
-                       selectionRect.width, selectionRect.height);
-                       g.setColor(Color.black);
-                       g.drawRect(selectionRect.x-1, selectionRect.y-1, 
-                       selectionRect.width+2, selectionRect.height+2);
                }
        }
 

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