public void actionPerformed(java.awt.event.ActionEvent e) { for (Con con : reflectivities.keySet()) { int idx = reflectivities.get(con); if (dlg.panelMain.mark != null && (idx == reflBox.getSelectedIndex())) dlg.panelMain.mark.setRefl(con); } }
public void actionPerformed(java.awt.event.ActionEvent e) { for (Sts sts : statuses.keySet()) { int idx = statuses.get(sts); if (dlg.panelMain.mark != null && (idx == statusBox.getSelectedIndex())) dlg.panelMain.mark.setStatus(sts); } }
public void actionPerformed(java.awt.event.ActionEvent e) { for (Cns cns : constructions.keySet()) { int idx = constructions.get(cns); if (dlg.panelMain.mark != null && (idx == constrBox.getSelectedIndex())) dlg.panelMain.mark.setConstr(cns); } }
public void syncPanel() { panelPat.syncPanel(); regionAButton.setBorderPainted(dlg.panelMain.mark.getRegion() == Reg.A); regionBButton.setBorderPainted(dlg.panelMain.mark.getRegion() == Reg.B); regionCButton.setBorderPainted(dlg.panelMain.mark.getRegion() == Reg.C); elevBox.setText(dlg.panelMain.mark.getElevation()); heightBox.setText(dlg.panelMain.mark.getObjectHeight()); sourceBox.setText(dlg.panelMain.mark.getSource()); infoBox.setText(dlg.panelMain.mark.getInfo()); for (Sts sts : statuses.keySet()) { int item = statuses.get(sts); if (dlg.panelMain.mark.getStatus() == sts) statusBox.setSelectedIndex(item); } for (Cns cns : constructions.keySet()) { int item = constructions.get(cns); if (dlg.panelMain.mark.getConstr() == cns) constrBox.setSelectedIndex(item); } for (Con con : conspicuities.keySet()) { int item = conspicuities.get(con); if (dlg.panelMain.mark.getConsp() == con) conBox.setSelectedIndex(item); } for (Con con : reflectivities.keySet()) { int item = reflectivities.get(con); if (dlg.panelMain.mark.getRefl() == con) reflBox.setSelectedIndex(item); } }
private void addReflItem(String str, Con con) { reflectivities.put(con, reflBox.getItemCount()); reflBox.addItem(str); }
private void addConItem(String str, Con con) { conspicuities.put(con, conBox.getItemCount()); conBox.addItem(str); }
private void addCnsItem(String str, Cns cns) { constructions.put(cns, constrBox.getItemCount()); constrBox.addItem(str); }
private void addStsItem(String str, Sts sts) { statuses.put(sts, statusBox.getItemCount()); statusBox.addItem(str); }