Package org.lilypondbeans.jccparser

Examples of org.lilypondbeans.jccparser.ASTFunction


            return false;
        }
        int tkind = node.jjtGetFirstToken().kind;
        if (tkind == ParserConstants.dynamics || tkind == ParserConstants.crescendo || tkind == ParserConstants.decrescendo) {

            ASTFunction func = (ASTFunction) node;
            DynamicsLayout layout = new DynamicsLayout();
            if (tkind == ParserConstants.crescendo) {
                layout.text = "<";
            } else if (tkind == ParserConstants.decrescendo) {
                layout.text = ">";
            } else { //\p \f etc
                String image = func.jjtGetFirstToken().image;
                try {

                    if (image.startsWith("\\")) {
                        layout.text = func.jjtGetFirstToken().image.substring(1);
                    }
                } catch (Exception ex) {
                    ex.printStackTrace();
                }
            }
            func.setLayoutObject(layout);
            layout.distanceRight = 0;
            if(func.pitch==null)//e.g. afterGrace
                return true;
            layout.priority = func.pitch.getlayoutObject().priority;
View Full Code Here

TOP

Related Classes of org.lilypondbeans.jccparser.ASTFunction

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.