Package org.thechiselgroup.choosel.core.client.geometry

Examples of org.thechiselgroup.choosel.core.client.geometry.Point


        this.hideDelay = delay;
    }

    protected void setOpacity(int opacity) {
        if (popup.getOpacity() == Opacity.TRANSPARENT) {
            popup.setLocation(new Point(clientX + POPUP_OFFSET_X, clientY
                    + POPUP_OFFSET_Y));
        }

        popup.setOpacity(opacity);
    }
View Full Code Here


            return;
        }

        assert animate;

        Point location = getLocation();

        Move move = new Move(x - location.getX(), y - location.getY()) {
            @Override
            public void tearDownEffect() {
                /*
                 * do not super.tearDownEffects as this resets to original state
                 * reset root panel position as this is affected by move
View Full Code Here

                POPUP_SHOW_DELAY, POPUP_HIDE_DELAY, popup) {

            @Override
            protected void updatePosition() {
                getPopup().setLocation(
                        new Point(context.mouseX + POPUP_X_OFFSET,
                                context.mouseY + POPUP_Y_OFFSET));
            }
        };

        HTML widget = new HTML(message);
View Full Code Here

        int x = calculate(windowWidth, desktop.getWidth(), horizontalSteps);
        int y = calculate(windowHeight, desktop.getHeight(), verticalSteps);

        invocationCounter++;

        return new Point(x, y);
    }
View Full Code Here

    public void performUndo() {
        windowPanel.setLocation(sourceX, sourceY, animate);
    }
   
    public Point getSourceLocation() {
      return new Point(sourceX, sourceY);
    }
View Full Code Here

    public Point getSourceLocation() {
      return new Point(sourceX, sourceY);
    }
   
    public Point getTargetLocation() {
      return new Point(targetX, targetY);
    }
View Full Code Here

    @Override
    public WindowPanel createWindow(WindowContent content) {
        content.init();

        // FIXME better prediction of window size
        Point point = positionManager.getNextLocation(500, 400);

        WindowPanel window = createWindow(content.getLabel(),
                content instanceof ViewWindowContent, content.asWidget(),
                point.getX(), point.getY());

        window.setViewContent(content);

        return window;
    }
View Full Code Here

    @Override
    public Point getLocation(WindowPanel window) {
        // TODO inline calculations
        WidgetLocation location = new WidgetLocation(window, boundaryPanel);
        return new Point(location.getLeft(), location.getTop());
    }
View Full Code Here

            }
            if (deltaY != 0) {
                deltaY += targetHeight - getHeight();
            }

            Point location = callback.getLocation();
            callback.setLocation(location.getX() + deltaX, location.getY() + deltaY);
        }
    }
View Full Code Here

        this.hideDelay = delay;
    }

    protected void setOpacity(int opacity) {
        if (popup.getOpacity() == Opacity.TRANSPARENT) {
            popup.setLocation(new Point(clientX + POPUP_OFFSET_X, clientY
                    + POPUP_OFFSET_Y));
        }

        popup.setOpacity(opacity);
    }
View Full Code Here

TOP

Related Classes of org.thechiselgroup.choosel.core.client.geometry.Point

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.