Author: kono
Date: 2010-01-14 13:56:31 -0800 (Thu, 14 Jan 2010)
New Revision: 18914

Modified:
   
csplugins/trunk/ucsd/ruschein/DenovoPGNetworkAlignment/src/org/cytoscape/DenovoPGNetworkAlignmentPlugin/NestedNetworkCreator.java
   
csplugins/trunk/ucsd/ruschein/DenovoPGNetworkAlignment/src/org/cytoscape/DenovoPGNetworkAlignmentPlugin/SearchParameters.java
   
csplugins/trunk/ucsd/ruschein/DenovoPGNetworkAlignment/src/org/cytoscape/DenovoPGNetworkAlignmentPlugin/SearchTask.java
   
csplugins/trunk/ucsd/ruschein/DenovoPGNetworkAlignment/src/org/cytoscape/DenovoPGNetworkAlignmentPlugin/VisualStyleBuilder.java
   
csplugins/trunk/ucsd/ruschein/DenovoPGNetworkAlignment/src/org/cytoscape/DenovoPGNetworkAlignmentPlugin/ui/SearchPropertyPanel.java
Log:
Added some more continuous mapping.  cutoff-selection function should be 
implemented.

Modified: 
csplugins/trunk/ucsd/ruschein/DenovoPGNetworkAlignment/src/org/cytoscape/DenovoPGNetworkAlignmentPlugin/NestedNetworkCreator.java
===================================================================
--- 
csplugins/trunk/ucsd/ruschein/DenovoPGNetworkAlignment/src/org/cytoscape/DenovoPGNetworkAlignmentPlugin/NestedNetworkCreator.java
   2010-01-14 21:43:21 UTC (rev 18913)
+++ 
csplugins/trunk/ucsd/ruschein/DenovoPGNetworkAlignment/src/org/cytoscape/DenovoPGNetworkAlignmentPlugin/NestedNetworkCreator.java
   2010-01-14 21:56:31 UTC (rev 18914)
@@ -18,6 +18,7 @@
 import cytoscape.data.Semantics;
 import cytoscape.layout.CyLayouts;
 import cytoscape.view.CyNetworkView;
+import cytoscape.visual.VisualStyle;
 
 /**
  * @author ruschein
@@ -34,6 +35,9 @@
 
        private CyNetwork overviewNetwork = null;
        private Map<TypedLinkNodeModule<String, BFEdge>, CyNode> 
moduleToCyNodeMap;
+       
+       
+       private int maxSize = 0;
 
        /**
         * Instantiates an overview network of complexes (modules) and one 
nested
@@ -48,7 +52,7 @@
                final TypedLinkNetwork<TypedLinkNodeModule<String, BFEdge>, 
BFEdge> networkOfModules,
                final CyNetwork originalNetwork,
                final TypedLinkNetwork<String, Float> physicalNetwork,
-               final TypedLinkNetwork<String, Float> geneticNetwork)
+               final TypedLinkNetwork<String, Float> geneticNetwork, final 
double cutoff)
        {
                moduleToCyNodeMap = new HashMap<TypedLinkNodeModule<String, 
BFEdge>, CyNode>();
 
@@ -61,6 +65,8 @@
                final CyAttributes edgeAttribs = Cytoscape.getEdgeAttributes();
 
                int nodeIndex = 1;
+               double maxScore = Double.NEGATIVE_INFINITY;
+               maxSize = 0;
                for (final TypedLinkEdge<TypedLinkNodeModule<String, BFEdge>, 
BFEdge> edge : networkOfModules
                                .edges()) {
                        final TypedLinkNodeModule<String, BFEdge> sourceModule 
= edge
@@ -90,10 +96,13 @@
                                        /* create = */true);
                        overviewNetwork.addEdge(newEdge);
 
+
                        // Add various edge attributes.
                        final double edgeScore = edge.value().link();
                        edgeAttribs.setAttribute(newEdge.getIdentifier(), "edge 
score",
                                                 Double.valueOf(edgeScore));
+                       if (edgeScore>maxScore)
+                               maxScore = edgeScore;
                        final int gConnectedness =
                                
geneticNetwork.getConnectedness(sourceModule.asStringSet(),
                                                                
targetModule.asStringSet());
@@ -112,8 +121,8 @@
                        edgeAttribs.setAttribute(newEdge.getIdentifier(), 
"density",
                                                 Double.valueOf(density));
                }
-               applyNetworkLayout(overviewNetwork, 
VisualStyleBuilder.getVisualStyle()
-                               .getName());
+               
+               applyNetworkLayout(overviewNetwork, 
VisualStyleBuilder.getVisualStyle(), cutoff, maxScore);
        }
 
        CyNetwork getOverviewNetwork() {
@@ -132,6 +141,9 @@
                final Set<String> genes = module.getMemberValues();
                nodeAttribs.setAttribute(newNode.getIdentifier(), GENE_COUNT, 
Integer
                                .valueOf(genes.size()));
+               if (genes.size()>maxSize)
+                       maxSize = genes.size();
+               
                nodeAttribs.setAttribute(newNode.getIdentifier(), SCORE, Double
                                .valueOf(module.score()));
                nodeAttribs.setAttribute(newNode.getIdentifier(), NODE_SIZE, 
Math
@@ -164,7 +176,7 @@
                for (final CyEdge edge : edges)
                        nestedNetwork.addEdge(edge);
 
-               applyNetworkLayout(nestedNetwork, "default");
+               applyNetworkLayout(nestedNetwork, 
Cytoscape.getVisualMappingManager().getVisualStyle(), null, null);
 
                return nestedNetwork;
        }
@@ -229,12 +241,19 @@
                return null;
        }
 
-       private void applyNetworkLayout(final CyNetwork network, final String 
style) {
+       private void applyNetworkLayout(final CyNetwork network, final 
VisualStyle style, Double cutoff, Double maxScore) {
                final CyNetworkView targetView = 
Cytoscape.getNetworkView(network
                                .getIdentifier());
-               targetView.setVisualStyle(style);
+               if (cutoff != null)
+                       VisualStyleBuilder.updateStyle(cutoff, maxScore, 
maxSize);
+               targetView.setVisualStyle(style.getName());
                Cytoscape.getVisualMappingManager().setVisualStyle(style);
                targetView.applyLayout(CyLayouts.getLayout("circular"));
                targetView.redrawGraph(false, true);
        }
+       
+       private void selectHighScoreInteractions() {
+               
+       }
+       
 }

