Search in sources :

Example 11 with PlotPane

use of cbit.plot.gui.PlotPane in project vcell by virtualcell.

the class BNGDataPlotPanel method getplotPane.

/**
 * Return the plotPane property value.
 * @return cbit.plot.PlotPane
 */
/* WARNING: THIS METHOD WILL BE REGENERATED. */
private cbit.plot.gui.PlotPane getplotPane() {
    if (ivjplotPane == null) {
        try {
            ivjplotPane = new cbit.plot.gui.PlotPane();
            ivjplotPane.setName("plotPane");
            ivjplotPane.setPreferredSize(new java.awt.Dimension(700, 700));
        // user code begin {1}
        // user code end
        } catch (java.lang.Throwable ivjExc) {
            // user code begin {2}
            // user code end
            handleException(ivjExc);
        }
    }
    return ivjplotPane;
}
Also used : PlotPane(cbit.plot.gui.PlotPane)

Example 12 with PlotPane

use of cbit.plot.gui.PlotPane in project vcell by virtualcell.

the class DataProcessingResultsPanel method initialize.

private void initialize() {
    GridBagLayout gridBagLayout = new GridBagLayout();
    gridBagLayout.rowWeights = new double[] { 0.0 };
    gridBagLayout.columnWeights = new double[] { 0, 0 };
    setLayout(gridBagLayout);
    varJList = new JList();
    varJList.setVisibleRowCount(5);
    varJList.addListSelectionListener(new ListSelectionListener() {

        public void valueChanged(ListSelectionEvent e) {
            if (e.getValueIsAdjusting()) {
                return;
            }
            if (varJList.getSelectedIndex() != -1) {
                ((CardLayout) cardLayoutPanel.getLayout()).show(cardLayoutPanel, "plotPane1");
            }
            onVariablesChange();
        }
    });
    GridBagConstraints gbc_graphScrollPane = new GridBagConstraints();
    gbc_graphScrollPane.weighty = 0.3;
    gbc_graphScrollPane.gridx = 0;
    gbc_graphScrollPane.gridy = 0;
    gbc_graphScrollPane.insets = new Insets(4, 4, 4, 4);
    gbc_graphScrollPane.fill = GridBagConstraints.BOTH;
    graphScrollPane = new JScrollPane(varJList, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
    graphScrollPane.setMinimumSize(new Dimension(150, 150));
    add(graphScrollPane, gbc_graphScrollPane);
    cardLayoutPanel = new JPanel();
    GridBagConstraints gbc_cardLayoutPanel = new GridBagConstraints();
    gbc_cardLayoutPanel.weightx = 1.0;
    gbc_cardLayoutPanel.weighty = 1.0;
    gbc_cardLayoutPanel.insets = new Insets(4, 4, 4, 4);
    gbc_cardLayoutPanel.fill = GridBagConstraints.BOTH;
    gbc_cardLayoutPanel.gridx = 1;
    gbc_cardLayoutPanel.gridy = 0;
    add(cardLayoutPanel, gbc_cardLayoutPanel);
    cardLayoutPanel.setLayout(new CardLayout(0, 0));
    plotPane = new PlotPane();
    cardLayoutPanel.add(plotPane, "plotPane1");
}
Also used : JScrollPane(javax.swing.JScrollPane) JPanel(javax.swing.JPanel) CardLayout(java.awt.CardLayout) GridBagConstraints(java.awt.GridBagConstraints) Insets(java.awt.Insets) GridBagLayout(java.awt.GridBagLayout) ListSelectionEvent(javax.swing.event.ListSelectionEvent) PlotPane(cbit.plot.gui.PlotPane) Dimension(java.awt.Dimension) JList(javax.swing.JList) ListSelectionListener(javax.swing.event.ListSelectionListener)

Aggregations

PlotPane (cbit.plot.gui.PlotPane)12 Plot2D (cbit.plot.Plot2D)5 PlotData (cbit.plot.PlotData)4 SingleXPlot2D (cbit.plot.SingleXPlot2D)3 ChildWindow (cbit.vcell.client.ChildWindowManager.ChildWindow)3 SymbolTableEntry (cbit.vcell.parser.SymbolTableEntry)3 SpatialSelectionVolume (cbit.vcell.simdata.SpatialSelectionVolume)3 GridBagConstraints (java.awt.GridBagConstraints)3 GridBagLayout (java.awt.GridBagLayout)3 JPanel (javax.swing.JPanel)3 JScrollPane (javax.swing.JScrollPane)3 ChildWindowManager (cbit.vcell.client.ChildWindowManager)2 SinglePoint (cbit.vcell.geometry.SinglePoint)2 VariableType (cbit.vcell.math.VariableType)2 VolVariable (cbit.vcell.math.VolVariable)2 SimpleSymbolTable (cbit.vcell.parser.SimpleSymbolTable)2 DataIdentifier (cbit.vcell.simdata.DataIdentifier)2 Dimension (java.awt.Dimension)2 Point (java.awt.Point)2 JFrame (javax.swing.JFrame)2