Author: kono
Date: 2010-02-17 14:17:26 -0800 (Wed, 17 Feb 2010)
New Revision: 19349

Modified:
   cytoscape/trunk/src/cytoscape/view/CytoscapeDesktop.java
   cytoscape/trunk/src/cytoscape/visual/ui/VizMapperMainPanel.java
Log:
Fixed Bug 2175: Programmatically generated Visual Style does not recognized by 
VizMapper GUI.

Modified: cytoscape/trunk/src/cytoscape/view/CytoscapeDesktop.java
===================================================================
--- cytoscape/trunk/src/cytoscape/view/CytoscapeDesktop.java    2010-02-17 
21:53:40 UTC (rev 19348)
+++ cytoscape/trunk/src/cytoscape/view/CytoscapeDesktop.java    2010-02-17 
22:17:26 UTC (rev 19349)
@@ -94,7 +94,7 @@
 
        // Default sizes of components
        private static final Dimension DEF_DESKTOP_SIZE = new Dimension(980, 
720);
-       private static final int DEF_DEVIDER_LOCATION = 310;
+       private static final int DEF_DEVIDER_LOCATION = 325;
        private static final int DEF_DATAPANEL_DEVIDER_LOCATION = 450;
 
        /**

Modified: cytoscape/trunk/src/cytoscape/visual/ui/VizMapperMainPanel.java
===================================================================
--- cytoscape/trunk/src/cytoscape/visual/ui/VizMapperMainPanel.java     
2010-02-17 21:53:40 UTC (rev 19348)
+++ cytoscape/trunk/src/cytoscape/visual/ui/VizMapperMainPanel.java     
2010-02-17 22:17:26 UTC (rev 19349)
@@ -781,6 +781,8 @@
                if (ignore)
                        return;
 
+               System.out.println("-----------------> Stitching to : " + 
vsName);
+               System.out.println("-----------------> Last = " + lastVSName);
                // If new VS name is the same, ignore.
                if (lastVSName == vsName)
                        return;
@@ -856,6 +858,9 @@
                // Cleanup desktop.
                Cytoscape.getDesktop().repaint();
                vsNameComboBox.setSelectedItem(vsName);
+               
+               // Update last visual style
+               lastVSName = vsName;
        }
 
        private static final String CATEGORY_UNUSED = "Unused Properties";
@@ -3681,6 +3686,12 @@
                if (ignore)
                        return;
                
+               System.out.println(e.getSource() + " ---> Got State change 
Event!==================:\n\n");
+               for(VisualStyle style: 
vmm.getCalculatorCatalog().getVisualStyles()) {
+                       System.out.println("\tStyle =" + style.getName());
+               }
+               
+               
                // Get current Visual Style
                final String currentName = vmm.getVisualStyle().getName();
                final Object selected = vsNameComboBox.getSelectedItem();

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