Beispiel #1
0
  /**
   * Called by the {@linkplain SwtMapPane.RenderingTask} when rendering has been completed Publishes
   * a {@linkplain MapPaneEvent} of type {@code MapPaneEvent.Type.RENDERING_STOPPED} to listeners.
   *
   * @see MapPaneListener#onRenderingStopped(org.geotools.swing.event.MapPaneEvent)
   */
  public void onRenderingCompleted() {
    if (clearLabelCache) {
      labelCache.clear();
    }
    clearLabelCache = false;

    // Graphics2D paneGr = (Graphics2D) this.getGraphics();
    // paneGr.drawImage(baseImage, imageOrigin.x, imageOrigin.y, null);

    // swtImage = new Image(this.getDisplay(), awtToSwt(baseImage, curPaintArea.width,
    // curPaintArea.height));
    // if (gc != null && !gc.isDisposed() && swtImage != null)
    // gc.drawImage(swtImage, imageOrigin.x, imageOrigin.y);

    MapPaneEvent ev = new MapPaneEvent(this, MapPaneEvent.Type.RENDERING_STOPPED);
    publishEvent(ev);
  }
 public void clear(String layerId) {
   wrapped.clear(layerId);
 }