本文整理了Java中com.bc.ceres.swing.TableLayout.setCellPadding()
方法的一些代码示例,展示了TableLayout.setCellPadding()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TableLayout.setCellPadding()
方法的具体详情如下:
包路径:com.bc.ceres.swing.TableLayout
类名称:TableLayout
方法名:setCellPadding
暂无
代码示例来源:origin: senbox-org/snap-desktop
private JPanel createRenamingPanel() {
final TableLayout layout = new TableLayout(2);
layout.setTableAnchor(TableLayout.Anchor.WEST);
layout.setTableFill(TableLayout.Fill.HORIZONTAL);
layout.setColumnWeightX(0, 0.0);
layout.setColumnWeightX(1, 1.0);
layout.setCellPadding(0, 0, new Insets(3, 3, 3, 3));
layout.setCellPadding(1, 0, new Insets(3, 3, 3, 3));
final JPanel panel = new JPanel(layout);
panel.setBorder(BorderFactory.createTitledBorder("Renaming of Source Product Components"));
panel.add(renameMasterComponentsCheckBox);
panel.add(masterComponentPatternField);
panel.add(renameSlaveComponentsCheckBox);
panel.add(slaveComponentPatternField);
return panel;
}
代码示例来源:origin: bcdev/beam
private JPanel createRenamingPanel() {
final TableLayout layout = new TableLayout(2);
layout.setTableAnchor(TableLayout.Anchor.WEST);
layout.setTableFill(TableLayout.Fill.HORIZONTAL);
layout.setColumnWeightX(0, 0.0);
layout.setColumnWeightX(1, 1.0);
layout.setCellPadding(0, 0, new Insets(3, 3, 3, 3));
layout.setCellPadding(1, 0, new Insets(3, 3, 3, 3));
final JPanel panel = new JPanel(layout);
panel.setBorder(BorderFactory.createTitledBorder("Renaming of Source Product Components"));
panel.add(renameMasterComponentsCheckBox);
panel.add(masterComponentPatternField);
panel.add(renameSlaveComponentsCheckBox);
panel.add(slaveComponentPatternField);
return panel;
}
代码示例来源:origin: senbox-org/snap-desktop
private JPanel createResamplingPanel() {
final TableLayout layout = new TableLayout(3);
layout.setTableAnchor(TableLayout.Anchor.LINE_START);
layout.setTableFill(TableLayout.Fill.HORIZONTAL);
layout.setColumnWeightX(0, 0.0);
layout.setColumnWeightX(1, 0.0);
layout.setColumnWeightX(2, 1.0);
layout.setCellPadding(0, 0, new Insets(3, 3, 3, 3));
final JPanel panel = new JPanel(layout);
panel.setBorder(BorderFactory.createTitledBorder("Resampling"));
panel.add(new JLabel("Method:"));
panel.add(resamplingComboBox);
panel.add(new JLabel());
return panel;
}
代码示例来源:origin: bcdev/beam
private JPanel createResamplingPanel() {
final TableLayout layout = new TableLayout(3);
layout.setTableAnchor(TableLayout.Anchor.LINE_START);
layout.setTableFill(TableLayout.Fill.HORIZONTAL);
layout.setColumnWeightX(0, 0.0);
layout.setColumnWeightX(1, 0.0);
layout.setColumnWeightX(2, 1.0);
layout.setCellPadding(0, 0, new Insets(3, 3, 3, 3));
final JPanel panel = new JPanel(layout);
panel.setBorder(BorderFactory.createTitledBorder("Resampling"));
panel.add(new JLabel("Method:"));
panel.add(resamplingComboBox);
panel.add(new JLabel());
return panel;
}
代码示例来源:origin: senbox-org/snap-desktop
tableLayout.setTableWeightX(1.0);
tableLayout.setCellPadding(0, 0, new Insets(3, 3, 3, 3));
tableLayout.setCellPadding(1, 0, new Insets(3, 3, 3, 3));
tableLayout.setCellPadding(2, 0, new Insets(3, 3, 3, 3));
tableLayout.setCellPadding(3, 0, new Insets(0, 24, 3, 3));
tableLayout.setCellPadding(4, 0, new Insets(3, 3, 3, 3));
代码示例来源:origin: senbox-org/s2tbx
private static JPanel createTargetProductSelectorPanel(final TargetProductSelector selector) {
final JPanel subPanel1 = new JPanel(new BorderLayout(3, 3));
subPanel1.add(selector.getProductNameLabel(), BorderLayout.NORTH);
subPanel1.add(selector.getProductNameTextField(), BorderLayout.CENTER);
final JPanel subPanel2 = new JPanel(new FlowLayout(FlowLayout.LEADING, 0, 0));
subPanel2.add(selector.getSaveToFileCheckBox());
subPanel2.add(selector.getFormatNameComboBox());
final JPanel subPanel3 = new JPanel(new BorderLayout(3, 3));
subPanel3.add(selector.getProductDirLabel(), BorderLayout.NORTH);
subPanel3.add(selector.getProductDirTextField(), BorderLayout.CENTER);
subPanel3.add(selector.getProductDirChooserButton(), BorderLayout.EAST);
final TableLayout tableLayout = new TableLayout(1);
tableLayout.setTableAnchor(TableLayout.Anchor.WEST);
tableLayout.setTableFill(TableLayout.Fill.HORIZONTAL);
tableLayout.setTableWeightX(1.0);
tableLayout.setCellPadding(0, 0, new Insets(3, 3, 3, 3));
tableLayout.setCellPadding(1, 0, new Insets(3, 0, 3, 3));
tableLayout.setCellPadding(2, 0, new Insets(0, 21, 3, 3));
final JPanel panel = new JPanel(tableLayout);
panel.add(subPanel1);
panel.add(subPanel2);
panel.add(subPanel3);
return panel;
}
代码示例来源:origin: senbox-org/snap-desktop
private static JPanel createTargetProductSelectorPanel(final TargetProductSelector selector) {
final JPanel subPanel1 = new JPanel(new BorderLayout(3, 3));
subPanel1.add(selector.getProductNameLabel(), BorderLayout.NORTH);
subPanel1.add(selector.getProductNameTextField(), BorderLayout.CENTER);
final JPanel subPanel2 = new JPanel(new FlowLayout(FlowLayout.LEADING, 0, 0));
subPanel2.add(selector.getSaveToFileCheckBox());
subPanel2.add(selector.getFormatNameComboBox());
final JPanel subPanel3 = new JPanel(new BorderLayout(3, 3));
subPanel3.add(selector.getProductDirLabel(), BorderLayout.NORTH);
subPanel3.add(selector.getProductDirTextField(), BorderLayout.CENTER);
subPanel3.add(selector.getProductDirChooserButton(), BorderLayout.EAST);
final TableLayout tableLayout = new TableLayout(1);
tableLayout.setTableAnchor(TableLayout.Anchor.WEST);
tableLayout.setTableFill(TableLayout.Fill.HORIZONTAL);
tableLayout.setTableWeightX(1.0);
tableLayout.setCellPadding(0, 0, new Insets(3, 3, 3, 3));
tableLayout.setCellPadding(1, 0, new Insets(3, 0, 3, 3));
tableLayout.setCellPadding(2, 0, new Insets(0, 21, 3, 3));
final JPanel panel = new JPanel(tableLayout);
panel.add(subPanel1);
panel.add(subPanel2);
panel.add(subPanel3);
return panel;
}
代码示例来源:origin: bcdev/beam
private static JPanel createTargetProductSelectorPanel(final TargetProductSelector selector) {
final JPanel subPanel1 = new JPanel(new BorderLayout(3, 3));
subPanel1.add(selector.getProductNameLabel(), BorderLayout.NORTH);
subPanel1.add(selector.getProductNameTextField(), BorderLayout.CENTER);
final JPanel subPanel2 = new JPanel(new FlowLayout(FlowLayout.LEADING, 0, 0));
subPanel2.add(selector.getSaveToFileCheckBox());
subPanel2.add(selector.getFormatNameComboBox());
final JPanel subPanel3 = new JPanel(new BorderLayout(3, 3));
subPanel3.add(selector.getProductDirLabel(), BorderLayout.NORTH);
subPanel3.add(selector.getProductDirTextField(), BorderLayout.CENTER);
subPanel3.add(selector.getProductDirChooserButton(), BorderLayout.EAST);
final TableLayout tableLayout = new TableLayout(1);
tableLayout.setTableAnchor(TableLayout.Anchor.WEST);
tableLayout.setTableFill(TableLayout.Fill.HORIZONTAL);
tableLayout.setTableWeightX(1.0);
tableLayout.setCellPadding(0, 0, new Insets(3, 3, 3, 3));
tableLayout.setCellPadding(1, 0, new Insets(3, 0, 3, 3));
tableLayout.setCellPadding(2, 0, new Insets(0, 21, 3, 3));
final JPanel panel = new JPanel(tableLayout);
panel.add(subPanel1);
panel.add(subPanel2);
panel.add(subPanel3);
return panel;
}
代码示例来源:origin: bcdev/beam
tableLayout.setTableWeightX(1.0);
tableLayout.setCellPadding(0, 0, new Insets(3, 3, 3, 3));
tableLayout.setCellPadding(1, 0, new Insets(3, 3, 3, 3));
tableLayout.setCellPadding(2, 0, new Insets(0, 24, 3, 3));
tableLayout.setCellPadding(3, 0, new Insets(3, 3, 3, 3));
代码示例来源:origin: senbox-org/snap-desktop
private JPanel createSourceProductPanel() {
final JPanel masterPanel = new JPanel(new BorderLayout(3, 3));
masterPanel.add(masterProductSelector.getProductNameLabel(), BorderLayout.NORTH);
masterProductSelector.getProductNameComboBox().setPrototypeDisplayValue(
"MER_RR__1PPBCM20030730_071000_000003972018_00321_07389_0000.N1");
masterPanel.add(masterProductSelector.getProductNameComboBox(), BorderLayout.CENTER);
masterPanel.add(masterProductSelector.getProductFileChooserButton(), BorderLayout.EAST);
final JPanel slavePanel = new JPanel(new BorderLayout(3, 3));
slavePanel.add(slaveProductSelector.getProductNameLabel(), BorderLayout.NORTH);
slavePanel.add(slaveProductSelector.getProductNameComboBox(), BorderLayout.CENTER);
slavePanel.add(slaveProductSelector.getProductFileChooserButton(), BorderLayout.EAST);
final TableLayout layout = new TableLayout(1);
layout.setTableAnchor(TableLayout.Anchor.WEST);
layout.setTableFill(TableLayout.Fill.HORIZONTAL);
layout.setTableWeightX(1.0);
layout.setCellPadding(0, 0, new Insets(3, 3, 3, 3));
layout.setCellPadding(1, 0, new Insets(3, 3, 3, 3));
final JPanel panel = new JPanel(layout);
panel.setBorder(BorderFactory.createTitledBorder("Source Products"));
panel.add(masterPanel);
panel.add(slavePanel);
return panel;
}
代码示例来源:origin: senbox-org/snap-desktop
tableLayout.setTableWeightX(1.0);
tableLayout.setCellPadding(0, 0, new Insets(3, 3, 3, 3));
tableLayout.setCellPadding(1, 0, new Insets(3, 3, 3, 3));
tableLayout.setCellPadding(2, 0, new Insets(0, 24, 3, 3));
tableLayout.setCellPadding(3, 0, new Insets(3, 3, 3, 3));
代码示例来源:origin: bcdev/beam
private JPanel createSourceProductPanel() {
final JPanel masterPanel = new JPanel(new BorderLayout(3, 3));
masterPanel.add(masterProductSelector.getProductNameLabel(), BorderLayout.NORTH);
masterProductSelector.getProductNameComboBox().setPrototypeDisplayValue(
"MER_RR__1PPBCM20030730_071000_000003972018_00321_07389_0000.N1");
masterPanel.add(masterProductSelector.getProductNameComboBox(), BorderLayout.CENTER);
masterPanel.add(masterProductSelector.getProductFileChooserButton(), BorderLayout.EAST);
final JPanel slavePanel = new JPanel(new BorderLayout(3, 3));
slavePanel.add(slaveProductSelector.getProductNameLabel(), BorderLayout.NORTH);
slavePanel.add(slaveProductSelector.getProductNameComboBox(), BorderLayout.CENTER);
slavePanel.add(slaveProductSelector.getProductFileChooserButton(), BorderLayout.EAST);
final TableLayout layout = new TableLayout(1);
layout.setTableAnchor(TableLayout.Anchor.WEST);
layout.setTableFill(TableLayout.Fill.HORIZONTAL);
layout.setTableWeightX(1.0);
layout.setCellPadding(0, 0, new Insets(3, 3, 3, 3));
layout.setCellPadding(1, 0, new Insets(3, 3, 3, 3));
final JPanel panel = new JPanel(layout);
panel.setBorder(BorderFactory.createTitledBorder("Source Products"));
panel.add(masterPanel);
panel.add(slavePanel);
return panel;
}
代码示例来源:origin: senbox-org/snap-desktop
tableLayout.setColumnWeightX(2, 1.0);
tableLayout.setCellColspan(0, 1, 2);
tableLayout.setCellPadding(1, 0, new Insets(4, 24, 4, 20));
代码示例来源:origin: bcdev/beam
private void createUI(VisatApp visatApp) {
final ProductCrsForm productCrsForm = new ProductCrsForm(visatApp, product);
final CustomCrsForm customCrsForm = new CustomCrsForm(visatApp);
final PredefinedCrsForm predefinedCrsForm = new PredefinedCrsForm(visatApp);
crsSelectionPanel = new CrsSelectionPanel(productCrsForm, customCrsForm, predefinedCrsForm);
final TableLayout tableLayout = new TableLayout(1);
tableLayout.setTableWeightX(1.0);
tableLayout.setTableFill(TableLayout.Fill.BOTH);
tableLayout.setTablePadding(4, 4);
tableLayout.setCellPadding(0, 0, new Insets(4, 10, 4, 4));
final JPanel contentPanel = new JPanel(tableLayout);
final JLabel label = new JLabel();
label.setText("<html><b>" +
"These vector data does not define a coordinate reference system (CRS).<br/>" +
"Please specify a CRS so that coordinates can interpreted correctly.</b>");
contentPanel.add(label);
contentPanel.add(crsSelectionPanel);
setContent(contentPanel);
}
代码示例来源:origin: bcdev/beam
private JPanel createParametersPanel() {
final TableLayout tableLayout = new TableLayout(2);
tableLayout.setTableAnchor(TableLayout.Anchor.CENTER);
tableLayout.setTableFill(TableLayout.Fill.BOTH);
tableLayout.setTablePadding(3, 3);
tableLayout.setCellPadding(0, 0, new Insets(0, 0, 10, 10));
tableLayout.setCellColspan(1, 0, 2);
tableLayout.setCellColspan(2, 0, 2);
tableLayout.setRowWeightY(0, 0.5);
tableLayout.setRowWeightY(1, 0.0);
tableLayout.setRowWeightY(2, 0.5);
tableLayout.setColumnWeightX(0, 1.0);
tableLayout.setColumnWeightX(1, 1.0);
JPanel panel = new JPanel(tableLayout);
panel.setBorder(BorderFactory.createTitledBorder("Parameters"));
panel.add(createSourceBandsPanel());
panel.add(createSubParametersPanel());
panel.add(new JLabel("Endmembers:"));
panel.add(endmemberForm);
return panel;
}
代码示例来源:origin: senbox-org/snap-desktop
private JPanel createParametersPanel() {
final TableLayout tableLayout = new TableLayout(2);
tableLayout.setTableAnchor(TableLayout.Anchor.CENTER);
tableLayout.setTableFill(TableLayout.Fill.BOTH);
tableLayout.setTablePadding(3, 3);
tableLayout.setCellPadding(0, 0, new Insets(0, 0, 10, 10));
tableLayout.setCellColspan(1, 0, 2);
tableLayout.setCellColspan(2, 0, 2);
tableLayout.setRowWeightY(0, 0.5);
tableLayout.setRowWeightY(1, 0.0);
tableLayout.setRowWeightY(2, 0.5);
tableLayout.setColumnWeightX(0, 1.0);
tableLayout.setColumnWeightX(1, 1.0);
JPanel panel = new JPanel(tableLayout);
panel.setBorder(BorderFactory.createTitledBorder("Parameters"));
panel.add(createSourceBandsPanel());
panel.add(createSubParametersPanel());
panel.add(new JLabel("Endmembers:"));
panel.add(endmemberForm);
return panel;
}
代码示例来源:origin: bcdev/beam
private void createUI(JFreeChart chart, String helpID) {
final TableLayout tableLayout = new TableLayout(2);
tableLayout.setTablePadding(4, 4);
tableLayout.setTableAnchor(TableLayout.Anchor.NORTHWEST);
tableLayout.setTableFill(TableLayout.Fill.BOTH);
tableLayout.setTableWeightY(1.0);
tableLayout.setColumnWeightX(0, 1.0);
tableLayout.setColumnWeightX(1, 0.0);
tableLayout.setRowWeightY(0, 1.0);
tableLayout.setRowWeightY(1, 0.0);
tableLayout.setCellRowspan(0, 1, 2);
tableLayout.setCellFill(1, 0, TableLayout.Fill.HORIZONTAL);
tableLayout.setCellPadding(1, 0, new Insets(5, 5, 5, 5));
mainPanel = new JPanel(tableLayout);
mainPanel.setPreferredSize(new Dimension(320, 200));
ChartPanel chartPanel = new ChartPanel(chart);
chartPanel.setBorder(BorderFactory.createCompoundBorder(
BorderFactory.createBevelBorder(BevelBorder.LOWERED),
BorderFactory.createEmptyBorder(2, 2, 2, 2)));
mainPanel.add(chartPanel);
mainPanel.add(createButtonPanel(helpID));
mainPanel.add(validatorUI.createUI());
}
代码示例来源:origin: senbox-org/snap-desktop
private void createUI() {
final ProductCrsForm productCrsForm = new ProductCrsForm(SnapApp.getDefault().getAppContext(), product);
final CustomCrsForm customCrsForm = new CustomCrsForm(SnapApp.getDefault().getAppContext());
final PredefinedCrsForm predefinedCrsForm = new PredefinedCrsForm(SnapApp.getDefault().getAppContext());
crsSelectionPanel = new CrsSelectionPanel(productCrsForm, customCrsForm, predefinedCrsForm);
final TableLayout tableLayout = new TableLayout(1);
tableLayout.setTableWeightX(1.0);
tableLayout.setTableFill(TableLayout.Fill.BOTH);
tableLayout.setTablePadding(4, 4);
tableLayout.setCellPadding(0, 0, new Insets(4, 10, 4, 4));
final JPanel contentPanel = new JPanel(tableLayout);
final JLabel label = new JLabel();
label.setText("<html><b>" +
"The vector data are not associated with a coordinate reference system (CRS).<br/>" +
"Please specify a CRS so that coordinates can be interpreted correctly.</b>");
contentPanel.add(label);
contentPanel.add(crsSelectionPanel);
setContent(contentPanel);
}
代码示例来源:origin: bcdev/beam
rowCount++;
tableLayout.setCellColspan(rowCount, 0, 2);
tableLayout.setCellPadding(rowCount, 0, new Insets(4, 24, 4, 4));
rowCount++;
} else {
代码示例来源:origin: senbox-org/snap-desktop
rowCount++;
tableLayout.setCellColspan(rowCount, 0, 2);
tableLayout.setCellPadding(rowCount, 0, new Insets(4, 24, 4, 4));
rowCount++;
} else {
内容来源于网络,如有侵权,请联系作者删除!