Examples of mapPointToAncestor()


Examples of org.apache.pivot.wtk.CalendarButton.mapPointToAncestor()

            if (display != null) {
                int width = getWidth();
                int height = getHeight();

                // Ensure that the popup remains within the bounds of the display
                Point buttonLocation = calendarButton.mapPointToAncestor(display, 0, 0);

                Dimensions displaySize = display.getSize();

                calendarPopup.setPreferredSize(-1, -1);
                Dimensions popupSize = calendarPopup.getPreferredSize();
View Full Code Here

Examples of org.apache.pivot.wtk.CalendarButton.mapPointToAncestor()

            if (display != null) {
                int width = getWidth();
                int height = getHeight();

                // Ensure that the popup remains within the bounds of the display
                Point buttonLocation = calendarButton.mapPointToAncestor(display, 0, 0);

                Dimensions displaySize = display.getSize();

                calendarPopup.setPreferredSize(-1, -1);
                Dimensions popupSize = calendarPopup.getPreferredSize();
View Full Code Here

Examples of org.apache.pivot.wtk.CalendarButton.mapPointToAncestor()

            if (display != null) {
                int width = getWidth();
                int height = getHeight();

                // Ensure that the popup remains within the bounds of the display
                Point buttonLocation = calendarButton.mapPointToAncestor(display, 0, 0);

                Dimensions displaySize = display.getSize();

                calendarPopup.setPreferredSize(-1, -1);
                Dimensions popupSize = calendarPopup.getPreferredSize();
View Full Code Here

Examples of org.apache.pivot.wtk.ColorChooserButton.mapPointToAncestor()

                if (display != null) {
                    int width = getWidth();
                    int height = getHeight();

                    // Ensure that the popup remains within the bounds of the display
                    Point buttonLocation = colorChooserButton.mapPointToAncestor(display, 0, 0);

                    Dimensions displaySize = display.getSize();

                    colorChooserPopup.setPreferredSize(-1, -1);
                    Dimensions popupSize = colorChooserPopup.getPreferredSize();
View Full Code Here

Examples of org.apache.pivot.wtk.ColorChooserButton.mapPointToAncestor()

                if (display != null) {
                    int width = getWidth();
                    int height = getHeight();

                    // Ensure that the popup remains within the bounds of the display
                    Point buttonLocation = colorChooserButton.mapPointToAncestor(display, 0, 0);

                    Dimensions displaySize = display.getSize();

                    colorChooserPopup.setPreferredSize(-1, -1);
                    Dimensions popupSize = colorChooserPopup.getPreferredSize();
View Full Code Here

Examples of org.apache.pivot.wtk.ColorChooserButton.mapPointToAncestor()

                if (display != null) {
                    int width = getWidth();
                    int height = getHeight();

                    // Ensure that the popup remains within the bounds of the display
                    Point buttonLocation = colorChooserButton.mapPointToAncestor(display, 0, 0);

                    Dimensions displaySize = display.getSize();

                    colorChooserPopup.setPreferredSize(-1, -1);
                    Dimensions popupSize = colorChooserPopup.getPreferredSize();
View Full Code Here

Examples of org.apache.pivot.wtk.Frame.mapPointToAncestor()

        if (Mouse.getCapturer() == component) {
            Frame frame = (Frame)getComponent();
            Display display = frame.getDisplay();

            Point location = frame.mapPointToAncestor(display, x, y);

            // Pretend that the mouse can't move off screen (off the display)
            location = new Point(Math.min(Math.max(location.x, 0), display.getWidth() - 1),
                Math.min(Math.max(location.y, 0), display.getHeight() - 1));
View Full Code Here

Examples of org.apache.pivot.wtk.Frame.mapPointToAncestor()

        if (Mouse.getCapturer() == component) {
            Frame frame = (Frame)getComponent();
            Display display = frame.getDisplay();

            Point location = frame.mapPointToAncestor(display, x, y);

            // Pretend that the mouse can't move off screen (off the display)
            location = new Point(Math.min(Math.max(location.x, 0), display.getWidth() - 1),
                Math.min(Math.max(location.y, 0), display.getHeight() - 1));
View Full Code Here

Examples of org.apache.pivot.wtk.Frame.mapPointToAncestor()

        if (Mouse.getCapturer() == component) {
            Frame frame = (Frame)getComponent();
            Display display = frame.getDisplay();

            Point location = frame.mapPointToAncestor(display, x, y);

            // Pretend that the mouse can't move off screen (off the display)
            location = new Point(Math.min(Math.max(location.x, 0), display.getWidth() - 1),
                Math.min(Math.max(location.y, 0), display.getHeight() - 1));
View Full Code Here

Examples of org.apache.pivot.wtk.Frame.mapPointToAncestor()

        if (Mouse.getCapturer() == component) {
            Frame frame = (Frame)getComponent();
            Display display = frame.getDisplay();

            Point location = frame.mapPointToAncestor(display, x, y);

            // Pretend that the mouse can't move off screen (off the display)
            location = new Point(Math.min(Math.max(location.x, 0), display.getWidth() - 1),
                Math.min(Math.max(location.y, 0), display.getHeight() - 1));
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.