Package org.apache.pivot.wtk

Examples of org.apache.pivot.wtk.ApplicationContext


            // host is obscured. For a full description of why this is the case,
            // see http://people.apache.org/~tvolkert/tests/scrolling/

            ScrollPane scrollPane = (ScrollPane)getComponent();
            ApplicationContext.DisplayHost displayHost = scrollPane.getDisplay().getDisplayHost();
            ApplicationContext applicationContext = displayHost.getApplicationContext();

            optimizeScrolling = (displayHost.getScale() == 1
                && (applicationContext instanceof DesktopApplicationContext
                || (displayHost.getPeer().canDetermineObscurity()
                && !displayHost.getPeer().isObscured())));
View Full Code Here


        // needed, see http://people.apache.org/~tvolkert/tests/scrolling/
        // There seems to be no workaround, so we have to turn the optimization
        // completely off if we're not sure that we're unobscured.
        if (optimizeScrolling) {
            ApplicationContext.DisplayHost displayHost = viewport.getDisplay().getDisplayHost();
            ApplicationContext applicationContext = displayHost.getApplicationContext();

            optimizeScrolling = (applicationContext instanceof DesktopApplicationContext
                || (displayHost.getPeer().canDetermineObscurity()
                    && !displayHost.getPeer().isObscured()));
        }
View Full Code Here

        // needed, see http://people.apache.org/~tvolkert/tests/scrolling/.
        // There seems to be no workaround, so we have to turn the optimization
        // completely off if we're not sure that we're unobscured.
        if (optimizeScrolling) {
            ApplicationContext.DisplayHost displayHost = viewport.getDisplay().getDisplayHost();
            ApplicationContext applicationContext = displayHost.getApplicationContext();

            optimizeScrolling = (applicationContext instanceof DesktopApplicationContext
                || (displayHost.getPeer().canDetermineObscurity()
                    && !displayHost.getPeer().isObscured()));
        }
View Full Code Here

TOP

Related Classes of org.apache.pivot.wtk.ApplicationContext

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.