public CrsSelectionPanel(CrsForm... crsForms) { this.crsForms = crsForms; createUI(); crsChangeListener = new CrsChangeListener(); addPropertyChangeListener("enabled", new EnabledChangeListener()); }
crsSelectionPanel.addPropertyChangeListener("crs", evt -> updateCRS()); updateCRS(); return parameterPanel;
parameterPanel.add(infoForm.createUI()); crsSelectionPanel.addPropertyChangeListener("crs", evt -> updateCRS()); updateCRS(); return parameterPanel;
private void createUI() { 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(2, 1.0); layout.setTablePadding(3, 3); setLayout(layout); CrsForm customCrsUI = new CustomCrsForm(appContext); CrsForm predefinedCrsUI = new PredefinedCrsForm(appContext); crsSelectionPanel = new CrsSelectionPanel(customCrsUI, predefinedCrsUI); crsSelectionPanel.addPropertyChangeListener(MosaicFormModel.PROPERTY_CRS, new PropertyChangeListener() { @Override public void propertyChange(PropertyChangeEvent evt) { updateForCrsChanged(); } }); add(crsSelectionPanel); add(createOrthorectifyPanel()); add(createMosaicBoundsPanel()); }
private void createUI() { 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(2, 1.0); layout.setTablePadding(3, 3); setLayout(layout); CrsForm customCrsUI = new CustomCrsForm(appContext); CrsForm predefinedCrsUI = new PredefinedCrsForm(appContext); crsSelectionPanel = new CrsSelectionPanel(customCrsUI, predefinedCrsUI); crsSelectionPanel.addPropertyChangeListener(S2tbxMosaicFormModel.PROPERTY_CRS, (PropertyChangeEvent evt)-> updateForCrsChanged()); add(crsSelectionPanel); add(createOrthorectifyPanel()); add(createMosaicBoundsPanel()); }