Author: kono
Date: 2011-11-16 18:29:09 -0800 (Wed, 16 Nov 2011)
New Revision: 27509

Modified:
   
core3/impl/trunk/swing-application-impl/src/main/java/org/cytoscape/internal/view/CytoscapeDesktop.java
Log:
Default panel size modified.

Modified: 
core3/impl/trunk/swing-application-impl/src/main/java/org/cytoscape/internal/view/CytoscapeDesktop.java
===================================================================
--- 
core3/impl/trunk/swing-application-impl/src/main/java/org/cytoscape/internal/view/CytoscapeDesktop.java
     2011-11-17 02:18:39 UTC (rev 27508)
+++ 
core3/impl/trunk/swing-application-impl/src/main/java/org/cytoscape/internal/view/CytoscapeDesktop.java
     2011-11-17 02:29:09 UTC (rev 27509)
@@ -91,7 +91,9 @@
 
        private final static long serialVersionUID = 1202339866271348L;
        
-       private static final Dimension DEF_DESKTOP_SIZE = new Dimension(1000, 
720);
+       private static final Dimension DEF_DESKTOP_SIZE = new Dimension(1100, 
800);
+       private static final int DEF_DIVIDER_LOATION = 450;
+       
        private static final String SMALL_ICON = "/images/c16.png";
        private static final int DEVIDER_SIZE = 4;
        private static final Map<String, CytoPanelName> CYTOPANEL_NAMES = new 
LinkedHashMap<String, CytoPanelName>();
@@ -160,7 +162,7 @@
                main_panel.setLayout(new BorderLayout());
 
                // create the CytoscapeDesktop
-               BiModalJSplitPane masterPane = setupCytoPanels(networkPanel, 
networkViewManager);
+               final BiModalJSplitPane masterPane = 
setupCytoPanels(networkPanel, networkViewManager);
 
                main_panel.add(masterPane, BorderLayout.CENTER);
                main_panel.add(cyMenus.getJToolBar(), BorderLayout.NORTH);
@@ -213,9 +215,9 @@
        private BiModalJSplitPane setupCytoPanels(NetworkPanel networkPanel,
                                                    NetworkViewManager 
networkViewManager) {
                // bimodals that our Cytopanels Live within
-               BiModalJSplitPane topRightPane = 
createTopRightPane(networkViewManager);
-               BiModalJSplitPane rightPane = createRightPane(topRightPane);
-               BiModalJSplitPane masterPane = createMasterPane(networkPanel, 
rightPane);
+               final BiModalJSplitPane topRightPane = 
createTopRightPane(networkViewManager);
+               final BiModalJSplitPane rightPane = 
createRightPane(topRightPane);
+               final BiModalJSplitPane masterPane = 
createMasterPane(networkPanel, rightPane);
                createBottomLeft();
 
                return masterPane;
@@ -271,6 +273,7 @@
                cytoPanelSouth.setCytoPanelContainer(splitPane);
 
                splitPane.setDividerSize(DEVIDER_SIZE);
+               splitPane.setDividerLocation(DEF_DIVIDER_LOATION);
 
                // set resize weight - top component gets all the extra space.
                splitPane.setResizeWeight(1.0);

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