code: private void renderTile(Graphic g, int tx, int ty, double viewX, double viewY)
      {
          final Tile tile = map.getTile(tx, ty);
          if (tile != null)
          {
              final int x = (int) Math.floor(tile.getX() - viewX);
              final int y = (int) Math.floor(-tile.getY() + viewY - tile.getHeight());
  
              for (final MapTileRenderer renderer : renderers)
              {
                  renderer.renderTile(g, map, tile, x, y);
              }
          }
      }
docs: Render the tile from location.
  
  @param g The graphic output.
  @param tx The horizontal tile location.
  @param ty The vertical tile location.
  @param viewX The horizontal view offset.
  @param viewY The vertical view offset.