congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
RasterTile.getCode
Code IndexAdd Tabnine to your IDE (free)

How to use
getCode
method
in
org.geomajas.layer.tile.RasterTile

Best Java code snippets using org.geomajas.layer.tile.RasterTile.getCode (Showing top 4 results out of 315)

origin: org.geomajas/geomajas-gwt-client-impl

protected void addTiles(List<org.geomajas.layer.tile.RasterTile> rasterTiles) {
  nrLoadingTiles = 0;
  for (RasterTile tile : rasterTiles) {
    TileCode code = tile.getCode().clone();
    // Add only new tiles to the list:
    if (!tiles.containsKey(code)) {
      nrLoadingTiles++;
      // Add the tile to the list and render it:
      tiles.put(code, tile);
      renderTile(tile, new ImageCounter());
    }
  }
  deferred = null;
  renderingImages = true;
}
origin: org.geomajas.plugin/geomajas-plugin-printing

private boolean isYIndexUp(List<RasterTile> tiles) {
  RasterTile first = tiles.iterator().next();
  for (RasterTile tile : tiles) {
    if (tile.getCode().getY() > first.getCode().getY()) {
      return tile.getBounds().getY() > first.getBounds().getY();
    } else if (tile.getCode().getY() < first.getCode().getY()) {
      return tile.getBounds().getY() < first.getBounds().getY();
    }
  }
  return false;
}
origin: org.geomajas.plugin/geomajas-plugin-printing

private Bbox getPixelBounds(List<RasterTile> tiles) {
  Bbox bounds = null;
  int imageWidth = configurationService.getRasterLayerInfo(getLayerId()).getTileWidth();
  int imageHeight = configurationService.getRasterLayerInfo(getLayerId()).getTileHeight();
  for (RasterTile tile : tiles) {
    Bbox tileBounds = new Bbox(tile.getCode().getX() * imageWidth, tile.getCode().getY() * imageHeight,
        imageWidth, imageHeight);
    if (bounds == null) {
      bounds = new Bbox(tileBounds.getX(), tileBounds.getY(), tileBounds.getWidth(), tileBounds.getHeight());
    } else {
      double minx = Math.min(tileBounds.getX(), bounds.getX());
      double maxx = Math.max(tileBounds.getMaxX(), bounds.getMaxX());
      double miny = Math.min(tileBounds.getY(), bounds.getY());
      double maxy = Math.max(tileBounds.getMaxY(), bounds.getMaxY());
      bounds = new Bbox(minx, miny, maxx - minx, maxy - miny);
    }
  }
  return bounds;
}
origin: org.geomajas.plugin/geomajas-plugin-printing

double xOffset = result.getRasterImage().getCode().getX() * imageWidth
    - pixelBounds.getX();
double yOffset = 0;
  yOffset = result.getRasterImage().getCode().getY() * imageHeight
      - pixelBounds.getY();
} else {
  yOffset = (float) (pixelBounds.getMaxY() - (result.getRasterImage().getCode()
      .getY() + 1)
org.geomajas.layer.tileRasterTilegetCode

Javadoc

Returns the unique code for this tile. Consider this it's unique identifier within a raster layer.

Popular methods of RasterTile

  • <init>
    Constructor setting the tile's unique ID and bounds.
  • setCode
    Set the unique code for this tile. Consider this it's unique identifier within a raster layer.
  • setUrl
    Set the URL to the actual image for this raster tile. It is that image that will really display the
  • getUrl
    Return the URL to the actual image for this raster tile. It is that image that will really display t
  • getBounds
    Returns the bounds for the image on the client side.
  • setBounds
    Sets the bounds for the image on the client side.

Popular in Java

  • Reading from database using SQL prepared statement
  • scheduleAtFixedRate (ScheduledExecutorService)
  • requestLocationUpdates (LocationManager)
  • addToBackStack (FragmentTransaction)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • Notification (javax.management)
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now