Example #1
0
 public void actionPerformed(java.awt.event.ActionEvent e) {
   dlg.panelMain.mark.setObject(Obj.UNKOBJ);
   dlg.panelMain.mark.setCategory(Cat.NOCAT);
   dlg.panelMain.mark.setTopmark(Top.NOTOP);
   if (mooringButton.isSelected()) {
     dlg.panelMain.mark.setObject(Obj.MORFAC);
     categoryBox.setVisible(false);
     mooringBox.setVisible(true);
     pillarButton.setEnabled(false);
     sparButton.setEnabled(false);
     beaconButton.setEnabled(false);
     towerButton.setEnabled(false);
     stakeButton.setEnabled(false);
     cairnButton.setEnabled(false);
     mooringButton.setBorderPainted(true);
   } else {
     mooringBox.setVisible(false);
     categoryBox.setVisible(true);
     pillarButton.setEnabled(true);
     sparButton.setEnabled(true);
     beaconButton.setEnabled(true);
     towerButton.setEnabled(true);
     stakeButton.setEnabled(true);
     cairnButton.setEnabled(true);
     mooringButton.setBorderPainted(false);
   }
   syncPanel();
 }
Example #2
0
 public void actionPerformed(java.awt.event.ActionEvent e) {
   dlg.panelMain.mark.clrMark();
   if (noticeButton.isSelected()) {
     dlg.panelMain.mark.setObject(Obj.NOTMRK);
     noticeButton.setBorderPainted(true);
   } else {
     dlg.panelMain.mark.setObject(Obj.UNKOBJ);
     noticeButton.setBorderPainted(false);
   }
   dlg.panelMain.syncPanel();
 }
Example #3
0
 public void actionPerformed(java.awt.event.ActionEvent e) {
   if (topmarkButton.isSelected()) {
     dlg.panelMain.mark.setTopmark(Top.X_SHAPE);
     dlg.panelMain.mark.setTopPattern(Pat.NOPAT);
     dlg.panelMain.mark.setTopColour(Col.YELLOW);
     topmarkButton.setBorderPainted(true);
   } else {
     dlg.panelMain.mark.setTopmark(Top.NOTOP);
     dlg.panelMain.mark.setTopPattern(Pat.NOPAT);
     dlg.panelMain.mark.setTopColour(Col.UNKCOL);
     topmarkButton.setBorderPainted(false);
   }
   dlg.panelMain.panelTop.syncPanel();
 }