Package org.lilypondbeans.jccparser

Examples of org.lilypondbeans.jccparser.ASTSymbols


            return false;
        }
        if (node.jjtGetFirstToken().kind == ParserConstants.fingering
                || node.jjtGetFirstToken().kind == ParserConstants.rightHandFinger
                || node.jjtGetFirstToken().kind == ParserConstants.stringnumber) {
            ASTSymbols symbol = (ASTSymbols) node;
            if(symbol.pitch==null)//eg \afterGrace would be ignored until noww
                return true;
            FingeringLayout layout = new FingeringLayout();
            String image = symbol.jjtGetFirstToken().image;
            try {
                if (image.substring(1).startsWith("\\rightHandFinger")) {
                    int t = image.charAt(image.length() - 1) - 48;//49=1
                    layout.toDraw = leftHandChars[t - 1];
                } else {
                    if (image.startsWith("\\")) {
                        layout.stringNumber = true;
                    }
                    layout.toDraw = symbol.jjtGetFirstToken().image.substring(1, 2);
                }
            } catch (Exception ex) {
                ex.printStackTrace();
            }
            symbol.setLayoutObject(layout);
            layout.distanceRight = 0;
            layout.priority = symbol.pitch.getlayoutObject().priority;
        } else {
            return false;
        }
View Full Code Here


        }
        return true;
    }

    public void draw(int xpos, int ypos, Graphics g) {
        ASTSymbols symbol = (ASTSymbols) this.parent;
        int nbreite = xpos + this.x;
        Color rette = g.getColor();
        Font org = g.getFont();
        g.setFont(g.getFont().deriveFont((float) (g.getFont().getSize() * 0.7)));
        int hight = (int) symbol.pitch.getlayoutObject().centre.getY() - 22;
View Full Code Here

TOP

Related Classes of org.lilypondbeans.jccparser.ASTSymbols

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.