Package tripleplay.ui.util

Examples of tripleplay.ui.util.Insets.width()


    protected Rectangle getNativeFieldBounds () {
        Insets insets = resolveStyle(Style.BACKGROUND).insets;
        Point screenCoords = Layer.Util.layerToScreen(layer, insets.left(), insets.top());
        return new Rectangle(screenCoords.x, screenCoords.y,
                             _size.width - insets.width(), _size.height - insets.height());
    }

    protected void updateMode (boolean nativeField) {
        if (!hasNative()) return;
        if (nativeField) {
View Full Code Here


     * direction to the specified height.
     */
    protected Dimension computeSize (float hintX, float hintY) {
        LayoutData ldata = _ldata = createLayoutData(hintX, hintY);
        Insets insets = ldata.bg.insets;
        Dimension size = ldata.computeSize(hintX - insets.width(), hintY - insets.height());
        return insets.addTo(size);
    }

    /**
     * Handles common element layout (background), then calls {@link LayoutData#layout} to do the
View Full Code Here

        }

        // do our actual layout
        Insets insets = ldata.bg.insets;
        ldata.layout(insets.left(), insets.top(),
                     width - insets.width(), height - insets.height());

        // finally clear our cached layout data
        clearLayoutData();
    }
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.