com.bc.ceres.swing.TableLayout.setTableAnchor()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(10.3k)|赞(0)|评价(0)|浏览(107)

本文整理了Java中com.bc.ceres.swing.TableLayout.setTableAnchor()方法的一些代码示例,展示了TableLayout.setTableAnchor()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TableLayout.setTableAnchor()方法的具体详情如下:
包路径:com.bc.ceres.swing.TableLayout
类名称:TableLayout
方法名:setTableAnchor

TableLayout.setTableAnchor介绍

暂无

代码示例

代码示例来源: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: senbox-org/s2tbx

private JPanel getModalDialogContent(String message, String information){
  final TableLayout layout = new TableLayout(1);
  layout.setTableAnchor(TableLayout.Anchor.WEST);
  layout.setTableFill(TableLayout.Fill.BOTH);
  layout.setTableWeightX(1.0);
  layout.setTableWeightY(0.0);
  layout.setRowWeightY(1, 1.0);
  layout.setTablePadding(3, 3);
  JPanel content = new JPanel(layout);
  content.setBorder(new EmptyBorder(4, 4, 4, 4));
  content.add(new JLabel(message));
  content.add(new JLabel(information));
  return content;
}

代码示例来源:origin: bcdev/beam

private Component createKmzExportPanel(BindingContext bindingContext) {
  final TableLayout tableLayout = new TableLayout(1);
  tableLayout.setTablePadding(4, 4);
  tableLayout.setTableWeightX(1.0);
  tableLayout.setTableWeightY(0.0);
  tableLayout.setTableFill(TableLayout.Fill.BOTH);
  tableLayout.setTableAnchor(TableLayout.Anchor.NORTHWEST);
  final JPanel panel = new JPanel(tableLayout);
  final JCheckBox exportKmzBox = new JCheckBox("Export output coordinates to Google Earth (KMZ)");
  bindingContext.bind("exportKmz", exportKmzBox);
  panel.add(exportKmzBox);
  return panel;
}

代码示例来源:origin: senbox-org/snap-desktop

private Component createKmzExportPanel(BindingContext bindingContext) {
  final TableLayout tableLayout = new TableLayout(1);
  tableLayout.setTablePadding(4, 4);
  tableLayout.setTableWeightX(1.0);
  tableLayout.setTableWeightY(0.0);
  tableLayout.setTableFill(TableLayout.Fill.BOTH);
  tableLayout.setTableAnchor(TableLayout.Anchor.NORTHWEST);
  final JPanel panel = new JPanel(tableLayout);
  final JCheckBox exportKmzBox = new JCheckBox("Export output coordinates to Google Earth (KMZ)");
  bindingContext.bind("exportKmz", exportKmzBox);
  panel.add(exportKmzBox);
  return panel;
}

代码示例来源:origin: senbox-org/snap-desktop

private void resetContentPanel() {
  contentPanel.removeAll();
  contentLayout = new TableLayout(6);
  contentLayout.setTablePadding(2, 2);
  contentLayout.setTableFill(TableLayout.Fill.BOTH);
  contentLayout.setColumnWeightX(0, 0.0);
  contentLayout.setTableWeightX(1.0);
  contentLayout.setTableWeightY(0.0);
  contentLayout.setTableAnchor(TableLayout.Anchor.NORTHWEST);
  contentPanel.setLayout(contentLayout);
}

代码示例来源:origin: bcdev/beam

private JPanel createVariablePanel(String title, VariableSelectionPane variablePane) {
  final TableLayout layout = new TableLayout(1);
  layout.setTableAnchor(TableLayout.Anchor.NORTHWEST);
  layout.setTableFill(TableLayout.Fill.HORIZONTAL);
  layout.setTableWeightX(1.0);
  layout.setRowWeightY(0, 0.0);
  layout.setRowWeightY(1, 1.0);
  layout.setRowFill(1, TableLayout.Fill.BOTH);
  final JPanel panel = new JPanel(layout);
  panel.add(new TitledSeparator(title));
  variablePane.setPreferredSize(new Dimension(150, 80));
  panel.add(variablePane);
  return panel;
}

代码示例来源:origin: senbox-org/snap-desktop

