本文整理了Java中com.bc.ceres.swing.TableLayout.setRowAnchor()
方法的一些代码示例,展示了TableLayout.setRowAnchor()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TableLayout.setRowAnchor()
方法的具体详情如下:
包路径:com.bc.ceres.swing.TableLayout
类名称:TableLayout
方法名:setRowAnchor
暂无
代码示例来源:origin: senbox-org/snap-desktop
private JPanel createMosaicBoundsPanel() {
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.setRowAnchor(2, TableLayout.Anchor.EAST);
layout.setRowFill(2, TableLayout.Fill.NONE);
layout.setTablePadding(3, 3);
final JPanel panel = new JPanel(layout);
panel.setBorder(BorderFactory.createTitledBorder("Mosaic Bounds"));
final WorldMapPaneDataModel worldMapModel = mosaicModel.getWorldMapModel();
setMapBoundary(worldMapModel);
final JPanel worldMapPanel = new RegionSelectableWorldMapPane(worldMapModel, bindingCtx).createUI();
bindingCtx.addPropertyChangeListener(new MapBoundsChangeListener());
worldMapPanel.setMinimumSize(new Dimension(250, 125));
worldMapPanel.setBorder(BorderFactory.createEtchedBorder());
final JCheckBox showSourceProductsCheckBox = new JCheckBox("Display source products");
bindingCtx.bind(MosaicFormModel.PROPERTY_SHOW_SOURCE_PRODUCTS, showSourceProductsCheckBox);
boundsInputPanel = new BoundsInputPanel(bindingCtx, MosaicFormModel.PROPERTY_UPDATE_MODE);
panel.add(boundsInputPanel.createBoundsInputPanel(true));
panel.add(worldMapPanel);
panel.add(showSourceProductsCheckBox);
return panel;
}
代码示例来源:origin: bcdev/beam
private JPanel createMosaicBoundsPanel() {
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.setRowAnchor(2, TableLayout.Anchor.EAST);
layout.setRowFill(2, TableLayout.Fill.NONE);
layout.setTablePadding(3, 3);
final JPanel panel = new JPanel(layout);
panel.setBorder(BorderFactory.createTitledBorder("Mosaic Bounds"));
final WorldMapPaneDataModel worldMapModel = mosaicModel.getWorldMapModel();
setMapBoundary(worldMapModel);
final JPanel worldMapPanel = new RegionSelectableWorldMapPane(worldMapModel, bindingCtx).createUI();
bindingCtx.addPropertyChangeListener(new MapBoundsChangeListener());
worldMapPanel.setMinimumSize(new Dimension(250, 125));
worldMapPanel.setBorder(BorderFactory.createEtchedBorder());
final JCheckBox showSourceProductsCheckBox = new JCheckBox("Display source products");
bindingCtx.bind(MosaicFormModel.PROPERTY_SHOW_SOURCE_PRODUCTS, showSourceProductsCheckBox);
boundsInputPanel = new BoundsInputPanel(bindingCtx, MosaicFormModel.PROPERTY_UPDATE_MODE);
panel.add(boundsInputPanel.createBoundsInputPanel(true));
panel.add(worldMapPanel);
panel.add(showSourceProductsCheckBox);
return panel;
}
代码示例来源:origin: senbox-org/s2tbx
layout.setTableWeightY(0.0);
layout.setRowWeightY(1, 1.0);
layout.setRowAnchor(2, TableLayout.Anchor.WEST);
layout.setRowFill(2, TableLayout.Fill.NONE);
layout.setTablePadding(3, 3);
代码示例来源:origin: bcdev/beam
private TableLayout createLayout() {
final TableLayout layout = new TableLayout(4);
layout.setTableAnchor(TableLayout.Anchor.NORTHWEST);
layout.setTablePadding(new Insets(4, 4, 4, 4));
layout.setColumnFill(0, TableLayout.Fill.BOTH);
layout.setColumnFill(1, TableLayout.Fill.VERTICAL);
layout.setColumnFill(2, TableLayout.Fill.BOTH);
layout.setColumnFill(3, TableLayout.Fill.BOTH);
layout.setRowFill(0, TableLayout.Fill.NONE);
layout.setRowAnchor(0, TableLayout.Anchor.SOUTHWEST);
layout.setRowWeightY(1, 100.0);
layout.setColumnWeightX(0, 100.0);
layout.setColumnWeightX(2, 100.0);
layout.setColumnWeightX(3, 100.0);
layout.setCellFill(0, 0, TableLayout.Fill.NONE);
layout.setCellFill(0, 1, TableLayout.Fill.NONE);
layout.setCellFill(0, 2, TableLayout.Fill.NONE);
layout.setCellFill(0, 3, TableLayout.Fill.NONE);
return layout;
}
内容来源于网络,如有侵权,请联系作者删除!