Examples of renderRuleToBitmapFile()


Examples of org.antlr.works.visualization.SDGenerator.renderRuleToBitmapFile()

        SDGenerator sd = new SDGenerator(window.getGrammarEngine());
        for(ElementRule rule : window.getRules()) {
            try {
                if(asImage) {
                    sd.renderRuleToBitmapFile(rule.name, extension, XJUtils.concatPath(directory, rule.name+"."+extension));
                } else {
                    sd.renderRuleToEPSFile(rule.name, XJUtils.concatPath(directory, rule.name+".eps"));
                }
            } catch (Exception e) {
                XJAlert.display(window.getJavaContainer(), "Error", "Images cannot be saved because:\n"+e);
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.