Пример #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();
    }
Пример #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();
    }