Examples of Tile


Examples of nl.nuggit.words.board.Tile

  public void play() {
    int tilePosition = startPosition;
    for (Tile tile : tiles) {
      Square square = line.getSquares()[tilePosition];
      Tile boardTile = square.getTile();
      if (boardTile == null) {
        square.setTile(tile);
      } else if (boardTile != tile) {
        throw new IllegalStateException(String.format(
            "Tile mismatch board:%s, word:%s", boardTile, tile));
View Full Code Here

Examples of org.brixcms.plugin.site.page.tile.Tile

        form.add(new FeedbackPanel("feedback", filterFeedback ? new ContainerFeedbackMessageFilter(form) : null));

        Brix brix = nodeModel.getObject().getBrix();
        final String tileClassName = getTileContainerNode().tiles().getTileClassName(tileId);
        final Tile tile = Tile.Helper.getTileOfType(tileClassName, brix);

        final TileEditorPanel editor;

        form.add(editor = tile.newEditor("editor", nodeModel));

        editor.load(getTileContainerNode().tiles().getTile(tileId));

        form.add(new SubmitLink("submit") {
            @Override
View Full Code Here

Examples of org.freerealm.tile.Tile

        int columnSegmentSize = currentMap.getWidth() / newColumnsToAdd;
        int rowSegmentSize = currentMap.getHeight() / newRowsToAdd;
        Tile[][] mapItems = new Tile[width][height];
        for (int i = 0; i < width; i++) {
            for (int j = 0; j < height; j++) {
                Tile newTile;
                if ((i != 0 && i % (columnSegmentSize + 1) == 0) || (j != 0 && j % (rowSegmentSize + 1) == 0)) {
                    newTile = new Tile(generateTileType(realm, probabilityTotal));
                } else {
                    int targetX = i - i / columnSegmentSize;
                    int targetY = j - j / rowSegmentSize;
                    Coordinate coordinate = new Coordinate(targetX, targetY);
                    newTile = currentMap.getTile(coordinate);
View Full Code Here

Examples of org.geoserver.kml.regionate.Tile

    @Override
    void encodeDocumentContents(Document container) {
        boolean cachedMode = "cached".equals(context.getSuperOverlayMode());

        // normalize the requested bounds to match a WGS84 hierarchy tile
        Tile tile = new Tile(new ReferencedEnvelope(request.getBbox(), Tile.WGS84));
        while(tile.getZ() > 0 && !tile.getEnvelope().contains(request.getBbox())) {
            tile = tile.getParent();
        }
        Envelope normalizedEnvelope = null;
        if (tile.getZ() >= 0 && tile.getEnvelope().contains(request.getBbox())) {
            normalizedEnvelope = tile.getEnvelope();
        } else {
            normalizedEnvelope = KmlEncodingContext.WORLD_BOUNDS_WGS84;
        }
        int zoomLevel = (int) tile.getZ();
        // encode top level region, which is always visible
        addRegion(container, normalizedEnvelope, Integer.MAX_VALUE, -1);

        List<MapLayerInfo> layers = request.getLayers();
        for (int i = 0; i < layers.size(); i++) {
View Full Code Here

Examples of org.geotools.geopkg.Tile

        geopkg.create(e);
        assertTileEntry(e);

        List<Tile> tiles = new ArrayList();
        tiles.add(new Tile(0,0,0,new byte[]{0}));
        tiles.add(new Tile(1,0,0,new byte[]{1}));
        tiles.add(new Tile(1,0,1,new byte[]{2}));
        tiles.add(new Tile(1,1,0,new byte[]{3}));
        tiles.add(new Tile(1,1,1,new byte[]{4}));

        for (Tile t : tiles) {
            geopkg.add(e, t);
        }
View Full Code Here

Examples of org.iremake.common.model.map.Tile

        this.rows = rows;
        this.columns = columns;
        map = new Tile[rows][columns];
        for (int row = 0; row < rows; row++) {
            for (int column = 0; column < columns; column++) {
                map[row][column] = new Tile();
            }
        }
        fireScenarioChanged();
    }
View Full Code Here

Examples of org.jpacman.framework.model.Tile

  /**
   * Basic sanity checks on initial setting.
   */
  @Test
  public void testInitialSetup() {
    Tile playerTile = tileAt(1, 1);
    assertEquals(playerTile, getPlayer().getTile());
    assertTrue(getPlayer().isAlive());
    assertEquals(0, getPlayer().getPoints());
  }
View Full Code Here

Examples of org.locationtech.udig.catalog.wmsc.server.Tile

        return getId().compareTo( other.getId() );
    }
   
    public boolean equals(Object arg0) {
        if (arg0 instanceof Tile) {
            Tile tile = (Tile) arg0;
            // id contains scale and bounds so compare with that
            if (getId().equals(tile.getId())) {
                return true;
            }
            else {
                return false;
            }
View Full Code Here

Examples of org.locationtech.udig.catalog.wmsc.server.Tile

                        Map<String, Tile> tilesInZoom = new HashMap<String, Tile>();

                        if (select != null) {

                            for( String key : allTilesInZoom.keySet() ) {
                                final Tile tile = allTilesInZoom.get(key);

                                if (select.intersects(JTS.toGeometry(tile.getBounds()))) {
                                    tilesInZoom.put(key, tile);
                                }
                            }
                        } else {
                            tilesInZoom.putAll(allTilesInZoom);
View Full Code Here

Examples of org.locationtech.udig.catalog.wmsc.server.Tile

            // remove any tiles that are already loaded from disk to avoid
            // deadlock waiting for all tiles
            Map<String, Tile> loadedTiles = new HashMap<String, Tile>();
            Iterator<Entry<String, Tile>> iterator = tileRangeTiles.entrySet().iterator();
            while( iterator.hasNext() ) {
                Tile tile = iterator.next().getValue();
                if (tile.getBufferedImage() != null) {
                    loadedTiles.put(tile.getId(), tile);
                }
            }
            Iterator<Entry<String, Tile>> iterator2 = loadedTiles.entrySet().iterator();
            while( iterator2.hasNext() ) {
                Tile tile = iterator2.next().getValue();
                tileRangeTiles.remove(tile.getId());
            }

            // now load any missing tiles and send off thread requests to fetch them
            tileRangeOnDisk.loadTiles(new NullProgressMonitor());

            // block and wait until all unloaded tiles are loaded before moving forward
            while( !tileRangeTiles.isEmpty() ) {
                Tile tile = null;
                try {
                    tile = (Tile) tilesCompleted_queue.take(); // blocks until a tile is done
                } catch (InterruptedException ex) {
                    // log error?
                    // ex.printStackTrace();
                } finally {
                    // remove the tile
                    if (tile != null) {
                        tileRangeTiles.remove(tile.getId());
                    }
                }
            }

            // all tiles in chunk are now complete, so update monitor
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.