Package org.jnode.driver.textscreen

Examples of org.jnode.driver.textscreen.ScrollableTextScreen


            g = api.open(conf);

            TextScreenConsoleManager mgr = new TextScreenConsoleManager();

            ScrollableTextScreen ts = new FBConsole.FBPcTextScreen(g).createCompatibleScrollableBufferScreen(500);

            ScrollableTextScreenConsole first =
                new ScrollableTextScreenConsole(mgr, "console", ts,
                    ConsoleManager.CreateOptions.TEXT |
                        ConsoleManager.CreateOptions.SCROLLABLE);
View Full Code Here


     * Scroll a given number of rows up.
     *
     * @param rows
     */
    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);
    }
View Full Code Here

     * Scroll a given number of rows down.
     *
     * @param rows
     */
    public void scrollDown(int rows) {
        final ScrollableTextScreen screen = getScrollableTextScreen();
        screen.scrollDown(rows);
        screen.sync(0, rows * screen.getWidth());
    }
View Full Code Here

            final TextScreenConsole console;
            if (name == null) {
                name = autoName();
            }
            if ((options & CreateOptions.SCROLLABLE) != 0) {
                final ScrollableTextScreen screen;
                screen = tsm.getSystemScreen().createCompatibleScrollableBufferScreen(SCROLLABLE_HEIGHT);
                console = new ScrollableTextScreenConsole(this, name, screen, options);
            } else {
                final TextScreen screen;
                screen = tsm.getSystemScreen().createCompatibleBufferScreen();
View Full Code Here

TOP

Related Classes of org.jnode.driver.textscreen.ScrollableTextScreen

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.