use of org.knime.core.node.util.filter.column.DataColumnSpecFilterPanel in project knime-core by knime.
the class OneWayANOVANodeDialog method createPanel.
/**
* Create the configuration panel.
*/
@SuppressWarnings("unchecked")
private Component createPanel() {
JPanel p = new JPanel(new GridBagLayout());
GridBagConstraints c = new GridBagConstraints();
c.fill = GridBagConstraints.BOTH;
c.anchor = GridBagConstraints.BASELINE;
c.insets = new Insets(2, 2, 2, 2);
c.gridx = 0;
c.gridy = 0;
c.gridwidth = 1;
c.weightx = 0;
c.weighty = 0;
Insets leftInsets = new Insets(3, 8, 3, 8);
Insets rightInsets = new Insets(3, 0, 3, 8);
Insets leftCategoryInsets = new Insets(11, 8, 3, 8);
Insets rightCategoryInsets = new Insets(11, 0, 3, 8);
c.gridx = 0;
c.insets = leftCategoryInsets;
c.gridwidth = 1;
c.weightx = 0;
c.weighty = 0;
p.add(new JLabel("Grouping column:"), c);
c.gridx++;
c.insets = rightCategoryInsets;
m_groupingColumn = new ColumnSelectionPanel(NominalValue.class, DoubleValue.class);
m_groupingColumn.setBorder(null);
p.add(m_groupingColumn, c);
c.gridx = 0;
c.gridy++;
c.insets = leftInsets;
c.weightx = 0;
p.add(new JLabel("Confidence Interval (in %):"), c);
c.gridx++;
c.insets = rightInsets;
m_confidenceIntervalProb = new JTextField("95");
p.add(m_confidenceIntervalProb, c);
c.gridx = 0;
c.gridy++;
c.insets = leftInsets;
c.gridwidth = 3;
c.weighty = 1;
c.weightx = 1;
m_testColumns = new DataColumnSpecFilterPanel(DoubleValue.class);
m_testColumns.setBorder(BorderFactory.createTitledBorder("Test columns"));
p.add(m_testColumns, c);
// dummy panel to make the controls smaller above the last component
// (the DataColumnSpecFilterPanel).
c.gridheight = c.gridy;
c.gridx = 2;
c.gridy = 0;
c.weighty = 1;
c.weightx = 1;
c.gridwidth = 1;
p.add(new JPanel(), c);
return p;
}
use of org.knime.core.node.util.filter.column.DataColumnSpecFilterPanel in project knime-core by knime.
the class OneSampleTTestNodeDialog method createPanel.
/**
* Create the configuration panel.
*/
@SuppressWarnings("unchecked")
private Component createPanel() {
JPanel p = new JPanel(new GridBagLayout());
GridBagConstraints c = new GridBagConstraints();
c.fill = GridBagConstraints.BOTH;
c.anchor = GridBagConstraints.BASELINE;
c.insets = new Insets(2, 2, 2, 2);
c.gridx = 0;
c.gridy = 0;
c.gridwidth = 1;
c.weightx = 0;
c.weighty = 0;
Insets leftInsets = new Insets(3, 8, 3, 8);
Insets rightInsets = new Insets(3, 0, 3, 8);
Insets leftCategoryInsets = new Insets(11, 8, 3, 8);
Insets rightCategoryInsets = new Insets(11, 0, 3, 8);
c.gridx = 0;
c.insets = leftCategoryInsets;
c.gridwidth = 1;
c.weightx = 0;
c.weighty = 0;
p.add(new JLabel("Test value:"), c);
c.gridx++;
c.weightx = 0.5;
c.insets = rightCategoryInsets;
m_testValue = new JTextField();
p.add(m_testValue, c);
c.gridx = 0;
c.gridy++;
c.weightx = 0;
c.insets = leftInsets;
p.add(new JLabel("Confidence Interval (in %):"), c);
c.gridx++;
c.insets = rightInsets;
m_confidenceIntervalProb = new JTextField("95");
p.add(m_confidenceIntervalProb, c);
c.gridx = 0;
c.gridy++;
c.insets = leftInsets;
c.gridwidth = 3;
c.weightx = 1;
c.weighty = 1;
m_testColumns = new DataColumnSpecFilterPanel(DoubleValue.class);
m_testColumns.setBorder(BorderFactory.createTitledBorder("Test columns"));
p.add(m_testColumns, c);
// dummy panel to make the controls smaller above the last component
// (the DataColumnSpecFilterPanel).
c.gridheight = c.gridy;
c.gridx = 2;
c.gridy = 0;
c.weighty = 1;
c.weightx = 1;
c.gridwidth = 1;
p.add(new JPanel(), c);
return p;
}
use of org.knime.core.node.util.filter.column.DataColumnSpecFilterPanel in project knime-core by knime.
the class TwoSampleTTestNodeDialog method createPanel.
/**
* Create the configuration panel.
*/
@SuppressWarnings("unchecked")
private Component createPanel() {
JPanel p = new JPanel(new GridBagLayout());
GridBagConstraints c = new GridBagConstraints();
c.fill = GridBagConstraints.BOTH;
c.anchor = GridBagConstraints.BASELINE;
c.insets = new Insets(2, 2, 2, 2);
c.gridx = 0;
c.gridy = 0;
c.gridwidth = 1;
c.weightx = 0;
c.weighty = 0;
Insets leftInsets = new Insets(3, 8, 3, 8);
Insets rightInsets = new Insets(3, 0, 3, 8);
Insets leftCategoryInsets = new Insets(11, 8, 3, 8);
Insets rightCategoryInsets = new Insets(11, 0, 3, 8);
c.gridx = 0;
c.insets = leftCategoryInsets;
c.gridwidth = 1;
c.weightx = 0;
c.weighty = 0;
p.add(new JLabel("Grouping column:"), c);
c.gridx++;
c.insets = rightCategoryInsets;
m_groupingColumn = new ColumnSelectionPanel(NominalValue.class, DoubleValue.class);
m_groupingColumn.setBorder(null);
m_groupingColumn.addActionListener(new ActionListener() {
@Override
public void actionPerformed(final ActionEvent e) {
initGroupComboBoxes();
}
});
p.add(m_groupingColumn, c);
c.gridx = 0;
c.gridy++;
c.insets = leftInsets;
c.gridwidth = 1;
c.weightx = 0;
c.weighty = 0;
p.add(new JLabel("Group one:"), c);
c.gridx++;
c.weightx = 0.5;
c.insets = rightInsets;
m_groupOne = new JComboBox();
m_groupOne.setEditable(true);
p.add(m_groupOne, c);
c.gridx = 0;
c.gridy++;
c.insets = leftInsets;
c.gridwidth = 1;
c.weightx = 0;
c.weighty = 0;
p.add(new JLabel("Group two:"), c);
c.gridx++;
c.weightx = 0.5;
c.insets = rightInsets;
m_groupTwo = new JComboBox();
m_groupTwo.setEditable(true);
p.add(m_groupTwo, c);
c.gridx = 0;
c.gridy++;
c.insets = leftInsets;
c.weightx = 0;
p.add(new JLabel("Confidence Interval (in %):"), c);
c.gridx++;
c.insets = rightInsets;
m_confidenceIntervalProb = new JTextField("95");
p.add(m_confidenceIntervalProb, c);
c.gridx = 0;
c.gridy++;
c.insets = leftInsets;
c.gridwidth = 3;
c.weighty = 1;
c.weightx = 1;
m_testColumns = new DataColumnSpecFilterPanel(DoubleValue.class);
m_testColumns.setBorder(BorderFactory.createTitledBorder("Test columns"));
p.add(m_testColumns, c);
// dummy panel to make the controls smaller above the last component
// (the DataColumnSpecFilterPanel).
c.gridheight = c.gridy;
c.gridx = 2;
c.gridy = 0;
c.weighty = 1;
c.weightx = 1;
c.gridwidth = 1;
p.add(new JPanel(), c);
return p;
}
Aggregations