Search in sources :

Example 1 with CollapsiblePanel

use of org.vcell.util.gui.CollapsiblePanel in project vcell by virtualcell.

the class BioModelEditorSabioPanel method initialize.

private void initialize() {
    responseTree = new JTree();
    responseTreeModel = new ResponseTreeModel();
    responseTree.setModel(responseTreeModel);
    ToolTipManager.sharedInstance().registerComponent(responseTree);
    setLayout(new BorderLayout());
    GridBagConstraints gbc = new GridBagConstraints();
    JPanel p = new JPanel();
    p.setLayout(new BoxLayout(p, BoxLayout.Y_AXIS));
    // ------- panel 1 ---------------
    JLabel categoryLabel1 = new JLabel("Role: ");
    panel1 = new JPanel();
    panel1.setBorder(BorderFactory.createTitledBorder(" Search "));
    panel1.setLayout(new GridBagLayout());
    gbc = new GridBagConstraints();
    gbc.gridx = 0;
    gbc.gridy = 0;
    gbc.weightx = 0;
    gbc.fill = GridBagConstraints.HORIZONTAL;
    panel1.add(categoryLabel1, gbc);
    gbc = new GridBagConstraints();
    gbc.gridx = 1;
    gbc.gridy = 0;
    gbc.weightx = 1.0;
    gbc.fill = GridBagConstraints.HORIZONTAL;
    panel1.add(entityName1, gbc);
    gbc = new GridBagConstraints();
    searchSabioDatabaseButton = new JButton("Search");
    searchSabioDatabaseButton.addActionListener(eventHandler);
    searchSabioDatabaseButton.setEnabled(true);
    gbc.gridx = 2;
    gbc.gridy = 0;
    gbc.weightx = 0;
    gbc.fill = GridBagConstraints.HORIZONTAL;
    gbc.anchor = GridBagConstraints.EAST;
    gbc.insets = new Insets(2, 4, 4, 4);
    panel1.add(searchSabioDatabaseButton, gbc);
    gbc = new GridBagConstraints();
    gbc.gridx = 0;
    gbc.gridy = 0;
    gbc.weightx = 1.0;
    gbc.fill = GridBagConstraints.HORIZONTAL;
    p.add(panel1);
    // ------- panel 2 -----------------
    panel2 = new CollapsiblePanel(" Advanced Search ", false, BorderFactory.createLineBorder(new Color(213, 223, 229)));
    panel2.getContentPanel().setLayout(new GridBagLayout());
    gbc = new GridBagConstraints();
    gbc.gridx = 0;
    gbc.gridy = 0;
    gbc.weightx = 1.0;
    gbc.insets = new Insets(4, 4, 4, 1);
    gbc.fill = GridBagConstraints.HORIZONTAL;
    gbc.anchor = GridBagConstraints.LINE_START;
    JLabel categoryLabel2 = new JLabel("Category");
    categoryList2.setSelectedIndex(3);
    categoryList2.addActionListener(eventHandler);
    JLabel entityLabel2 = new JLabel("Entity");
    entityName2.addActionListener(eventHandler);
    gbc = new GridBagConstraints();
    gbc.gridx = 0;
    gbc.gridy = 0;
    gbc.weightx = 1.0;
    gbc.fill = GridBagConstraints.HORIZONTAL;
    gbc.insets = new Insets(2, 2, 2, 0);
    panel2.getContentPanel().add(categoryLabel2, gbc);
    gbc = new GridBagConstraints();
    gbc.gridx = 0;
    gbc.gridy = 1;
    gbc.weightx = 1.0;
    gbc.fill = GridBagConstraints.HORIZONTAL;
    gbc.insets = new Insets(0, 2, 2, 0);
    panel2.getContentPanel().add(categoryList2, gbc);
    gbc = new GridBagConstraints();
    gbc.gridx = 1;
    gbc.gridy = 0;
    gbc.weightx = 1.0;
    gbc.fill = GridBagConstraints.HORIZONTAL;
    gbc.insets = new Insets(2, 2, 2, 0);
    panel2.getContentPanel().add(entityLabel2, gbc);
    gbc = new GridBagConstraints();
    gbc.gridx = 1;
    gbc.gridy = 1;
    gbc.weightx = 1.0;
    gbc.fill = GridBagConstraints.HORIZONTAL;
    gbc.insets = new Insets(0, 0, 2, 2);
    panel2.getContentPanel().add(entityName2, gbc);
    gbc = new GridBagConstraints();
    gbc.gridx = 0;
    gbc.gridy = 1;
    gbc.weightx = 1.0;
    gbc.fill = GridBagConstraints.HORIZONTAL;
    p.add(panel2, gbc);
    // ------- tree ------------------
    JPanel p1 = new JPanel(new BorderLayout());
    p1.add(new JScrollPane(responseTree));
    // ------- the panels -------------
    add(p, BorderLayout.NORTH);
    add(p1, BorderLayout.CENTER);
    ResponseTreeCellRenderer renderer = new ResponseTreeCellRenderer();
    // also available kineticLaw2Icon more colorful
    renderer.setLeafIcon(VCellIcons.kineticLawIcon);
    responseTree.setCellRenderer(renderer);
    responseTree.setRootVisible(false);
    responseTree.getSelectionModel().addTreeSelectionListener(eventHandler);
    // responseTree.addMouseListener( new MouseAdapter(){
    // public void mouseClicked(MouseEvent e){
    // if (e.getClickCount() <= 1) {
    // return;
    // }
    // treeSelectionChanged();	// for double click
    // }
    // });
    responseTree.getSelectionModel().addTreeSelectionListener(new TreeSelectionListener() {

        public void valueChanged(TreeSelectionEvent e) {
            Object obj = responseTree.getLastSelectedPathComponent();
            if (obj == null || !(obj instanceof BioModelNode)) {
                return;
            }
            BioModelNode selectedNode = (BioModelNode) obj;
            Object userObject = selectedNode.getUserObject();
            setSelectedObjects(new Object[] { userObject });
        }
    });
}
Also used : JScrollPane(javax.swing.JScrollPane) JPanel(javax.swing.JPanel) GridBagConstraints(java.awt.GridBagConstraints) Insets(java.awt.Insets) GridBagLayout(java.awt.GridBagLayout) BoxLayout(javax.swing.BoxLayout) Color(java.awt.Color) JButton(javax.swing.JButton) JLabel(javax.swing.JLabel) TreeSelectionListener(javax.swing.event.TreeSelectionListener) BioModelNode(cbit.vcell.desktop.BioModelNode) CollapsiblePanel(org.vcell.util.gui.CollapsiblePanel) JTree(javax.swing.JTree) BorderLayout(java.awt.BorderLayout) PathwayStringObject(cbit.vcell.client.desktop.biomodel.BioModelEditorPathwayCommonsPanel.PathwayStringObject) TreeSelectionEvent(javax.swing.event.TreeSelectionEvent)

