Package com.sgfj

Examples of com.sgfj.SGFNodeBoundsVisitor


            display.setCurrent(gobanCanvas);
    }

    private void autoZoom() {
        int bsz = game.board.size();
        SGFNodeBoundsVisitor bounds = new SGFNodeBoundsVisitor(0, 0, bsz - 1, bsz - 1);
        game.kifuHead().eval(bounds);

        //#ifdef debug
        System.out.println("Eval bounds: " + bounds.xmin + "," + bounds.ymin
                + " - " + bounds.xmax + "," + bounds.ymax);
View Full Code Here


            display.setCurrent(gobanCanvas);
    }

    private void autoZoom() {
        int bsz = game.board.size();
        SGFNodeBoundsVisitor bounds = new SGFNodeBoundsVisitor(0, 0, bsz - 1, bsz - 1);
        game.kifuHead().eval(bounds);

        //#ifdef debug
        System.out.println("Eval bounds: " + bounds.xmin + "," + bounds.ymin
                + " - " + bounds.xmax + "," + bounds.ymax);
View Full Code Here

            display.setCurrent(gobanCanvas);
    }

    private void autoZoom() {
        int bsz = game.board.size();
        SGFNodeBoundsVisitor bounds = new SGFNodeBoundsVisitor(0, 0, bsz - 1, bsz - 1);
        game.kifuHead().eval(bounds);

        //#ifdef debug
        System.out.println("Eval bounds: " + bounds.xmin + "," + bounds.ymin
                + " - " + bounds.xmax + "," + bounds.ymax);
View Full Code Here

        node.add(node2);
        SGFNode node3 = new SGFNode();
        node3.addMoveProperty(wPlay);
        node.add(node3);

        SGFNodeBoundsVisitor bounds = new SGFNodeBoundsVisitor(0, 0, 19, 19);
        node.eval(bounds);
        assertEquals(1, bounds.xmin);
        assertEquals(4, bounds.ymin);
        assertEquals(3, bounds.xmax);
        assertEquals(10, bounds.ymax);

        bounds = new SGFNodeBoundsVisitor(0, 0, 5, 5);
        node.eval(bounds);
        assertEquals(3, bounds.xmin);
        assertEquals(4, bounds.ymin);
        assertEquals(3, bounds.xmax);
        assertEquals(4, bounds.ymax);

        bounds = new SGFNodeBoundsVisitor(0, 0, 1, 1);
        node.eval(bounds);
        assertFalse(bounds.hasPoints());
    }
View Full Code Here

            display.setCurrent(gobanCanvas);
    }

    private void autoZoom() {
        int bsz = game.board.size();
        SGFNodeBoundsVisitor bounds = new SGFNodeBoundsVisitor(0, 0, bsz - 1, bsz - 1);
        game.kifuHead().eval(bounds);

        //#ifdef debug
        System.out.println("Eval bounds: " + bounds.xmin + "," + bounds.ymin
                + " - " + bounds.xmax + "," + bounds.ymax);
View Full Code Here

TOP

Related Classes of com.sgfj.SGFNodeBoundsVisitor

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.