Package com.sgfj

Examples of com.sgfj.SGFTextProperty


            try {
                node.getCommentProperty();
                fail("SGFPropertyNotFoundException expected!");
            } catch (SGFPropertyNotFoundException e) {
            }
            node.addProperty(new SGFTextProperty(SGFPropertyName.C, "a".toCharArray()));
            node.addProperty(new SGFTextProperty(SGFPropertyName.C, "b".toCharArray()));
            assertEquals("ab", node.getCommentProperty());
        } catch (Exception e) {
            e.printStackTrace();
            fail("No exceptions are expected.");
        }
View Full Code Here


    public void init(int size) {
        super.init(size);
        SGFNode head = new SGFNode();
        head.addProperty(new SGFIntProperty(SGFPropertyName.GM, 1));
        head.addProperty(new SGFIntProperty(SGFPropertyName.FF, 4));
        head.addProperty(new SGFTextProperty(SGFPropertyName.CA, charset.toCharArray()));
        head.addProperty(new SGFTextProperty(SGFPropertyName.AP, application.toCharArray()));
        head.addProperty(new SGFIntProperty(SGFPropertyName.SZ, size));
        kifu = head.iterator();
    }
View Full Code Here

    public void init(int size, float komi, String ruleSet, String white, String black) {
        init(size);
        SGFNode head = kifuHead();
        head.addProperty(new SGFFloatProperty(SGFPropertyName.KM, komi));
        head.addProperty(new SGFTextProperty(SGFPropertyName.RU, ruleSet.toCharArray()));
        head.addProperty(new SGFTextProperty(SGFPropertyName.PW, white.toCharArray()));
        head.addProperty(new SGFTextProperty(SGFPropertyName.PB, black.toCharArray()));
    }
View Full Code Here

TOP

Related Classes of com.sgfj.SGFTextProperty

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.