Package org.geomajas.gwt.client.map.cache.tile

Examples of org.geomajas.gwt.client.map.cache.tile.RasterTile


   *            The group where the object resides in (optional).
   * @param context
   *            A MapContext object, responsible for actual drawing.
   */
  public void paint(Paintable paintable, Object group, MapContext context) {
    RasterTile tile = (RasterTile) paintable;
    context.getRasterContext().drawImage(tile.getStore().getLayer(),
        tile.getCode().toString(), tile.getUrl(), tile.getBounds(), tile.getStyle());
  }
View Full Code Here


   *            The group where the object resides in (optional).
   * @param graphics
   *            The context to paint on.
   */
  public void deleteShape(Paintable paintable, Object group, MapContext context) {
    RasterTile tile = (RasterTile) paintable;
    context.getRasterContext().deleteElement(tile.getStore().getLayer(), tile.getCode().toString());
  }
View Full Code Here

        if (cacheBounds == null) {
          cacheBounds = panBounds;
        } else {
          cacheBounds = cacheBounds.union(panBounds);
        }
        RasterTile tile = new RasterTile(code, panBounds, image.getUrl(), this);
        tiles.put(code, tile);
      }
    }
    deferred = null;
  }
View Full Code Here

TOP

Related Classes of org.geomajas.gwt.client.map.cache.tile.RasterTile

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.