private JComponent createIncludeOriginalInputBox(BindingContext bindingContext) {
  final TableLayout tableLayout = new TableLayout(1);
  tableLayout.setTablePadding(4, 4);
  tableLayout.setTableWeightX(1.0);
  tableLayout.setTableWeightY(0.0);
  tableLayout.setTableFill(TableLayout.Fill.BOTH);
  tableLayout.setTableAnchor(TableLayout.Anchor.NORTHWEST);
  final JPanel panel = new JPanel(tableLayout);
  includeOriginalInputBox = new JCheckBox("Include original input");
  bindingContext.bind("includeOriginalInput", includeOriginalInputBox);
  panel.add(includeOriginalInputBox);
  updateIncludeOriginalInputBox();
  return panel;
}

代码示例来源:origin: senbox-org/snap-desktop

private JPanel createExportPanel(BindingContext bindingContext) {
  final TableLayout tableLayout = new TableLayout(4);
  tableLayout.setTablePadding(4, 0);
  tableLayout.setTableFill(TableLayout.Fill.VERTICAL);
  tableLayout.setTableAnchor(TableLayout.Anchor.NORTHWEST);
  tableLayout.setColumnWeightX(3, 1.0);
  tableLayout.setTableWeightY(1.0);
  final JPanel exportPanel = new JPanel(tableLayout);
  exportPanel.add(createIncludeCheckbox(bindingContext, "Bands", "exportBands"));
  exportPanel.add(createIncludeCheckbox(bindingContext, "Tie-point grids", "exportTiePoints"));
  exportPanel.add(createIncludeCheckbox(bindingContext, "Masks", "exportMasks"));
  exportPanel.add(tableLayout.createHorizontalSpacer());
  return exportPanel;
}

代码示例来源:origin: bcdev/beam

private JPanel createExportPanel(BindingContext bindingContext) {
  final TableLayout tableLayout = new TableLayout(4);
  tableLayout.setTablePadding(4, 0);
  tableLayout.setTableFill(TableLayout.Fill.VERTICAL);
  tableLayout.setTableAnchor(TableLayout.Anchor.NORTHWEST);
  tableLayout.setColumnWeightX(3, 1.0);
  tableLayout.setTableWeightY(1.0);
  final JPanel exportPanel = new JPanel(tableLayout);
  exportPanel.add(createIncludeCheckbox(bindingContext, "Bands", "exportBands"));
  exportPanel.add(createIncludeCheckbox(bindingContext, "Tie-point grids", "exportTiePoints"));
  exportPanel.add(createIncludeCheckbox(bindingContext, "Masks", "exportMasks"));
  exportPanel.add(tableLayout.createHorizontalSpacer());
  return exportPanel;
}

代码示例来源:origin: bcdev/beam

private JComponent createIncludeOriginalInputBox(BindingContext bindingContext) {
  final TableLayout tableLayout = new TableLayout(1);
  tableLayout.setTablePadding(4, 4);
  tableLayout.setTableWeightX(1.0);
  tableLayout.setTableWeightY(0.0);
  tableLayout.setTableFill(TableLayout.Fill.BOTH);
  tableLayout.setTableAnchor(TableLayout.Anchor.NORTHWEST);
  final JPanel panel = new JPanel(tableLayout);
  includeOriginalInputBox = new JCheckBox("Include original input");
  bindingContext.bind("includeOriginalInput", includeOriginalInputBox);
  panel.add(includeOriginalInputBox);
  updateIncludeOriginalInputBox();
  return panel;
}

代码示例来源:origin: senbox-org/s2tbx

private TableLayout getTableLayout( int columnCount) {
  final TableLayout layout = new TableLayout(columnCount);
  layout.setTableAnchor(TableLayout.Anchor.WEST);
  layout.setTableFill(TableLayout.Fill.BOTH);
  layout.setTableWeightX(1.0);
  layout.setTablePadding(3, 3);
  return layout;
}

代码示例来源:origin: senbox-org/s2tbx

public ParametersPanel(boolean displayUnitColumn) {
  TableLayout layout = new TableLayout(displayUnitColumn ? 3 : 2);
  layout.setTableAnchor(TableLayout.Anchor.WEST);
  layout.setTableFill(TableLayout.Fill.HORIZONTAL);
  layout.setTablePadding(3, 3);
  setLayout(layout);
}

代码示例来源:origin: senbox-org/snap-desktop

