Exemplo n.º 1
0
    public void addEntry(AirspaceEntry entry) {
      entry.getEditor().addEditListener(this);
      this.getModel().addEntry(entry);
      this.updateShapeIntersection();

      this.getApp().getAirspaceLayer().addRenderable(entry.getAirspace());
      this.getApp().getWwd().redraw();
    }
Exemplo n.º 2
0
    public void removeEntry(AirspaceEntry entry) {
      entry.getEditor().removeEditListener(this);

      if (this.getSelectedEntry() == entry) {
        this.selectEntry(null, true);
      }

      this.getModel().removeEntry(entry);
      this.updateShapeIntersection();

      this.getApp().getAirspaceLayer().removeRenderable(entry.getAirspace());
      this.getApp().getWwd().redraw();
    }