Modified: 
csplugins/trunk/ucsd/ruschein/DenovoPGNetworkAlignment/src/org/cytoscape/DenovoPGNetworkAlignmentPlugin/SearchParameters.java
===================================================================
--- 
csplugins/trunk/ucsd/ruschein/DenovoPGNetworkAlignment/src/org/cytoscape/DenovoPGNetworkAlignmentPlugin/SearchParameters.java
       2010-01-14 21:43:21 UTC (rev 18913)
+++ 
csplugins/trunk/ucsd/ruschein/DenovoPGNetworkAlignment/src/org/cytoscape/DenovoPGNetworkAlignmentPlugin/SearchParameters.java
       2010-01-14 21:56:31 UTC (rev 18914)
@@ -12,6 +12,8 @@
        private double alphaMultiplier;
        private double physicalNetworkFilterDegree;
        
+       private double edgeCutoff;
+       
        public SearchParameters() {
        }
 
@@ -62,4 +64,12 @@
        public double getPhysicalNetworkFilterDegree() {
                return physicalNetworkFilterDegree;
        }
+
+       public void setEdgeCutoff(double edgeCutoff) {
+               this.edgeCutoff = edgeCutoff;
+       }
+
+       public double getEdgeCutoff() {
+               return edgeCutoff;
+       }
 }

Modified: 
csplugins/trunk/ucsd/ruschein/DenovoPGNetworkAlignment/src/org/cytoscape/DenovoPGNetworkAlignmentPlugin/SearchTask.java
===================================================================
--- 
csplugins/trunk/ucsd/ruschein/DenovoPGNetworkAlignment/src/org/cytoscape/DenovoPGNetworkAlignmentPlugin/SearchTask.java
     2010-01-14 21:43:21 UTC (rev 18913)
+++ 
csplugins/trunk/ucsd/ruschein/DenovoPGNetworkAlignment/src/org/cytoscape/DenovoPGNetworkAlignmentPlugin/SearchTask.java
     2010-01-14 21:56:31 UTC (rev 18914)
@@ -56,7 +56,7 @@
                final TypedLinkNetwork<String, Float> gNet = 
geneticNetwork.asTypedLinkNetwork();
 
                final NestedNetworkCreator nnCreator =
-                       new NestedNetworkCreator(results, inputNetwork, pNet, 
gNet);
+                       new NestedNetworkCreator(results, inputNetwork, pNet, 
gNet, parameters.getEdgeCutoff());
 
                setStatus("Search finished!\n\n" + "Number of complexes = "
                          + nnCreator.getOverviewNetwork().getNodeCount() + 
"\n\n"

Modified: 
csplugins/trunk/ucsd/ruschein/DenovoPGNetworkAlignment/src/org/cytoscape/DenovoPGNetworkAlignmentPlugin/VisualStyleBuilder.java
===================================================================
--- 
csplugins/trunk/ucsd/ruschein/DenovoPGNetworkAlignment/src/org/cytoscape/DenovoPGNetworkAlignmentPlugin/VisualStyleBuilder.java
     2010-01-14 21:43:21 UTC (rev 18913)
+++ 
csplugins/trunk/ucsd/ruschein/DenovoPGNetworkAlignment/src/org/cytoscape/DenovoPGNetworkAlignmentPlugin/VisualStyleBuilder.java
     2010-01-14 21:56:31 UTC (rev 18914)
@@ -31,6 +31,11 @@
        private VisualStyle overviewVS = null;
        
        private Double edgeCutoff;
+       
+       private static ContinuousMapping edgeOpacityMapping;
+       private static ContinuousMapping edgeWidthMapping;
+       private static ContinuousMapping edgeColorMapping;
+       private static ContinuousMapping nodeSizeMapping;
 
        private static final String OVERVIEW_VS_NAME = "Complex Overview Style";
        private static final String MODULE_VS_NAME = "Denovo Module Style";
@@ -78,15 +83,10 @@
                gac.setDefaultBackgroundColor(Color.white);
 
                PassThroughMapping labelMapping = new PassThroughMapping("", 
AbstractCalculator.ID);
-               PassThroughMapping sizeMapping = new PassThroughMapping(65, 
NestedNetworkCreator.NODE_SIZE);
 
                final Calculator calc = new BasicCalculator(OVERVIEW_VS_NAME + 
"-"
                                + "NodeLabelMapping", labelMapping, NODE_LABEL);
                
-               final Calculator sizeCalc = new 
BasicCalculator(OVERVIEW_VS_NAME + "-"
-                               + "NodeSizeMapping", sizeMapping, 
VisualPropertyType.NODE_SIZE);
-               nac.setCalculator(sizeCalc);
-               
                PassThroughMapping me = new PassThroughMapping("", 
"interaction");
 
                final Calculator calce = new BasicCalculator(OVERVIEW_VS_NAME + 
"-"
@@ -144,10 +144,10 @@
                // Edge continuous mappings
                
                // 1. Edge opacity
-               final ContinuousMapping edgeOpacityMapping = new 
ContinuousMapping(edgeCutoff, ObjectMapping.EDGE_MAPPING);
+               edgeOpacityMapping = new ContinuousMapping(edgeCutoff, 
ObjectMapping.EDGE_MAPPING);
                final BoundaryRangeValues range1 = new 
BoundaryRangeValues(20.0, 20.0, 255.0);
                
edgeOpacityMapping.setControllingAttributeName(NestedNetworkCreator.EDGE_SCORE, 
null, false);
-               edgeOpacityMapping.addPoint(DEF_EDGE_CUTOFF, range1);
+               edgeOpacityMapping.addPoint(edgeCutoff, range1);
                Calculator edgeOpacityCalc = new 
BasicCalculator(OVERVIEW_VS_NAME
                                + "-" + "EdgeOpacityMapping", 
edgeOpacityMapping,
                                VisualPropertyType.EDGE_OPACITY);
@@ -155,18 +155,50 @@
                eac.setCalculator(edgeOpacityCalc);
                
                // 2. Edge width
-               final ContinuousMapping edgeWidthMapping = new 
ContinuousMapping(edgeCutoff, ObjectMapping.EDGE_MAPPING);
+               edgeWidthMapping = new ContinuousMapping(edgeCutoff, 
ObjectMapping.EDGE_MAPPING);
                final BoundaryRangeValues edgeWidthRange1 = new 
BoundaryRangeValues(2.0, 2.0, 4.0);
                final BoundaryRangeValues edgeWidthRange2 = new 
BoundaryRangeValues(20.0, 20.0, 20.0);
                
edgeWidthMapping.setControllingAttributeName(NestedNetworkCreator.EDGE_SCORE, 
null, false);
-               edgeWidthMapping.addPoint(DEF_EDGE_CUTOFF, edgeWidthRange1);
-               edgeWidthMapping.addPoint(DEF_EDGE_CUTOFF+100, edgeWidthRange2);
+               edgeWidthMapping.addPoint(edgeCutoff, edgeWidthRange1);
+               edgeWidthMapping.addPoint(edgeCutoff+100, edgeWidthRange2);
                Calculator edgeWidthCalc = new BasicCalculator(OVERVIEW_VS_NAME
                                + "-" + "EdgeWidthMapping", edgeWidthMapping,
                                VisualPropertyType.EDGE_LINE_WIDTH);
 
                eac.setCalculator(edgeWidthCalc);
+               
+               // 3. Edge color
+               edgeColorMapping = new ContinuousMapping(Color.BLACK, 
ObjectMapping.EDGE_MAPPING);
+               final BoundaryRangeValues edgeColorRange = new 
BoundaryRangeValues(Color.BLACK, Color.BLUE, Color.BLUE);
+               
edgeColorMapping.setControllingAttributeName(NestedNetworkCreator.EDGE_SCORE, 
null, false);
+               edgeColorMapping.addPoint(edgeCutoff, edgeColorRange);
+               Calculator edgeColorCalc = new BasicCalculator(OVERVIEW_VS_NAME
+                               + "-" + "EdgeWidthMapping", edgeColorMapping,
+                               VisualPropertyType.EDGE_COLOR);
 
+               eac.setCalculator(edgeColorCalc);
+               
+               nodeSizeMapping = new ContinuousMapping(30.0, 
ObjectMapping.NODE_MAPPING);
+               final BoundaryRangeValues nodeSizeRange1 = new 
BoundaryRangeValues(30.0, 30.0, 30.0);
+               final BoundaryRangeValues nodeSizeRange2 = new 
BoundaryRangeValues(200.0, 200.0, 200.0);
+               
nodeSizeMapping.setControllingAttributeName(NestedNetworkCreator.GENE_COUNT, 
null, false);
+               nodeSizeMapping.addPoint(1, nodeSizeRange1);
+               nodeSizeMapping.addPoint(100, nodeSizeRange2);
+               Calculator nodeSizeCalc = new BasicCalculator(OVERVIEW_VS_NAME
+                               + "-" + "NodeSizeMapping", nodeSizeMapping,
+                               VisualPropertyType.NODE_SIZE);
+               nac.setCalculator(nodeSizeCalc);
+               
                return defStyle;
        }
+       
+       public static void updateStyle(final double cutoff, final double 
scoreMax, final int sizeMax) {
+               // Update continuous mappings
+               edgeOpacityMapping.getPoint(0).setValue(cutoff);
+               edgeColorMapping.getPoint(0).setValue(cutoff);
+               edgeWidthMapping.getPoint(0).setValue(cutoff);
+               edgeWidthMapping.getPoint(1).setValue(scoreMax);
+               nodeSizeMapping.getPoint(0).setValue(1);
+               nodeSizeMapping.getPoint(1).setValue(sizeMax);
+       }
 }