Example 2 with CollapsiblePanel

use of org.vcell.util.gui.CollapsiblePanel in project vcell by virtualcell.

the class ReactionPropertiesPanel method initialize.

private void initialize() {
    try {
        setName("KineticsTypeTemplatePanel");
        setLayout(new java.awt.GridBagLayout());
        nameTextField = new JTextField();
        nameTextField.setEditable(false);
        nameTextField.addFocusListener(eventHandler);
        nameTextField.addActionListener(eventHandler);
        isReversibleCheckBox = new JCheckBox("");
        isReversibleCheckBox.addActionListener(eventHandler);
        isReversibleCheckBox.setBackground(Color.white);
        // isReversibleCheckBox.setHorizontalTextPosition(SwingConstants.LEFT);
        electricalPropertiesLabel = new JLabel("Electrical Properties");
        electricalPropertiesLabel.setVisible(false);
        reactionElectricalPropertiesPanel = new ReactionElectricalPropertiesPanel();
        reactionElectricalPropertiesPanel.setVisible(false);
        int gridy = 0;
        GridBagConstraints gbc = new java.awt.GridBagConstraints();
        gbc.gridx = 0;
        gbc.gridy = gridy;
        gbc.insets = new java.awt.Insets(2, 4, 4, 4);
        gbc.anchor = GridBagConstraints.LINE_END;
        add(new JLabel("Reaction Name"), gbc);
        gbc = new java.awt.GridBagConstraints();
        gbc.gridx = 1;
        gbc.gridy = gridy;
        gbc.insets = new java.awt.Insets(2, 4, 4, 4);
        gbc.weightx = 1.0;
        gbc.gridwidth = 3;
        gbc.fill = GridBagConstraints.HORIZONTAL;
        add(nameTextField, gbc);
        gridy++;
        gbc = new java.awt.GridBagConstraints();
        gbc.gridx = 0;
        gbc.gridy = gridy;
        gbc.anchor = java.awt.GridBagConstraints.LINE_END;
        gbc.insets = new java.awt.Insets(0, 4, 4, 4);
        add(electricalPropertiesLabel, gbc);
        gbc = new java.awt.GridBagConstraints();
        gbc.gridx = 1;
        gbc.gridy = gridy;
        gbc.gridwidth = 3;
        gbc.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gbc.weightx = 1.0;
        gbc.insets = new java.awt.Insets(0, 4, 0, 4);
        add(reactionElectricalPropertiesPanel, gbc);
        // ----------------------------------------------------------------
        JPanel p = new JPanel();
        p.setLayout(new GridBagLayout());
        p.setBackground(Color.white);
        int gridyy = 0;
        gbc = new java.awt.GridBagConstraints();
        gbc.gridx = 0;
        gbc.gridy = gridyy;
        gbc.anchor = GridBagConstraints.LINE_END;
        p.add(new JLabel("Reversible"), gbc);
        gbc = new java.awt.GridBagConstraints();
        gbc.gridx = 1;
        gbc.gridy = gridyy;
        gbc.fill = GridBagConstraints.HORIZONTAL;
        p.add(isReversibleCheckBox, gbc);
        gridy++;
        gbc = new GridBagConstraints();
        gbc.gridx = 0;
        gbc.gridy = gridy;
        gbc.weightx = 0;
        gbc.insets = new Insets(0, 4, 4, 4);
        gbc.anchor = GridBagConstraints.WEST;
        gbc.fill = GridBagConstraints.NONE;
        add(p, gbc);
        gbc = new java.awt.GridBagConstraints();
        gbc.gridx = 1;
        gbc.gridy = gridy;
        gbc.anchor = GridBagConstraints.LINE_END;
        gbc.insets = new java.awt.Insets(0, 4, 4, 4);
        add(new JLabel("Kinetic Type"), gbc);
        gbc = new java.awt.GridBagConstraints();
        gbc.gridx = 2;
        gbc.gridy = gridy;
        gbc.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gbc.weightx = 1.0;
        gbc.insets = new java.awt.Insets(0, 4, 4, 4);
        add(getKineticsTypeComboBox(), gbc);
        gbc = new GridBagConstraints();
        gbc.gridx = 3;
        gbc.gridy = gridy;
        gbc.insets = new java.awt.Insets(0, 4, 4, 4);
        add(getJToggleButton(), gbc);
        gridy++;
        gbc = new java.awt.GridBagConstraints();
        gbc.gridx = 0;
        gbc.gridy = gridy;
        gbc.fill = java.awt.GridBagConstraints.BOTH;
        gbc.weightx = 1.0;
        gbc.weighty = 1.0;
        gbc.gridwidth = 4;
        add(getScrollPaneTable().getEnclosingScrollPane(), gbc);
        CollapsiblePanel collapsiblePanel = new CollapsiblePanel("Annotation and Pathway Links", true);
        collapsiblePanel.getContentPanel().setLayout(new GridBagLayout());
        JPanel jp1 = new JPanel();
        jp1.setLayout(new GridBagLayout());
        gbc = new GridBagConstraints();
        gbc.gridx = 0;
        gbc.gridy = 0;
        gbc.anchor = GridBagConstraints.LINE_START;
        JLabel pathwayLink = new JLabel("Linked Pathway Object(s): ");
        jp1.add(pathwayLink, gbc);
        linkedPOScrollPane = new JScrollPane();
        gbc = new GridBagConstraints();
        gbc.gridx = 1;
        gbc.gridy = 0;
        gbc.weightx = 1.0;
        gbc.gridwidth = GridBagConstraints.REMAINDER;
        gbc.fill = GridBagConstraints.HORIZONTAL;
        jp1.add(linkedPOScrollPane, gbc);
        gbc = new GridBagConstraints();
        gbc.gridx = 0;
        gbc.gridy = 0;
        gbc.weightx = 1.0;
        gbc.fill = GridBagConstraints.HORIZONTAL;
        gbc.anchor = GridBagConstraints.LINE_START;
        collapsiblePanel.getContentPanel().add(jp1, gbc);
        annotationTextArea = new JTextArea(2, 20);
        annotationTextArea.setLineWrap(true);
        annotationTextArea.setWrapStyleWord(true);
        annotationTextArea.setFont(new Font("monospaced", Font.PLAIN, 11));
        gbc = new GridBagConstraints();
        gbc.gridx = 0;
        gbc.gridy = 1;
        gbc.weightx = 1.0;
        gbc.fill = GridBagConstraints.HORIZONTAL;
        gbc.anchor = GridBagConstraints.LINE_START;
        JScrollPane jp2 = new JScrollPane(annotationTextArea);
        collapsiblePanel.getContentPanel().add(jp2, gbc);
        gridy++;
        gbc = new java.awt.GridBagConstraints();
        gbc.gridx = 0;
        gbc.gridy = gridy;
        gbc.gridwidth = 4;
        gbc.weightx = 1.0;
        gbc.weighty = 0.2;
        gbc.fill = java.awt.GridBagConstraints.HORIZONTAL;
        add(collapsiblePanel, gbc);
        setBackground(Color.white);
        getKineticsTypeComboBox().addActionListener(eventHandler);
        getKineticsTypeComboBox().setEnabled(false);
        initKineticChoices();
        initConnections();
    } catch (java.lang.Throwable ivjExc) {
        handleException(ivjExc);
    }
// user code begin {2}
// user code end
}
Also used : JScrollPane(javax.swing.JScrollPane) JPanel(javax.swing.JPanel) GridBagConstraints(java.awt.GridBagConstraints) Insets(java.awt.Insets) Insets(java.awt.Insets) JTextArea(javax.swing.JTextArea) GridBagLayout(java.awt.GridBagLayout) JLabel(javax.swing.JLabel) JTextField(javax.swing.JTextField) GridBagConstraints(java.awt.GridBagConstraints) CollapsiblePanel(org.vcell.util.gui.CollapsiblePanel) Font(java.awt.Font) JCheckBox(javax.swing.JCheckBox) ReactionElectricalPropertiesPanel(cbit.vcell.model.gui.ReactionElectricalPropertiesPanel) GridBagLayout(java.awt.GridBagLayout)

