public void put(
     String layerId,
     TextSymbolizer symbolizer,
     SimpleFeature feature,
     LiteShape2 shape,
     NumberRange scaleRange) {
   wrapped.put(layerId, symbolizer, feature, shape, scaleRange);
 }
Esempio n. 2
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 put(Rectangle2D area) {
   wrapped.put(area);
 }
 public List orderedLabels() {
   return wrapped.orderedLabels();
 }
 public void endLayer(String layerId, Graphics2D graphics, Rectangle displayArea) {
   wrapped.endLayer(layerId, graphics, displayArea);
 }
 public void enableLayer(String layerId) {
   wrapped.enableLayer(layerId);
 }
 public void disableLayer(String layerId) {
   wrapped.disableLayer(layerId);
 }
 public void clear(String layerId) {
   wrapped.clear(layerId);
 }
 public void startLayer(String layerId) {
   wrapped.startLayer(layerId);
 }