/** 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();
 }
  /** 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();
  }
 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();
 }
  /**
   * The GPropertiesDialog class constructor.
   *
   * @param gui the GUI class
   */
  public GPropertiesDialog(GUI gui) {
    // superclass constructor
    super(gui, "Properties", false);
    objects = new ObjectContainer();

    // gui
    this.gui = gui;

    // set the fixed size
    setSize(260, 350);
    setResizable(false);
    setLayout(null);

    // set up panels for stuff
    pane = new JTabbedPane();

    // add the tabbed panel
    tabbedPanePanel = new JPanel();
    tabbedPanePanel.add(pane);
    tabbedPanePanel.setLayout(null);
    this.getContentPane().add(tabbedPanePanel);
    tabbedPanePanel.setBounds(0, 0, this.getWidth(), 280);
    pane.setBounds(0, 0, tabbedPanePanel.getWidth(), tabbedPanePanel.getHeight());

    // set up buttons
    apply = new JButton("Apply");
    apply.setBounds(150, 290, 80, 26);
    this.getContentPane().add(apply);

    close = new JButton("Close");
    close.setBounds(50, 290, 80, 26);
    this.getContentPane().add(close);

    addPanel(new GPropertiesPanelCustomObject(gui.getGMap()), "Object");

    // add listeners
    addMouseListener(this);
    apply.addItemListener(this);
    apply.addActionListener(this);
    close.addItemListener(this);
    close.addActionListener(this);
  }
 /** 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);
 }