Package org.lilypondbeans.jccparser

Examples of org.lilypondbeans.jccparser.SimpleNode.jjtGetParent()


        NetbeansTextEditor.getInstance().insertAfterASTItem(el, (withBreak ? "\\break" : "") + "\r\n   ", false, false, null);
        //NetbeansTextEditor.getInstance().selectPosition(pos + 1, 0);
        ASTTempNode gen = ASTTempNode.create("", el.jjtGetLastToken().endLine + 1, 3, el);
        gen.jjtGetFirstToken().beginColumn++;
        gen.jjtSetParent(el.jjtGetParent());
        gen.setBeattime(el.getBeattime());
        NetbeansTextEditor.getInstance().selectPosition(gen);
    }

    public void mouseClicked(WidgetMouseEvent evt) {
View Full Code Here


    public abstract void draw(int xpos, int ypos, Graphics g);

    public void moveAllXInSameGroup(int greaterThen, int diffx) {
        SimpleNode par = parent.jjtGetParent();
        if (par.id == ParserTreeConstants.JJTCHORD) {
            par = par.jjtGetParent();
        }
        for (int x = 0; x < par.jjtGetNumChildren(); x++) {
            SimpleNode r = par.jjtGetChild(x);
            if (r.getlayoutObject() != null && r.getlayoutObject().x > greaterThen) {
                r.getlayoutObject().x += diffx;
View Full Code Here

        this.buffer = buffer;
    }

    public void gotoUp() {
        SimpleNode el = UpdateNodeTask.getInstance().getLastCurrent();
        if (el.jjtGetParent().id == ParserTreeConstants.JJTCHORD && el.id == ParserTreeConstants.JJTPITCH) {
            ASTChord chord = (ASTChord) el.jjtGetParent();//ignore others in same chord
            SimpleNode ret = ((ASTChord) el.jjtGetParent()).getHigherPitch((ASTPitch) el);
            if (ret != null) {
                NetbeansTextEditor.getInstance().selectPosition(ret);
                return;
View Full Code Here

    }

    public void gotoUp() {
        SimpleNode el = UpdateNodeTask.getInstance().getLastCurrent();
        if (el.jjtGetParent().id == ParserTreeConstants.JJTCHORD && el.id == ParserTreeConstants.JJTPITCH) {
            ASTChord chord = (ASTChord) el.jjtGetParent();//ignore others in same chord
            SimpleNode ret = ((ASTChord) el.jjtGetParent()).getHigherPitch((ASTPitch) el);
            if (ret != null) {
                NetbeansTextEditor.getInstance().selectPosition(ret);
                return;
            } else {
View Full Code Here

        }
    }

    public void gotoDown() {
        SimpleNode el = UpdateNodeTask.getInstance().getLastCurrent();
        if (el.jjtGetParent().id == ParserTreeConstants.JJTCHORD && el.id == ParserTreeConstants.JJTPITCH) {
            ASTChord chord = (ASTChord) el.jjtGetParent();//ignore others in same chord
            SimpleNode ret = ((ASTChord) el.jjtGetParent()).getLowerPitch((ASTPitch) el);
            if (ret != null) {
                NetbeansTextEditor.getInstance().selectPosition(ret);
                return;
View Full Code Here

    }

    public void gotoDown() {
        SimpleNode el = UpdateNodeTask.getInstance().getLastCurrent();
        if (el.jjtGetParent().id == ParserTreeConstants.JJTCHORD && el.id == ParserTreeConstants.JJTPITCH) {
            ASTChord chord = (ASTChord) el.jjtGetParent();//ignore others in same chord
            SimpleNode ret = ((ASTChord) el.jjtGetParent()).getLowerPitch((ASTPitch) el);
            if (ret != null) {
                NetbeansTextEditor.getInstance().selectPosition(ret);
                return;
            } else {
View Full Code Here

            next = voice.findNext(next);
            if (next == null) {
                return null;
            }
        }
        if (next.jjtGetParent().id == ParserTreeConstants.JJTCHORD) {
            return ((ASTChord) next.jjtGetParent()).getHighestPitch();
        }
        return next;//im nächsten weitersuchen?
    }
View Full Code Here

            if (next == null) {
                return null;
            }
        }
        if (next.jjtGetParent().id == ParserTreeConstants.JJTCHORD) {
            return ((ASTChord) next.jjtGetParent()).getHighestPitch();
        }
        return next;//im nächsten weitersuchen?
    }

    public static SimpleNode getPrev(SimpleNode el) {
View Full Code Here

            next = voice.findPrev(next);
            if (next == null) {
                return null;
            }
        }
        if (next.jjtGetParent().id == ParserTreeConstants.JJTCHORD) {
            return ((ASTChord) next.jjtGetParent()).getHighestPitch();
        }
        return next;//im nächsten weitersuchen?
    }
View Full Code Here

            if (next == null) {
                return null;
            }
        }
        if (next.jjtGetParent().id == ParserTreeConstants.JJTCHORD) {
            return ((ASTChord) next.jjtGetParent()).getHighestPitch();
        }
        return next;//im nächsten weitersuchen?
    }

    public void gotoNext() {
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.