Example 3 with CollapsiblePanel

use of org.vcell.util.gui.CollapsiblePanel in project vcell by virtualcell.

the class ODESolverPlotSpecificationPanel method getFilterPanel.

/**
 * Return the YAxisLabel property value.
 * @return javax.swing.JLabel
 */
/* WARNING: THIS METHOD WILL BE REGENERATED. */
private CollapsiblePanel getFilterPanel() {
    if (filterPanel == null) {
        try {
            filterPanel = new CollapsiblePanel("Display Options:", false);
            filterPanel.setName("filterPanel");
        // ivjYAxisLabel.setText("Y Axis:");
        // user code begin {1}
        // user code end
        } catch (java.lang.Throwable ivjExc) {
            // user code begin {2}
            // user code end
            handleException(ivjExc);
        }
    }
    return filterPanel;
}
Also used : CollapsiblePanel(org.vcell.util.gui.CollapsiblePanel)

Example 4 with CollapsiblePanel

use of org.vcell.util.gui.CollapsiblePanel in project vcell by virtualcell.

the class SimulationSummaryPanel method initialize.

/**
 * Initialize the class.
 */
/* WARNING: THIS METHOD WILL BE REGENERATED. */
private void initialize() {
    try {
        setName("SimulationSummaryPanel");
        setLayout(new java.awt.GridBagLayout());
        int gridy = 0;
        GridBagConstraints constraintsJLabel2 = new GridBagConstraints();
        constraintsJLabel2.gridx = 0;
        constraintsJLabel2.gridy = gridy;
        constraintsJLabel2.anchor = GridBagConstraints.LINE_END;
        constraintsJLabel2.insets = new Insets(4, 4, 4, 4);
        add(new JLabel("Annotation:"), constraintsJLabel2);
        GridBagConstraints constraintsJScrollPane1 = new GridBagConstraints();
        constraintsJScrollPane1.gridx = 1;
        constraintsJScrollPane1.gridy = gridy;
        constraintsJScrollPane1.gridwidth = GridBagConstraints.REMAINDER;
        constraintsJScrollPane1.fill = GridBagConstraints.BOTH;
        constraintsJScrollPane1.weightx = 1.0;
        constraintsJScrollPane1.insets = new Insets(4, 4, 4, 4);
        add(new JScrollPane(getJTextAreaDescription()), constraintsJScrollPane1);
        gridy++;
        GridBagConstraints constraintsJLabel3 = new GridBagConstraints();
        constraintsJLabel3.gridx = 0;
        constraintsJLabel3.gridy = gridy;
        constraintsJLabel3.anchor = GridBagConstraints.EAST;
        constraintsJLabel3.insets = new Insets(4, 4, 4, 4);
        // Time:
        add(new JLabel("Settings:"), constraintsJLabel3);
        GridBagConstraints gbc = new GridBagConstraints();
        gbc.gridx = 1;
        gbc.gridy = gridy;
        gbc.fill = GridBagConstraints.HORIZONTAL;
        gbc.weightx = 1.0;
        gbc.gridwidth = 3;
        gbc.anchor = GridBagConstraints.LINE_START;
        gbc.insets = new Insets(4, 4, 4, 4);
        add(getSettingsPanel(), gbc);
        gridy++;
        GridBagConstraints constraintsJLabel11 = new GridBagConstraints();
        constraintsJLabel11.gridx = 0;
        constraintsJLabel11.gridy = gridy;
        constraintsJLabel11.anchor = GridBagConstraints.EAST;
        constraintsJLabel11.insets = new Insets(4, 4, 4, 4);
        // Mesh:
        add(getJLabel11(), constraintsJLabel11);
        GridBagConstraints constraintsJLabelMesh = new GridBagConstraints();
        constraintsJLabelMesh.gridx = 1;
        constraintsJLabelMesh.gridy = gridy;
        constraintsJLabelMesh.weightx = 1.0;
        constraintsJLabelMesh.gridwidth = 2;
        constraintsJLabelMesh.fill = GridBagConstraints.HORIZONTAL;
        constraintsJLabelMesh.insets = new Insets(4, 4, 4, 4);
        add(getJLabelMesh(), constraintsJLabelMesh);
        GridBagConstraints constraintsJLabel8 = new GridBagConstraints();
        constraintsJLabel8.gridx = 3;
        constraintsJLabel8.gridy = gridy;
        constraintsJLabel8.anchor = GridBagConstraints.EAST;
        constraintsJLabel8.insets = new Insets(4, 4, 4, 4);
        // Geometry Size
        add(getJLabel8(), constraintsJLabel8);
        GridBagConstraints constraintsJLabelGeometrySize = new GridBagConstraints();
        constraintsJLabelGeometrySize.gridx = 4;
        constraintsJLabelGeometrySize.gridy = gridy;
        constraintsJLabelGeometrySize.weightx = 1.0;
        constraintsJLabelGeometrySize.fill = GridBagConstraints.HORIZONTAL;
        constraintsJLabelGeometrySize.insets = new Insets(4, 4, 4, 4);
        add(getJLabelGeometrySize(), constraintsJLabelGeometrySize);
        gridy++;
        GridBagConstraints constraints = new GridBagConstraints();
        constraints.gridx = 0;
        constraints.gridy = gridy;
        constraints.anchor = GridBagConstraints.EAST;
        constraints.insets = new Insets(4, 4, 4, 4);
        labelMeshRefinementTitle = new JLabel("Mesh Refinement:");
        add(labelMeshRefinementTitle, constraints);
        constraints = new GridBagConstraints();
        constraints.gridx = 1;
        constraints.gridy = gridy;
        constraints.fill = GridBagConstraints.HORIZONTAL;
        constraints.gridwidth = 2;
        constraints.insets = new Insets(4, 4, 4, 4);
        add(getJLabelMeshRefinement(), constraints);
        constraints = new GridBagConstraints();
        constraints.gridx = 3;
        constraints.gridy = gridy;
        constraints.anchor = GridBagConstraints.EAST;
        constraints.insets = new Insets(4, 4, 4, 4);
        labelFinestMeshTitle = new JLabel("Finest Level Mesh:");
        add(labelFinestMeshTitle, constraints);
        constraints = new GridBagConstraints();
        constraints.gridx = 4;
        constraintsJLabelMesh.gridy = gridy;
        constraints.fill = GridBagConstraints.HORIZONTAL;
        constraints.gridwidth = GridBagConstraints.REMAINDER;
        constraints.insets = new Insets(4, 4, 4, 4);
        labelFinestMesh = new JLabel();
        labelFinestMesh.setForeground(java.awt.Color.blue);
        add(labelFinestMesh, constraints);
        gridy++;
        constraints = new GridBagConstraints();
        constraints.gridx = 0;
        constraints.gridy = gridy;
        constraints.anchor = GridBagConstraints.EAST;
        constraints.insets = new Insets(4, 4, 4, 4);
        labelRefinementRoiTitle = new JLabel("Refinement ROI(s):");
        add(labelRefinementRoiTitle, constraints);
        constraints = new GridBagConstraints();
        constraints.gridx = 1;
        constraintsJLabelMesh.gridy = gridy;
        constraints.fill = GridBagConstraints.HORIZONTAL;
        constraints.gridwidth = 2;
        constraints.insets = new Insets(4, 4, 4, 4);
        add(getRefinementRoi(), constraints);
        gbc = new GridBagConstraints();
        gbc.gridx = 3;
        gbc.gridy = gridy;
        gbc.anchor = GridBagConstraints.EAST;
        gbc.insets = new Insets(4, 4, 4, 4);
        labelViewLevelMeshTitle = new JLabel("View Level Mesh:");
        add(labelViewLevelMeshTitle, gbc);
        gbc = new GridBagConstraints();
        gbc.gridx = 4;
        gbc.gridy = gridy;
        gbc.fill = GridBagConstraints.HORIZONTAL;
        gbc.gridwidth = GridBagConstraints.REMAINDER;
        gbc.insets = new Insets(4, 4, 4, 4);
        labelViewLevelMesh = new JLabel();
        labelViewLevelMesh.setForeground(Color.blue);
        add(labelViewLevelMesh, gbc);
        gridy++;
        GridBagConstraints constraintsMathOverridesPanel1 = new GridBagConstraints();
        constraintsMathOverridesPanel1.gridx = 0;
        constraintsMathOverridesPanel1.gridy = gridy;
        constraintsMathOverridesPanel1.gridwidth = GridBagConstraints.REMAINDER;
        constraintsMathOverridesPanel1.fill = GridBagConstraints.BOTH;
        constraintsMathOverridesPanel1.weightx = 1.0;
        constraintsMathOverridesPanel1.weighty = 1.0;
        constraintsMathOverridesPanel1.insets = new Insets(4, 4, 4, 4);
        CollapsiblePanel collapsiblePanel = new CollapsiblePanel("Parameters with values changed from defaults");
        collapsiblePanel.getContentPanel().setLayout(new BorderLayout());
        collapsiblePanel.getContentPanel().add(getMathOverridesPanel1(), BorderLayout.CENTER);
        add(collapsiblePanel, constraintsMathOverridesPanel1);
        getJTextAreaDescription().addFocusListener(ivjEventHandler);
    } catch (java.lang.Throwable ivjExc) {
        handleException(ivjExc);
    }
}
Also used : JScrollPane(javax.swing.JScrollPane) GridBagConstraints(java.awt.GridBagConstraints) Insets(java.awt.Insets) BorderLayout(java.awt.BorderLayout) JLabel(javax.swing.JLabel) GridBagLayout(java.awt.GridBagLayout) CollapsiblePanel(org.vcell.util.gui.CollapsiblePanel)

