Package org.jnode.driver.textscreen

Examples of org.jnode.driver.textscreen.ScrollableTextScreen.sync()


    public void scrollUp(int rows) {
        final ScrollableTextScreen screen = getScrollableTextScreen();
        screen.scrollUp(rows);

        final int length = rows * screen.getWidth();
        screen.sync(screen.getHeight() * screen.getWidth() - length, length);
    }

    /**
     * Scroll a given number of rows down.
     *
 
View Full Code Here


     * @param rows
     */
    public void scrollDown(int rows) {
        final ScrollableTextScreen screen = getScrollableTextScreen();
        screen.scrollDown(rows);
        screen.sync(0, rows * screen.getWidth());
    }

    /**
     * Ensure that the given row is visible.
     *
 
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.