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

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


            style.setProperty(CSS.POSITION, CSS.FIXED);
            style.setProperty(CSS.Z_INDEX, Integer.toString(HIDDEN_Z_INDEX));
            rootPanel.add(effectPanel);
        }

        DefaultSize size = new DefaultSize(containerPanel.getOffsetWidth(),
                containerPanel.getOffsetHeight());

        if (!attached) {
            rootPanel.remove(effectPanel);
        }
View Full Code Here


    public DefaultSize getSize() {
        rootElement.appendChild(estimatorElement);
        int width = estimatorElement.getOffsetWidth();
        int height = estimatorElement.getOffsetHeight();
        rootElement.removeChild(estimatorElement);
        return new DefaultSize(width, height);
    }
View Full Code Here

    @Override
    public Size getDisplayArea() {
        Widget displayWidget = graphDisplay.asWidget();
        int height = displayWidget.getOffsetHeight();
        int width = displayWidget.getOffsetWidth();
        return new DefaultSize(width, height);
    }
View Full Code Here

     *
     * @see http://help.dottoro.com/ljvmcrrn.php
     */
    public static Size getBoundingClientSize(Element element) {
        JsRect rect = jsGetBoundingClientRect(element);
        return new DefaultSize(rect.getRight() - rect.getLeft(),
                rect.getBottom() - rect.getTop());
    }
View Full Code Here

TOP

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

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.