コード例 #1
0
 /** run method for class */
 public void run() {
   GUI gui = (GUI) registeredObject;
   GPane pane = gui.getTopPane();
   pane.setMode(GPane.DRAW_MARKER_MODE);
   super.setSelected(true);
   gui.getNotifier().firePaneEvent(this);
   gui.getProgressMeter().getPanel().repaint();
 }
コード例 #2
0
 /** Pane event method for class. */
 public void paneEvent(Object object) {
   GUI gui = (GUI) registeredObject;
   GPane pane = gui.getTopPane();
   if (pane == null) return;
   super.setSelected(pane.getMode() == GPane.DRAW_MARKER_MODE);
 }