Author: pwang
Date: 2011-12-14 11:41:10 -0800 (Wed, 14 Dec 2011)
New Revision: 27789

Modified:
   
core3/impl/trunk/swing-application-impl/src/main/java/org/cytoscape/internal/layout/ui/LayoutSettingsDialog.java
Log:
Give user feedback about current default layout

Modified: 
core3/impl/trunk/swing-application-impl/src/main/java/org/cytoscape/internal/layout/ui/LayoutSettingsDialog.java
===================================================================
--- 
core3/impl/trunk/swing-application-impl/src/main/java/org/cytoscape/internal/layout/ui/LayoutSettingsDialog.java
    2011-12-14 19:03:58 UTC (rev 27788)
+++ 
core3/impl/trunk/swing-application-impl/src/main/java/org/cytoscape/internal/layout/ui/LayoutSettingsDialog.java
    2011-12-14 19:41:10 UTC (rev 27789)
@@ -50,6 +50,7 @@
 import java.awt.event.ItemListener;
 import java.lang.reflect.Field;
 import java.util.Set;
+import java.util.Properties;
 
 
 /**
@@ -97,6 +98,12 @@
                this.taskManager = taskManager;
                this.cytoscapePropertiesServiceRef = 
cytoscapePropertiesServiceRef;
                
+               Properties props = 
(Properties)this.cytoscapePropertiesServiceRef.getProperties();
+               
+               //
+               String pref = props.getProperty("preferredLayoutAlgorithm", 
"force-directed");          
+               this.lbSelectLayoutAlgorithm.setText("Default preferred layout 
algorithm is "+pref);
+               
                this.setPreferredSize(new Dimension(350, 200));
        }
 
@@ -336,6 +343,9 @@
                        if (!(o instanceof String)) {
                                final CyLayoutAlgorithm newLayout = 
(CyLayoutAlgorithm)o;
                                JPanel tunablePanel = 
taskManager.getConfiguration(newLayout);
+                               
+                               System.out.println("tunablePanel = 
"+tunablePanel);
+                               
                                algorithmPanel.add(tunablePanel);
                                currentLayout = newLayout; 
                        }

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