Example 5 with CollapsiblePanel

use of org.vcell.util.gui.CollapsiblePanel in project vcell by virtualcell.

the class SolverTaskDescriptionAdvancedPanel method getMiscPanel.

private CollapsiblePanel getMiscPanel() {
    if (miscPanel == null) {
        miscPanel = new CollapsiblePanel("Miscellaneous", false);
        miscPanel.setName("MiscPanel");
        miscPanel.getContentPanel().setLayout(new java.awt.GridBagLayout());
        int gridy = 0;
        // 0
        serialParameterScanCheckBox = new JCheckBox("Run Parameter Scan Serially");
        GridBagConstraints gridbag1 = new java.awt.GridBagConstraints();
        gridbag1.gridx = 0;
        gridbag1.gridy = gridy;
        gridbag1.weightx = 1.0;
        gridbag1.fill = GridBagConstraints.HORIZONTAL;
        gridbag1.insets = new java.awt.Insets(0, 0, 5, 0);
        miscPanel.getContentPanel().add(serialParameterScanCheckBox, gridbag1);
        // 1
        gridy++;
        stopAtSpatiallyUniformPanel = new StopAtSpatiallyUniformPanel();
        gridbag1 = new java.awt.GridBagConstraints();
        gridbag1.gridx = 0;
        gridbag1.gridy = gridy;
        gridbag1.fill = GridBagConstraints.HORIZONTAL;
        gridbag1.weightx = 1.0;
        gridbag1.insets = new java.awt.Insets(0, 0, 5, 0);
        miscPanel.getContentPanel().add(stopAtSpatiallyUniformPanel, gridbag1);
        // 2
        gridy++;
        dataProcessingInstructionPanel = new DataProcessingInstructionPanel();
        gridbag1 = new java.awt.GridBagConstraints();
        gridbag1.gridx = 0;
        gridbag1.gridy = gridy;
        gridbag1.fill = GridBagConstraints.HORIZONTAL;
        gridbag1.weightx = 1.0;
        gridbag1.insets = new java.awt.Insets(0, 0, 0, 10);
        miscPanel.getContentPanel().add(dataProcessingInstructionPanel, gridbag1);
    }
    return miscPanel;
}
Also used : JCheckBox(javax.swing.JCheckBox) GridBagConstraints(java.awt.GridBagConstraints) GridBagLayout(java.awt.GridBagLayout) GridBagConstraints(java.awt.GridBagConstraints) CollapsiblePanel(org.vcell.util.gui.CollapsiblePanel)

Aggregations

CollapsiblePanel (org.vcell.util.gui.CollapsiblePanel)12 GridBagConstraints (java.awt.GridBagConstraints)11 GridBagLayout (java.awt.GridBagLayout)11 Insets (java.awt.Insets)8 JScrollPane (javax.swing.JScrollPane)6 JCheckBox (javax.swing.JCheckBox)5 JLabel (javax.swing.JLabel)5 JPanel (javax.swing.JPanel)5 JButton (javax.swing.JButton)4 JTextField (javax.swing.JTextField)4 BorderLayout (java.awt.BorderLayout)3 Dimension (java.awt.Dimension)3 Font (java.awt.Font)3 JTree (javax.swing.JTree)3 BioModelNode (cbit.vcell.desktop.BioModelNode)2 MouseAdapter (java.awt.event.MouseAdapter)2 MouseEvent (java.awt.event.MouseEvent)2 JTextArea (javax.swing.JTextArea)2 Border (javax.swing.border.Border)2 EtchedBorder (javax.swing.border.EtchedBorder)2