public SourceProductPanel(final AppContext appContext) {
  final TableLayout tableLayout = new TableLayout(1);
  tableLayout.setTableAnchor(TableLayout.Anchor.NORTHWEST);
  tableLayout.setTableWeightX(1.0);
  tableLayout.setTableFill(TableLayout.Fill.BOTH);
  tableLayout.setTablePadding(1, 1);
  setLayout(tableLayout);
  // Fetch source products
  sourceProductSelectorList.add(new SourceProductSelector(appContext));
  for (SourceProductSelector selector : sourceProductSelectorList) {
    add(selector.createDefaultPanel());
  }
  add(tableLayout.createVerticalSpacer());
}

代码示例来源:origin: senbox-org/s2tbx

private void init() {
  final TableLayout tableLayout = new TableLayout(1);
  tableLayout.setTableAnchor(TableLayout.Anchor.WEST);
  tableLayout.setTableFill(TableLayout.Fill.BOTH);
  tableLayout.setTableWeightX(1.0);
  tableLayout.setTableWeightY(1.0);
  tableLayout.setTablePadding(3, 3);
  setLayout(tableLayout);
  add(createVariablesPanel());
}

代码示例来源:origin: senbox-org/snap-desktop

private void init() {
  final TableLayout tableLayout = new TableLayout(1);
  tableLayout.setTableAnchor(TableLayout.Anchor.WEST);
  tableLayout.setTableFill(TableLayout.Fill.BOTH);
  tableLayout.setTableWeightX(1.0);
  tableLayout.setTableWeightY(1.0);
  tableLayout.setTablePadding(3, 3);
  setLayout(tableLayout);
  add(createVariablesPanel());
  add(createConditionsPanel());
}

代码示例来源:origin: bcdev/beam

private void init() {
  final TableLayout tableLayout = new TableLayout(1);
  tableLayout.setTableAnchor(TableLayout.Anchor.WEST);
  tableLayout.setTableFill(TableLayout.Fill.BOTH);
  tableLayout.setTableWeightX(1.0);
  tableLayout.setTableWeightY(1.0);
  tableLayout.setTablePadding(3, 3);
  setLayout(tableLayout);
  add(createVariablesPanel());
  add(createConditionsPanel());
}

代码示例来源:origin: senbox-org/snap-desktop

private void initComponents() {
  TableLayout layout = new TableLayout(2);
  this.setLayout(layout);
  layout.setTableAnchor(TableLayout.Anchor.WEST);
  layout.setTableWeightY(1.0);
  layout.setTableFill(TableLayout.Fill.BOTH);
  layout.setTablePadding(2, 2);
  layout.setColumnWeightX(0, 0.5);
  layout.setColumnWeightX(1, 0.5);
  add(createInfoPanel());
  add(createAttachDetachPanel());
  updateUIState();
}

代码示例来源:origin: bcdev/beam

private void initComponents() {
  TableLayout layout = new TableLayout(2);
  this.setLayout(layout);
  layout.setTableAnchor(TableLayout.Anchor.WEST);
  layout.setTableWeightY(1.0);
  layout.setTableFill(TableLayout.Fill.BOTH);
  layout.setTablePadding(2, 2);
  layout.setColumnWeightX(0, 0.5);
  layout.setColumnWeightX(1, 0.5);
  add(createInfoPanel());
  add(createAttachDetachPanel());
  updateUIState();
}

代码示例来源:origin: senbox-org/snap-desktop

private void init() {
  final TableLayout tableLayout = new TableLayout(1);
  tableLayout.setTableAnchor(TableLayout.Anchor.WEST);
  tableLayout.setTableFill(TableLayout.Fill.BOTH);
  tableLayout.setTableWeightX(1.0);
  tableLayout.setTableWeightY(0.0);
  tableLayout.setTablePadding(3, 3);
  setLayout(tableLayout);
  tableLayout.setRowWeightY(0, 1.0);
  add(createSourceProductsPanel());
  targetProductSelector.getModel().setProductName("level-3");
  add(targetProductSelector.createDefaultPanel());
}

代码示例来源:origin: bcdev/beam

private void init() {
  final TableLayout tableLayout = new TableLayout(1);
  tableLayout.setTableAnchor(TableLayout.Anchor.WEST);
  tableLayout.setTableFill(TableLayout.Fill.BOTH);
  tableLayout.setTableWeightX(1.0);
  tableLayout.setTableWeightY(0.0);
  tableLayout.setTablePadding(3, 3);
  setLayout(tableLayout);
  tableLayout.setRowWeightY(0, 1.0);
  add(createSourceProductsPanel());
  targetProductSelector.getModel().setProductName("level-3");
  add(targetProductSelector.createDefaultPanel());
}

相关文章