use of org.knime.core.node.defaultnodesettings.DialogComponentStringSelection in project knime-core by knime.
the class NumericOutliersNodeDialogPane method createSettingsDialog.
/**
* Creates the settings panel.
*
* @return the settings panel
*/
private JPanel createSettingsDialog() {
final JPanel panel = new JPanel(new GridBagLayout());
final GridBagConstraints gbc = new GridBagConstraints();
gbc.anchor = GridBagConstraints.LINE_START;
gbc.gridx = 0;
gbc.gridy = 0;
gbc.weightx = 1;
gbc.weighty = 0;
// add panel border
panel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), SETTINGS_BORDER_TITLE));
// add IQR scale dialog
m_scalarDialog = new DialogComponentNumberEdit(NumericOutliersNodeModel.createScalarModel(), QUARTILE_RANGE_MULT);
panel.add(m_scalarDialog.getComponentPanel(), gbc);
++gbc.gridy;
// add the update domain dialog
m_updateDomainDialog = new DialogComponentBoolean(NumericOutliersNodeModel.createDomainModel(), DOMAIN_POLICY);
panel.add(m_updateDomainDialog.getComponentPanel(), gbc);
++gbc.gridy;
// add the heuristic dialog
m_heuristicDialog = new DialogComponentBoolean(NumericOutliersNodeModel.createHeuristicModel(), HEURISTIC_LABEL);
panel.add(m_heuristicDialog.getComponentPanel(), gbc);
++gbc.gridy;
// add a component to select the percentile estimation type
List<String> eTypes = Arrays.stream(EstimationType.values()).map(val -> val.toString()).collect(Collectors.toList());
m_estimationDialog = new DialogComponentStringSelection(NumericOutliersNodeModel.createEstimationModel(), ESTIMATION_TYPE, eTypes);
panel.add(m_estimationDialog.getComponentPanel(), gbc);
return panel;
}
Aggregations