\ No newline at end of file

Modified: 
csplugins/trunk/ucsd/ruschein/DenovoPGNetworkAlignment/src/org/cytoscape/DenovoPGNetworkAlignmentPlugin/ui/SearchPropertyPanel.java
===================================================================
--- 
csplugins/trunk/ucsd/ruschein/DenovoPGNetworkAlignment/src/org/cytoscape/DenovoPGNetworkAlignmentPlugin/ui/SearchPropertyPanel.java
 2010-01-14 21:43:21 UTC (rev 18913)
+++ 
csplugins/trunk/ucsd/ruschein/DenovoPGNetworkAlignment/src/org/cytoscape/DenovoPGNetworkAlignmentPlugin/ui/SearchPropertyPanel.java
 2010-01-14 21:56:31 UTC (rev 18914)
@@ -36,6 +36,7 @@
        private static final double DEF_ALPHA = 1.6;
        private static final double DEF_ALPHA_MUL = 1.0;
        private static final int DEF_DEGREE = 1;
+       private static final double DEF_CUTOFF = 20.0;
 
        private SearchParameters parameters;
 
@@ -55,6 +56,7 @@
                this.alphaTextField.setText(Double.toString(DEF_ALPHA));
                
this.alphaMultiplierTextField.setText(Double.toString(DEF_ALPHA_MUL));
                this.degreeTextField.setText(Integer.toString(DEF_DEGREE));
