Author: pwang
Date: 2012-03-15 17:12:30 -0700 (Thu, 15 Mar 2012)
New Revision: 28559

Modified:
   
core3/impl/trunk/layout-cytoscape-impl/src/main/java/csapps/layout/CyActivator.java
Log:
Set menuGravity for each layout algorithm

Modified: 
core3/impl/trunk/layout-cytoscape-impl/src/main/java/csapps/layout/CyActivator.java
===================================================================
--- 
core3/impl/trunk/layout-cytoscape-impl/src/main/java/csapps/layout/CyActivator.java
 2012-03-15 22:28:58 UTC (rev 28558)
+++ 
core3/impl/trunk/layout-cytoscape-impl/src/main/java/csapps/layout/CyActivator.java
 2012-03-16 00:12:30 UTC (rev 28559)
@@ -48,59 +48,68 @@
                StackedNodeLayout stackedNodeLayout = new 
StackedNodeLayout(undoSupportServiceRef);
                GroupAttributesLayout groupAttributesLayout = new 
GroupAttributesLayout(undoSupportServiceRef);
                
-               
                Properties circularLayoutAlgorithmProps = new Properties();
                
circularLayoutAlgorithmProps.setProperty("preferredMenu","Layout.Cytoscape 
Layouts");
                
circularLayoutAlgorithmProps.setProperty("preferredTaskManager","menu");
                
circularLayoutAlgorithmProps.setProperty("title",circularLayoutAlgorithm.toString());
+               circularLayoutAlgorithmProps.setProperty("menuGravity","10.2");
+               
                
registerService(bc,circularLayoutAlgorithm,CyLayoutAlgorithm.class, 
circularLayoutAlgorithmProps);
-
+               
                Properties hierarchicalLayoutAlgorithmProps = new Properties();
                
hierarchicalLayoutAlgorithmProps.setProperty("preferredMenu","Layout.Cytoscape 
Layouts");
                
hierarchicalLayoutAlgorithmProps.setProperty("preferredTaskManager","menu");
                
hierarchicalLayoutAlgorithmProps.setProperty("title",hierarchicalLayoutAlgorithm.toString());
+               
hierarchicalLayoutAlgorithmProps.setProperty("menuGravity","10.8");
                
registerService(bc,hierarchicalLayoutAlgorithm,CyLayoutAlgorithm.class, 
hierarchicalLayoutAlgorithmProps);
 
                Properties attributeCircleLayoutProps = new Properties();
                
attributeCircleLayoutProps.setProperty("preferredMenu","Layout.Cytoscape 
Layouts");
                
attributeCircleLayoutProps.setProperty("preferredTaskManager","menu");
                
attributeCircleLayoutProps.setProperty("title",attributeCircleLayout.toString());
+               attributeCircleLayoutProps.setProperty("menuGravity","10.1");
                
registerService(bc,attributeCircleLayout,CyLayoutAlgorithm.class, 
attributeCircleLayoutProps);
 
                Properties degreeSortedCircleLayoutProps = new Properties();
                
degreeSortedCircleLayoutProps.setProperty("preferredMenu","Layout.Cytoscape 
Layouts");
                
degreeSortedCircleLayoutProps.setProperty("preferredTaskManager","menu");
                
degreeSortedCircleLayoutProps.setProperty("title",degreeSortedCircleLayout.toString());
+               degreeSortedCircleLayoutProps.setProperty("menuGravity","10.3");
                
registerService(bc,degreeSortedCircleLayout,CyLayoutAlgorithm.class, 
degreeSortedCircleLayoutProps);
 
                Properties ISOMLayoutProps = new Properties();
                ISOMLayoutProps.setProperty("preferredMenu","Layout.Cytoscape 
Layouts");
                ISOMLayoutProps.setProperty("preferredTaskManager","menu");
                ISOMLayoutProps.setProperty("title",ISOMLayout.toString());
+               ISOMLayoutProps.setProperty("menuGravity","10.9");
                registerService(bc,ISOMLayout,CyLayoutAlgorithm.class, 
ISOMLayoutProps);
 
                Properties bioLayoutKKAlgorithmFALSEProps = new Properties();
                
bioLayoutKKAlgorithmFALSEProps.setProperty("preferredMenu","Layout.Cytoscape 
Layouts");
                
bioLayoutKKAlgorithmFALSEProps.setProperty("preferredTaskManager","menu");
                
bioLayoutKKAlgorithmFALSEProps.setProperty("title",bioLayoutKKAlgorithmFALSE.toString());
+               
bioLayoutKKAlgorithmFALSEProps.setProperty("menuGravity","10.99");
                
registerService(bc,bioLayoutKKAlgorithmFALSE,CyLayoutAlgorithm.class, 
bioLayoutKKAlgorithmFALSEProps);
-
+               
                Properties bioLayoutKKAlgorithmTRUEProps = new Properties();
                
bioLayoutKKAlgorithmTRUEProps.setProperty("preferredMenu","Layout.Cytoscape 
Layouts");
                
bioLayoutKKAlgorithmTRUEProps.setProperty("preferredTaskManager","menu");
                
bioLayoutKKAlgorithmTRUEProps.setProperty("title",bioLayoutKKAlgorithmTRUE.toString());
+               bioLayoutKKAlgorithmTRUEProps.setProperty("menuGravity","10.5");
                
registerService(bc,bioLayoutKKAlgorithmTRUE,CyLayoutAlgorithm.class, 
bioLayoutKKAlgorithmTRUEProps);
-
+               
                Properties bioLayoutFRAlgorithmProps = new Properties();
                
bioLayoutFRAlgorithmProps.setProperty("preferredMenu","Layout.Cytoscape 
Layouts");
                
bioLayoutFRAlgorithmProps.setProperty("preferredTaskManager","menu");
                
bioLayoutFRAlgorithmProps.setProperty("title",bioLayoutFRAlgorithm.toString());
+               bioLayoutFRAlgorithmProps.setProperty("menuGravity","10.4");
                
registerService(bc,bioLayoutFRAlgorithm,CyLayoutAlgorithm.class, 
bioLayoutFRAlgorithmProps);
 
                Properties groupAttributesLayoutProps = new Properties();
                
groupAttributesLayoutProps.setProperty("preferredMenu","Layout.Cytoscape 
Layouts");
                
groupAttributesLayoutProps.setProperty("preferredTaskManager","menu");
                
groupAttributesLayoutProps.setProperty("title",groupAttributesLayout.toString());
+               groupAttributesLayoutProps.setProperty("menuGravity","10.6");
                
registerService(bc,groupAttributesLayout,CyLayoutAlgorithm.class, 
groupAttributesLayoutProps);
        }
 }

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