/** 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();
 }
Ejemplo n.º 2
0
  /** run method for class */
  public void run() {
    GUI gui = (GUI) registeredObject;
    GPane pane = gui.getTopPane();

    int increments = 10;
    for (int i = 0; i < increments; i++)
      gui.getGMap()
          .getGDraw()
          .add(
              new GLine(
                  new GPhysicalPoint((90 / increments) * i, -170.0),
                  new GPhysicalPoint((90 / increments) * i, 170.0)));

    pane.draw();
  }
 /** 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);
 }