+               this.edgeScoreTextField.setText(Double.toString(DEF_CUTOFF));
        }
 
        public SearchParameters getParameters() {
@@ -69,397 +71,230 @@
        @SuppressWarnings("unchecked")
        // <editor-fold defaultstate="collapsed" desc="Generated Code">
        private void initComponents() {
-
                networkLabel = new javax.swing.JLabel();
-               networkComboBox = new javax.swing.JComboBox();
-               edgeAttributePanel = new javax.swing.JPanel();
-               physicalEdgeLabel = new javax.swing.JLabel();
-               physicalEdgeComboBox = new javax.swing.JComboBox();
-               geneticEdgeLabel = new javax.swing.JLabel();
-               geneticEdgeComboBox = new javax.swing.JComboBox();
-               scorePanel = new javax.swing.JPanel();
-               alphaLabel = new javax.swing.JLabel();
-               alphaMultiplierLabel = new javax.swing.JLabel();
-               alphaTextField = new javax.swing.JTextField();
-               alphaMultiplierTextField = new javax.swing.JTextField();
-               degreeLabel = new javax.swing.JLabel();
-               degreeTextField = new javax.swing.JTextField();
-               searchButton = new javax.swing.JButton();
-               helpButton = new javax.swing.JButton();
-               closeButton = new javax.swing.JButton();
+        networkComboBox = new javax.swing.JComboBox();
+        edgeAttributePanel = new javax.swing.JPanel();
+        physicalEdgeLabel = new javax.swing.JLabel();
+        physicalEdgeComboBox = new javax.swing.JComboBox();
+        geneticEdgeLabel = new javax.swing.JLabel();
+        geneticEdgeComboBox = new javax.swing.JComboBox();
+        scorePanel = new javax.swing.JPanel();
+        alphaLabel = new javax.swing.JLabel();
+        alphaMultiplierLabel = new javax.swing.JLabel();
+        alphaTextField = new javax.swing.JTextField();
+        alphaMultiplierTextField = new javax.swing.JTextField();
+        degreeLabel = new javax.swing.JLabel();
+        degreeTextField = new javax.swing.JTextField();
+        searchButton = new javax.swing.JButton();
+        helpButton = new javax.swing.JButton();
+        closeButton = new javax.swing.JButton();
+        visualizationPanel = new javax.swing.JPanel();
+        edgeScoreLabel = new javax.swing.JLabel();
+        edgeScoreTextField = new javax.swing.JTextField();
 
-               networkLabel.setText("Target Network:");
+        networkLabel.setText("Target Network:");
 
-               networkComboBox.addActionListener(new 
java.awt.event.ActionListener() {
-                       public void actionPerformed(java.awt.event.ActionEvent 
evt) {
-                               networkComboBoxActionPerformed(evt);
-                       }
-               });
+        networkComboBox.addActionListener(new java.awt.event.ActionListener() {
+            public void actionPerformed(java.awt.event.ActionEvent evt) {
+                networkComboBoxActionPerformed(evt);
+            }
+        });
 
-               edgeAttributePanel.setBorder(javax.swing.BorderFactory
-                               .createTitledBorder("Edge Attributes"));
+        
edgeAttributePanel.setBorder(javax.swing.BorderFactory.createTitledBorder("Edge 
Attributes"));
 
-               physicalEdgeLabel.setText("Physical:");
+        physicalEdgeLabel.setText("Physical:");
 
-               physicalEdgeComboBox
-                               .addActionListener(new 
java.awt.event.ActionListener() {
-                                       public void 
actionPerformed(java.awt.event.ActionEvent evt) {
-                                               
physicalEdgeComboBoxActionPerformed(evt);
-                                       }
-                               });
+        physicalEdgeComboBox.addActionListener(new 
java.awt.event.ActionListener() {
+            public void actionPerformed(java.awt.event.ActionEvent evt) {
+                physicalEdgeComboBoxActionPerformed(evt);
+            }
+        });
 
-               geneticEdgeLabel.setText("Genetic:");
+        geneticEdgeLabel.setText("Genetic:");
 
-               geneticEdgeComboBox
-                               .addActionListener(new 
java.awt.event.ActionListener() {
-                                       public void 
actionPerformed(java.awt.event.ActionEvent evt) {
-                                               
geneticEdgeComboBoxActionPerformed(evt);
-                                       }
-                               });
+        geneticEdgeComboBox.addActionListener(new 
java.awt.event.ActionListener() {
+            public void actionPerformed(java.awt.event.ActionEvent evt) {
+                geneticEdgeComboBoxActionPerformed(evt);
+            }
+        });
 
-               javax.swing.GroupLayout edgeAttributePanelLayout = new 
javax.swing.GroupLayout(
-                               edgeAttributePanel);
-               edgeAttributePanel.setLayout(edgeAttributePanelLayout);
-               edgeAttributePanelLayout
-                               .setHorizontalGroup(edgeAttributePanelLayout
-                                               .createParallelGroup(
-                                                               
javax.swing.GroupLayout.Alignment.LEADING)
-                                               .addGroup(
-                                                               
edgeAttributePanelLayout
-                                                                               
.createSequentialGroup()
-                                                                               
.addContainerGap()
-                                                                               
.addGroup(
-                                                                               
                edgeAttributePanelLayout
-                                                                               
                                .createParallelGroup(
-                                                                               
                                                
javax.swing.GroupLayout.Alignment.TRAILING,
-                                                                               
                                                false)
-                                                                               
                                .addComponent(
-                                                                               
                                                geneticEdgeLabel,
-                                                                               
                                                
javax.swing.GroupLayout.Alignment.LEADING,
-                                                                               
                                                
javax.swing.GroupLayout.DEFAULT_SIZE,
-                                                                               
                                                
javax.swing.GroupLayout.DEFAULT_SIZE,
-                                                                               
                                                Short.MAX_VALUE)
-                                                                               
                                .addComponent(
-                                                                               
                                                physicalEdgeLabel,
-                                                                               
                                                
javax.swing.GroupLayout.Alignment.LEADING,
-                                                                               
                                                
javax.swing.GroupLayout.DEFAULT_SIZE,
-                                                                               
                                                
javax.swing.GroupLayout.DEFAULT_SIZE,
-                                                                               
                                                Short.MAX_VALUE))
-                                                                               
.addGap(18, 18, 18)
-                                                                               
.addGroup(
-                                                                               
                edgeAttributePanelLayout
-                                                                               
                                .createParallelGroup(
-                                                                               
                                                
javax.swing.GroupLayout.Alignment.LEADING)
-                                                                               
                                .addComponent(
-                                                                               
                                                geneticEdgeComboBox,
-                                                                               
                                                0, 248,
-                                                                               
                                                Short.MAX_VALUE)
-                                                                               
                                .addComponent(
-                                                                               
                                                physicalEdgeComboBox,
-                                                                               
                                                0, 248,
-                                                                               
                                                Short.MAX_VALUE))
-                                                                               
.addContainerGap()));
-               edgeAttributePanelLayout
-                               .setVerticalGroup(edgeAttributePanelLayout
-                                               .createParallelGroup(
-                                                               
javax.swing.GroupLayout.Alignment.LEADING)
-                                               .addGroup(
-                                                               
edgeAttributePanelLayout
-                                                                               
.createSequentialGroup()
-                                                                               
.addGroup(
-                                                                               
                edgeAttributePanelLayout
-                                                                               
                                .createParallelGroup(
-                                                                               
                                                
javax.swing.GroupLayout.Alignment.BASELINE)
-                                                                               
                                .addComponent(
-                                                                               
                                                physicalEdgeLabel)
-                                                                               
                                .addComponent(
-                                                                               
                                                physicalEdgeComboBox,
-                                                                               
                                                
javax.swing.GroupLayout.PREFERRED_SIZE,
-                                                                               
                                                
javax.swing.GroupLayout.DEFAULT_SIZE,
-                                                                               
                                                
javax.swing.GroupLayout.PREFERRED_SIZE))
-                                                                               
.addPreferredGap(
-                                                                               
                javax.swing.LayoutStyle.ComponentPlacement.RELATED)
-                                                                               
.addGroup(
-                                                                               
                edgeAttributePanelLayout
-                                                                               
                                .createParallelGroup(
-                                                                               
                                                
javax.swing.GroupLayout.Alignment.LEADING)
-                                                                               
                                .addComponent(
-                                                                               
                                                geneticEdgeLabel)
-                                                                               
                                .addComponent(
-                                                                               
                                                geneticEdgeComboBox,
-                                                                               
                                                
javax.swing.GroupLayout.PREFERRED_SIZE,
-                                                                               
                                                
javax.swing.GroupLayout.DEFAULT_SIZE,
-                                                                               
                                                
javax.swing.GroupLayout.PREFERRED_SIZE))
-                                                                               
.addContainerGap(
-                                                                               
                javax.swing.GroupLayout.DEFAULT_SIZE,
-                                                                               
                Short.MAX_VALUE)));
+        javax.swing.GroupLayout edgeAttributePanelLayout = new 
javax.swing.GroupLayout(edgeAttributePanel);
+        edgeAttributePanel.setLayout(edgeAttributePanelLayout);
+        edgeAttributePanelLayout.setHorizontalGroup(
+            
edgeAttributePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+            .addGroup(edgeAttributePanelLayout.createSequentialGroup()
+                .addContainerGap()
+                
.addGroup(edgeAttributePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING,
 false)
+                    .addComponent(geneticEdgeLabel, 
javax.swing.GroupLayout.Alignment.LEADING, 
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, 
Short.MAX_VALUE)
+                    .addComponent(physicalEdgeLabel, 
javax.swing.GroupLayout.Alignment.LEADING, 
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, 
Short.MAX_VALUE))
+                .addGap(18, 18, 18)
+                
.addGroup(edgeAttributePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+                    .addComponent(geneticEdgeComboBox, 0, 248, Short.MAX_VALUE)
+                    .addComponent(physicalEdgeComboBox, 0, 248, 
Short.MAX_VALUE))
+                .addContainerGap())
+        );
+        edgeAttributePanelLayout.setVerticalGroup(
+            
edgeAttributePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+            .addGroup(edgeAttributePanelLayout.createSequentialGroup()
+                
.addGroup(edgeAttributePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
+                    .addComponent(physicalEdgeLabel)
+                    .addComponent(physicalEdgeComboBox, 
javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, 
javax.swing.GroupLayout.PREFERRED_SIZE))
+                
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+                
.addGroup(edgeAttributePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+                    .addComponent(geneticEdgeLabel)
+                    .addComponent(geneticEdgeComboBox, 
javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, 
javax.swing.GroupLayout.PREFERRED_SIZE))
+                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, 
Short.MAX_VALUE))
+        );
 
-               scorePanel.setBorder(javax.swing.BorderFactory
-                               .createTitledBorder("Score Parameters"));
+        
scorePanel.setBorder(javax.swing.BorderFactory.createTitledBorder("Score 
Parameters"));
 
-               alphaLabel.setText("Alpha:");
+        alphaLabel.setText("Alpha:");
 
-               alphaMultiplierLabel.setText("Alpha Multiplier:");
+        alphaMultiplierLabel.setText("Alpha Multiplier:");
 
-               alphaTextField.addActionListener(new 
java.awt.event.ActionListener() {
-                       public void actionPerformed(java.awt.event.ActionEvent 
evt) {
-                               alphaTextFieldActionPerformed(evt);
-                       }
-               });
+        alphaTextField.addActionListener(new java.awt.event.ActionListener() {
+            public void actionPerformed(java.awt.event.ActionEvent evt) {
+                alphaTextFieldActionPerformed(evt);
+            }
+        });
 
-               alphaMultiplierTextField
-                               .addActionListener(new 
java.awt.event.ActionListener() {
-                                       public void 
actionPerformed(java.awt.event.ActionEvent evt) {
-                                               
alphaMultiplierTextFieldActionPerformed(evt);
-                                       }
-                               });
+        alphaMultiplierTextField.addActionListener(new 
java.awt.event.ActionListener() {
+            public void actionPerformed(java.awt.event.ActionEvent evt) {
+                alphaMultiplierTextFieldActionPerformed(evt);
+            }
+        });
 
-               degreeLabel.setText("Physical network filter degree 
(optional):");
+        degreeLabel.setText("Physical network filter degree (optional):");
 
-               javax.swing.GroupLayout scorePanelLayout = new 
javax.swing.GroupLayout(
-                               scorePanel);
-               scorePanel.setLayout(scorePanelLayout);
-               scorePanelLayout
-                               .setHorizontalGroup(scorePanelLayout
-                                               .createParallelGroup(
-                                                               
javax.swing.GroupLayout.Alignment.LEADING)
-                                               .addGroup(
-                                                               scorePanelLayout
-                                                                               
.createSequentialGroup()
-                                                                               
.addContainerGap()
-                                                                               
.addGroup(
-                                                                               
                scorePanelLayout
-                                                                               
                                .createParallelGroup(
-                                                                               
                                                
javax.swing.GroupLayout.Alignment.LEADING)
-                                                                               
                                .addGroup(
-                                                                               
                                                scorePanelLayout
-                                                                               
                                                                
.createSequentialGroup()
-                                                                               
                                                                .addComponent(
-                                                                               
                                                                                
alphaLabel)
-                                                                               
                                                                .addGap(
-                                                                               
                                                                                
70,
-                                                                               
                                                                                
70,
-                                                                               
                                                                                
70)
-                                                                               
                                                                .addComponent(
-                                                                               
                                                                                
alphaTextField,
-                                                                               
                                                                                
javax.swing.GroupLayout.DEFAULT_SIZE,
-                                                                               
                                                                                
211,
-                                                                               
                                                                                
Short.MAX_VALUE))
-                                                                               
                                .addGroup(
-                                                                               
                                                scorePanelLayout
-                                                                               
                                                                
.createSequentialGroup()
-                                                                               
                                                                .addComponent(
-                                                                               
                                                                                
alphaMultiplierLabel)
-                                                                               
                                                                
.addPreferredGap(
-                                                                               
                                                                                
javax.swing.LayoutStyle.ComponentPlacement.RELATED)
-                                                                               
                                                                .addComponent(
-                                                                               
                                                                                
alphaMultiplierTextField,
-                                                                               
                                                                                
javax.swing.GroupLayout.DEFAULT_SIZE,
-                                                                               
                                                                                
211,
-                                                                               
                                                                                
Short.MAX_VALUE))
-                                                                               
                                .addGroup(
-                                                                               
                                                scorePanelLayout
-                                                                               
                                                                
.createSequentialGroup()
-                                                                               
                                                                .addComponent(
-                                                                               
                                                                                
degreeLabel)
-                                                                               
                                                                
.addPreferredGap(
-                                                                               
                                                                                
javax.swing.LayoutStyle.ComponentPlacement.RELATED)
-                                                                               
                                                                .addComponent(
-                                                                               
                                                                                
degreeTextField,
-                                                                               
                                                                                
javax.swing.GroupLayout.DEFAULT_SIZE,
-                                                                               
                                                                                
61,
-                                                                               
                                                                                
Short.MAX_VALUE)))
-                                                                               
.addContainerGap()));
-               scorePanelLayout
-                               .setVerticalGroup(scorePanelLayout
-                                               .createParallelGroup(
-                                                               
javax.swing.GroupLayout.Alignment.LEADING)
-                                               .addGroup(
-                                                               scorePanelLayout
-                                                                               
.createSequentialGroup()
-                                                                               
.addGroup(
-                                                                               
                scorePanelLayout
-                                                                               
                                .createParallelGroup(
-                                                                               
                                                
javax.swing.GroupLayout.Alignment.BASELINE)
-                                                                               
                                .addComponent(
-                                                                               
                                                alphaLabel)
-                                                                               
                                .addComponent(
-                                                                               
                                                alphaTextField,
-                                                                               
                                                
javax.swing.GroupLayout.PREFERRED_SIZE,
-                                                                               
                                                
javax.swing.GroupLayout.DEFAULT_SIZE,
-                                                                               
                                                
javax.swing.GroupLayout.PREFERRED_SIZE))
-                                                                               
.addPreferredGap(
-                                                                               
                javax.swing.LayoutStyle.ComponentPlacement.RELATED)
-                                                                               
.addGroup(
-                                                                               
                scorePanelLayout
-                                                                               
                                .createParallelGroup(
-                                                                               
                                                
javax.swing.GroupLayout.Alignment.BASELINE)
-                                                                               
                                .addComponent(
-                                                                               
                                                alphaMultiplierLabel)
-                                                                               
                                .addComponent(
-                                                                               
                                                alphaMultiplierTextField,
-                                                                               
                                                
javax.swing.GroupLayout.PREFERRED_SIZE,
-                                                                               
                                                
javax.swing.GroupLayout.DEFAULT_SIZE,
-                                                                               
                                                
javax.swing.GroupLayout.PREFERRED_SIZE))
-                                                                               
.addPreferredGap(
-                                                                               
                javax.swing.LayoutStyle.ComponentPlacement.RELATED)
-                                                                               
.addGroup(
-                                                                               
                scorePanelLayout
-                                                                               
                                .createParallelGroup(
-                                                                               
                                                
javax.swing.GroupLayout.Alignment.BASELINE)
-                                                                               
                                .addComponent(
-                                                                               
                                                degreeLabel)
-                                                                               
                                .addComponent(
-                                                                               
                                                degreeTextField,
-                                                                               
                                                
javax.swing.GroupLayout.PREFERRED_SIZE,
-                                                                               
                                                
javax.swing.GroupLayout.DEFAULT_SIZE,
-                                                                               
                                                
javax.swing.GroupLayout.PREFERRED_SIZE))
-                                                                               
.addContainerGap(
-                                                                               
                javax.swing.GroupLayout.DEFAULT_SIZE,
-                                                                               
                Short.MAX_VALUE)));
+        javax.swing.GroupLayout scorePanelLayout = new 
javax.swing.GroupLayout(scorePanel);
+        scorePanel.setLayout(scorePanelLayout);
+        scorePanelLayout.setHorizontalGroup(
+            
scorePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+            .addGroup(scorePanelLayout.createSequentialGroup()
+                .addContainerGap()
+                
.addGroup(scorePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+                    .addGroup(scorePanelLayout.createSequentialGroup()
+                        .addComponent(alphaLabel)
+                        .addGap(70, 70, 70)
+                        .addComponent(alphaTextField, 
javax.swing.GroupLayout.DEFAULT_SIZE, 211, Short.MAX_VALUE))
+                    .addGroup(scorePanelLayout.createSequentialGroup()
+                        .addComponent(alphaMultiplierLabel)
+                        
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+                        .addComponent(alphaMultiplierTextField, 
javax.swing.GroupLayout.DEFAULT_SIZE, 211, Short.MAX_VALUE))
+                    .addGroup(scorePanelLayout.createSequentialGroup()
+                        .addComponent(degreeLabel)
+                        
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+                        .addComponent(degreeTextField, 
javax.swing.GroupLayout.DEFAULT_SIZE, 61, Short.MAX_VALUE)))
+                .addContainerGap())
+        );
+        scorePanelLayout.setVerticalGroup(
+            
scorePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+            .addGroup(scorePanelLayout.createSequentialGroup()
+                
.addGroup(scorePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
+                    .addComponent(alphaLabel)
+                    .addComponent(alphaTextField, 
javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, 
javax.swing.GroupLayout.PREFERRED_SIZE))
+                
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+                
.addGroup(scorePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
+                    .addComponent(alphaMultiplierLabel)
+                    .addComponent(alphaMultiplierTextField, 
javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, 
javax.swing.GroupLayout.PREFERRED_SIZE))
+                
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+                
.addGroup(scorePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
+                    .addComponent(degreeLabel)
+                    .addComponent(degreeTextField, 
javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, 
javax.swing.GroupLayout.PREFERRED_SIZE))
+                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, 
Short.MAX_VALUE))
+        );
 
-               searchButton.setText("Search");
-               searchButton.addActionListener(new 
java.awt.event.ActionListener() {
-                       public void actionPerformed(java.awt.event.ActionEvent 
evt) {
-                               searchButtonActionPerformed(evt);
-                       }
-               });
+        searchButton.setText("Search");
+        searchButton.addActionListener(new java.awt.event.ActionListener() {
+            public void actionPerformed(java.awt.event.ActionEvent evt) {
+                searchButtonActionPerformed(evt);
+            }
+        });
 
-               helpButton.setText("?");
-               helpButton.addActionListener(new 
java.awt.event.ActionListener() {
-                       public void actionPerformed(java.awt.event.ActionEvent 
evt) {
-                               helpButtonActionPerformed(evt);
-                       }
-               });
+        helpButton.setText("?");
+        helpButton.addActionListener(new java.awt.event.ActionListener() {
+            public void actionPerformed(java.awt.event.ActionEvent evt) {
+                helpButtonActionPerformed(evt);
+            }
+        });
 
-               closeButton.setText("Close");
-               closeButton.addActionListener(new 
java.awt.event.ActionListener() {
-                       public void actionPerformed(java.awt.event.ActionEvent 
evt) {
-                               closeButtonActionPerformed(evt);
-                       }
-               });
+        closeButton.setText("Close");
+        closeButton.addActionListener(new java.awt.event.ActionListener() {
+            public void actionPerformed(java.awt.event.ActionEvent evt) {
+                closeButtonActionPerformed(evt);
+            }
+        });
 
-               javax.swing.GroupLayout layout = new 
javax.swing.GroupLayout(this);
-               this.setLayout(layout);
-               layout
-                               .setHorizontalGroup(layout
-                                               .createParallelGroup(
-                                                               
javax.swing.GroupLayout.Alignment.LEADING)
-                                               .addGroup(
-                                                               layout
-                                                                               
.createSequentialGroup()
-                                                                               
.addContainerGap()
-                                                                               
.addGroup(
-                                                                               
                layout
-                                                                               
                                .createParallelGroup(
-                                                                               
                                                
javax.swing.GroupLayout.Alignment.LEADING)
-                                                                               
                                .addGroup(
-                                                                               
                                                
javax.swing.GroupLayout.Alignment.TRAILING,
-                                                                               
                                                layout
-                                                                               
                                                                
.createSequentialGroup()
-                                                                               
                                                                .addGap(
-                                                                               
                                                                                
6,
-                                                                               
                                                                                
6,
-                                                                               
                                                                                
6)
-                                                                               
                                                                .addComponent(
-                                                                               
                                                                                
networkComboBox,
-                                                                               
                                                                                
0,
-                                                                               
                                                                                
333,
-                                                                               
                                                                                
Short.MAX_VALUE)
-                                                                               
                                                                .addGap(
-                                                                               
                                                                                
12,
-                                                                               
                                                                                
12,
-                                                                               
                                                                                
12))
-                                                                               
                                .addGroup(
-                                                                               
                                                layout
-                                                                               
                                                                
.createSequentialGroup()
-                                                                               
                                                                .addGroup(
-                                                                               
                                                                                
layout
-                                                                               
                                                                                
                .createParallelGroup(
-                                                                               
                                                                                
                                javax.swing.GroupLayout.Alignment.LEADING)
-                                                                               
                                                                                
                .addComponent(
-                                                                               
                                                                                
                                edgeAttributePanel,
-                                                                               
                                                                                
                                javax.swing.GroupLayout.Alignment.TRAILING,
-                                                                               
                                                                                
                                javax.swing.GroupLayout.DEFAULT_SIZE,
-                                                                               
                                                                                
                                javax.swing.GroupLayout.DEFAULT_SIZE,
-                                                                               
                                                                                
                                Short.MAX_VALUE)
-                                                                               
                                                                                
                .addComponent(
-                                                                               
                                                                                
                                scorePanel,
-                                                                               
                                                                                
                                javax.swing.GroupLayout.Alignment.TRAILING,
-                                                                               
                                                                                
                                javax.swing.GroupLayout.DEFAULT_SIZE,
-                                                                               
                                                                                
                                javax.swing.GroupLayout.DEFAULT_SIZE,
-                                                                               
                                                                                
                                Short.MAX_VALUE)
-                                                                               
                                                                                
                .addGroup(
-                                                                               
                                                                                
                                javax.swing.GroupLayout.Alignment.TRAILING,
-                                                                               
                                                                                
                                layout
-                                                                               
                                                                                
                                                .createSequentialGroup()
-                                                                               
                                                                                
                                                .addComponent(
-                                                                               
                                                                                
                                                                helpButton,
-                                                                               
                                                                                
                                                                
javax.swing.GroupLayout.PREFERRED_SIZE,
-                                                                               
                                                                                
                                                                47,
-                                                                               
                                                                                
                                                                
javax.swing.GroupLayout.PREFERRED_SIZE)
-                                                                               
                                                                                
                                                .addPreferredGap(
-                                                                               
                                                                                
                                                                
javax.swing.LayoutStyle.ComponentPlacement.RELATED,
-                                                                               
                                                                                
                                                                134,
-                                                                               
                                                                                
                                                                Short.MAX_VALUE)
-                                                                               
                                                                                
                                                .addComponent(
-                                                                               
                                                                                
                                                                closeButton,
-                                                                               
                                                                                
                                                                
javax.swing.GroupLayout.PREFERRED_SIZE,
-                                                                               
                                                                                
                                                                73,
-                                                                               
                                                                                
                                                                
javax.swing.GroupLayout.PREFERRED_SIZE)
-                                                                               
                                                                                
                                                .addPreferredGap(
-                                                                               
                                                                                
                                                                
javax.swing.LayoutStyle.ComponentPlacement.RELATED)
-                                                                               
                                                                                
                                                .addComponent(
-                                                                               
                                                                                
                                                                searchButton))
-                                                                               
                                                                                
                .addComponent(
-                                                                               
                                                                                
                                networkLabel,
-                                                                               
                                                                                
                                javax.swing.GroupLayout.PREFERRED_SIZE,
-                                                                               
                                                                                
                                111,
-                                                                               
                                                                                
                                javax.swing.GroupLayout.PREFERRED_SIZE))
-                                                                               
                                                                
.addContainerGap()))));
-               layout
-                               .setVerticalGroup(layout
-                                               .createParallelGroup(
-                                                               
javax.swing.GroupLayout.Alignment.LEADING)
-                                               .addGroup(
-                                                               layout
-                                                                               
.createSequentialGroup()
-                                                                               
.addContainerGap()
-                                                                               
.addComponent(networkLabel)
-                                                                               
.addPreferredGap(
-                                                                               
                javax.swing.LayoutStyle.ComponentPlacement.RELATED)
-                                                                               
.addComponent(
-                                                                               
                networkComboBox,
-                                                                               
                javax.swing.GroupLayout.PREFERRED_SIZE,
-                                                                               
                javax.swing.GroupLayout.DEFAULT_SIZE,
-                                                                               
                javax.swing.GroupLayout.PREFERRED_SIZE)
-                                                                               
.addGap(2, 2, 2)
-                                                                               
.addComponent(
-                                                                               
                edgeAttributePanel,
-                                                                               
                javax.swing.GroupLayout.PREFERRED_SIZE,
-                                                                               
                javax.swing.GroupLayout.DEFAULT_SIZE,
-                                                                               
                javax.swing.GroupLayout.PREFERRED_SIZE)
-                                                                               
.addPreferredGap(
-                                                                               
                javax.swing.LayoutStyle.ComponentPlacement.RELATED)
-                                                                               
.addComponent(
-                                                                               
                scorePanel,
-                                                                               
                javax.swing.GroupLayout.PREFERRED_SIZE,
-                                                                               
                javax.swing.GroupLayout.DEFAULT_SIZE,
-                                                                               
                javax.swing.GroupLayout.PREFERRED_SIZE)
-                                                                               
.addPreferredGap(
-                                                                               
                javax.swing.LayoutStyle.ComponentPlacement.RELATED,
-                                                                               
                23, Short.MAX_VALUE)
-                                                                               
.addGroup(
-                                                                               
                layout
-                                                                               
                                .createParallelGroup(
-                                                                               
                                                
javax.swing.GroupLayout.Alignment.BASELINE)
-                                                                               
                                .addComponent(
-                                                                               
                                                searchButton)
-                                                                               
                                .addComponent(
-                                                                               
                                                closeButton)
-                                                                               
                                .addComponent(
-                                                                               
                                                helpButton))
-                                                                               
.addContainerGap()));
+        
visualizationPanel.setBorder(javax.swing.BorderFactory.createTitledBorder("Visualization
 Options"));
+
+        edgeScoreLabel.setText("Edge Score Cutoff:");
+
+
+        javax.swing.GroupLayout visualizationPanelLayout = new 
javax.swing.GroupLayout(visualizationPanel);
+        visualizationPanel.setLayout(visualizationPanelLayout);
+        visualizationPanelLayout.setHorizontalGroup(
+            
visualizationPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+            .addGroup(visualizationPanelLayout.createSequentialGroup()
+                .addContainerGap()
+                .addComponent(edgeScoreLabel)
+                .addGap(18, 18, 18)
+                .addComponent(edgeScoreTextField, 
javax.swing.GroupLayout.DEFAULT_SIZE, 187, Short.MAX_VALUE)
+                .addContainerGap())
+        );
+        visualizationPanelLayout.setVerticalGroup(
+            
visualizationPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+            .addGroup(visualizationPanelLayout.createSequentialGroup()
+                
.addGroup(visualizationPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
+                    .addComponent(edgeScoreLabel)
+                    .addComponent(edgeScoreTextField, 
javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, 
javax.swing.GroupLayout.PREFERRED_SIZE))
+                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, 
Short.MAX_VALUE))
+        );
+
+        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
+        this.setLayout(layout);
+        layout.setHorizontalGroup(
+            
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+            .addGroup(layout.createSequentialGroup()
+                .addContainerGap()
+                
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, 
layout.createSequentialGroup()
+                        .addGap(6, 6, 6)
+                        .addComponent(networkComboBox, 0, 333, Short.MAX_VALUE)
+                        .addGap(12, 12, 12))
+                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, 
layout.createSequentialGroup()
+                        
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
+                            .addComponent(visualizationPanel, 
javax.swing.GroupLayout.Alignment.LEADING, 
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, 
Short.MAX_VALUE)
+                            .addComponent(edgeAttributePanel, 
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, 
Short.MAX_VALUE)
+                            .addComponent(scorePanel, 
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, 
Short.MAX_VALUE)
+                            .addGroup(layout.createSequentialGroup()
+                                .addComponent(helpButton, 
javax.swing.GroupLayout.PREFERRED_SIZE, 47, 
javax.swing.GroupLayout.PREFERRED_SIZE)
+                                
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 134, 
Short.MAX_VALUE)
+                                .addComponent(closeButton, 
javax.swing.GroupLayout.PREFERRED_SIZE, 73, 
javax.swing.GroupLayout.PREFERRED_SIZE)
+                                
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+                                .addComponent(searchButton))
+                            .addComponent(networkLabel, 
javax.swing.GroupLayout.Alignment.LEADING, 
javax.swing.GroupLayout.PREFERRED_SIZE, 111, 
javax.swing.GroupLayout.PREFERRED_SIZE))
+                        .addContainerGap())))
+        );
+        layout.setVerticalGroup(
+            
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+            .addGroup(layout.createSequentialGroup()
+                .addContainerGap()
+                .addComponent(networkLabel)
+                
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+                .addComponent(networkComboBox, 
javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, 
javax.swing.GroupLayout.PREFERRED_SIZE)
+                .addGap(2, 2, 2)
+                .addComponent(edgeAttributePanel, 
javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, 
javax.swing.GroupLayout.PREFERRED_SIZE)
+                
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+                .addComponent(scorePanel, 
javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, 
javax.swing.GroupLayout.PREFERRED_SIZE)
+                
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+                .addComponent(visualizationPanel, 
javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, 
javax.swing.GroupLayout.PREFERRED_SIZE)
+                
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
+                
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
+                    .addComponent(searchButton)
+                    .addComponent(closeButton)
+                    .addComponent(helpButton))
+                .addContainerGap())
+        );
        }// </editor-fold>
 
        private void searchButtonActionPerformed(java.awt.event.ActionEvent 
evt) {
@@ -516,22 +351,26 @@
 
        // Variables declaration - do not modify
        private javax.swing.JLabel alphaLabel;
-       private javax.swing.JLabel alphaMultiplierLabel;
-       private javax.swing.JTextField alphaMultiplierTextField;
-       private javax.swing.JTextField alphaTextField;
-       private javax.swing.JButton closeButton;
-       private javax.swing.JLabel degreeLabel;
-       private javax.swing.JTextField degreeTextField;
-       private javax.swing.JPanel edgeAttributePanel;
-       private javax.swing.JComboBox geneticEdgeComboBox;
-       private javax.swing.JLabel geneticEdgeLabel;
-       private javax.swing.JButton helpButton;
-       private javax.swing.JComboBox networkComboBox;
-       private javax.swing.JLabel networkLabel;
-       private javax.swing.JComboBox physicalEdgeComboBox;
-       private javax.swing.JLabel physicalEdgeLabel;
-       private javax.swing.JPanel scorePanel;
-       private javax.swing.JButton searchButton;
+    private javax.swing.JLabel alphaMultiplierLabel;
+    private javax.swing.JTextField alphaMultiplierTextField;
+    private javax.swing.JTextField alphaTextField;
+    private javax.swing.JButton closeButton;
+    private javax.swing.JLabel degreeLabel;
+    private javax.swing.JTextField degreeTextField;
+    private javax.swing.JPanel edgeAttributePanel;
+    private javax.swing.JLabel edgeScoreLabel;
+    private javax.swing.JTextField edgeScoreTextField;
+    private javax.swing.JComboBox geneticEdgeComboBox;
+    private javax.swing.JLabel geneticEdgeLabel;
+    private javax.swing.JButton helpButton;
+    private javax.swing.JComboBox networkComboBox;
+    private javax.swing.JLabel networkLabel;
+    private javax.swing.JComboBox physicalEdgeComboBox;
+    private javax.swing.JLabel physicalEdgeLabel;
+    private javax.swing.JPanel scorePanel;
+    private javax.swing.JButton searchButton;
+    private javax.swing.JPanel visualizationPanel;
+        
 
        // End of variables declaration
 
@@ -612,6 +451,8 @@
                                        
.parseDouble(alphaMultiplierTextField.getText()));
                        
parameters.setAlphaMultiplier(Integer.parseInt(degreeTextField
                                        .getText()));
+                       
parameters.setEdgeCutoff(Double.parseDouble(edgeScoreTextField
+                                       .getText()));
                } catch (NumberFormatException e) {
                        e.printStackTrace();
                        JOptionPane.showMessageDialog(this,

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