Package org.jnode.driver.video

Examples of org.jnode.driver.video.FrameBufferAPI


            }
            if (graphics != null) {
                graphics.close();
            }

            final FrameBufferAPI savedApi = this.api;
            this.api = null;
            this.graphics = null;
            this.keyboardHandler = null;
            this.mouseHandler = null;

            // Shutdown the eventqueue as the last event
            final JNodeEventQueue eventQueue = this._eventQueue;
            if (eventQueue != null) {
                EventQueue.invokeLater(new Runnable() {
                    public void run() {
                        eventQueue.shutdown();
                    }
                });
            }

            synchronized (initCloseLock) {
                this.refCount = 0;
                graphicsMode = false;
                initCloseLock.notifyAll();
            }
            savedApi.releaseOwnership(this);
            return 0;
        } else {
            return rc;
        }
    }
View Full Code Here


            if (dev == null) {
                final DeviceManager dm = InitialNaming.lookup(DeviceManager.NAME);
                dev = dm.getDevice(devId);
            }

            final FrameBufferAPI api = dev.getAPI(FrameBufferAPI.class);
            final FrameBufferConfiguration conf = api.getConfigurations()[0];

            g = api.open(conf);

            TextScreenConsoleManager mgr = new TextScreenConsoleManager();

            ScrollableTextScreen ts = new FBConsole.FBPcTextScreen(g).createCompatibleScrollableBufferScreen(500);
View Full Code Here

                }
                dev = new ArrayList<Device>(devs).get(0);
            }

            log.info("Using device " + dev.getId());
            final FrameBufferAPI api = dev.getAPI(FrameBufferAPI.class);
            final FrameBufferConfiguration conf = api.getConfigurations()[0];

            g = api.open(conf);
            this.width = conf.getScreenWidth();
            this.height = conf.getScreenHeight();

            perform();
View Full Code Here

    }

    private static void startFBConsole(Device dev) {
        FbTextScreenManager fbTsMgr = null;
        try {
            final FrameBufferAPI api = dev.getAPI(FrameBufferAPI.class);
            final FrameBufferConfiguration conf = api.getConfigurations()[0];

            fbTsMgr = new FbTextScreenManager(api, conf);
            InitialNaming.unbind(TextScreenManager.NAME);
            InitialNaming.bind(TextScreenManager.NAME, fbTsMgr);
        } catch (Throwable ex) {
View Full Code Here

TOP

Related Classes of org.jnode.driver.video.FrameBufferAPI

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.