コード例 #1
0
 private void apply() {
   int size = getPanelsSize();
   for (int i = 0; i < size; i++) {
     getPanel(i).apply();
   }
   // System.out.println("apply from dialog");
   gui.getTopPane().draw();
 }
コード例 #2
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();
 }
コード例 #3
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();
  }
コード例 #4
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);
 }