Package com.tinygo.gam

Examples of com.tinygo.gam.Tile


        for (int x = 0; x < zoomW; x++)
            for (int y = 0; y < zoomH; y++)
                oldWits[x][y].clear(0);

        gobanTile = Image.createImage(gobanViewDevW, gobanViewDevH);
        Tile board = tilePainter.createTile(gobanViewDevW, gobanViewDevH);
        tilePainter.drawPlainBoard(board);
        gobanTile.getGraphics().drawRGB(board.pixels32, 0, board.width, 0, 0, board.width, board.height, false);

        cursorTile = tilePainter.createTile(gridStep + 1, gridStep + 1);
View Full Code Here


        int anchorX = (x - zoomX) * gridStep;
        int anchorY = (y - zoomY) * gridStep;
        Graphics g = gobanTile.getGraphics();
        for (int i = 0; i < tiles.size(); i++) {
            Tile tile = (Tile)tiles.elementAt(i);
            g.drawRGB(tile.pixels32, 0, tileW, anchorX, anchorY, tileW, tileW, true);
        }

        //repaint(gobanViewDevX + anchorX, gobanViewDevY + anchorY, tileW, tileW);
        //repaint();
View Full Code Here

        for (int x = 0; x < zoomW; x++)
            for (int y = 0; y < zoomH; y++)
                oldWits[x][y].clear(0);

        gobanTile = Image.createImage(gobanViewDevW, gobanViewDevH);
        Tile board = tilePainter.createTile(gobanViewDevW, gobanViewDevH);
        tilePainter.drawPlainBoard(board);
        gobanTile.getGraphics().drawRGB(board.pixels32, 0, board.width, 0, 0, board.width, board.height, false);

        cursorTile = tilePainter.createTile(gridStep + 1, gridStep + 1);
View Full Code Here

        int anchorX = (x - zoomX) * gridStep;
        int anchorY = (y - zoomY) * gridStep;
        Graphics g = gobanTile.getGraphics();
        for (int i = 0; i < tiles.size(); i++) {
            Tile tile = (Tile)tiles.elementAt(i);
            g.drawRGB(tile.pixels32, 0, tileW, anchorX, anchorY, tileW, tileW, true);
        }

        //repaint(gobanViewDevX + anchorX, gobanViewDevY + anchorY, tileW, tileW);
        //repaint();
View Full Code Here

TOP

Related Classes of com.tinygo.gam.Tile

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.