Examples of convertSceneToView()


Examples of org.netbeans.api.visual.widget.Scene.convertSceneToView()

        if (event.isPopupTrigger()) {
            JPopupMenu popupMenu = provider.getPopupMenu(widget, event
                    .getPoint());
            if (popupMenu != null) {
                Scene scene = widget.getScene();
                Point point = scene.convertSceneToView(widget
                        .convertLocalToScene(event.getPoint()));
                popupMenu.show(scene.getView(), point.x, point.y);
            }
            return State.CONSUMED;
        }
View Full Code Here

Examples of org.netbeans.api.visual.widget.Scene.convertSceneToView()

    public State mouseWheelMoved(Widget widget, WidgetMouseWheelEvent event) {
        final Scene scene = widget.getScene();
        int amount = event.getWheelRotation();
        JScrollPane scrollPane = findScrollPane(scene.getView());
        Point viewPosition = null;
        Point mouseLocation = scene.convertSceneToView(event.getPoint());
        int xOffset = 0;
        int yOffset = 0;
        Point oldViewPosition = null;
        Rectangle bounds = new Rectangle(scene.getBounds());
        Dimension componentSize = new Dimension(scene.getView().getPreferredSize());
View Full Code Here

Examples of org.netbeans.api.visual.widget.Scene.convertSceneToView()

    public State mouseWheelMoved(Widget widget, WidgetMouseWheelEvent event) {
        final Scene scene = widget.getScene();
        int amount = event.getWheelRotation();
        JScrollPane scrollPane = findScrollPane(scene.getView());
        Point viewPosition = null;
        Point mouseLocation = scene.convertSceneToView(event.getPoint());
        int xOffset = 0;
        int yOffset = 0;
        Rectangle bounds = new Rectangle(scene.getBounds());
        Dimension componentSize = new Dimension(scene.getView().getPreferredSize());
        if (scrollPane != null) {
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.