Package tripleplay.ui.util

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


        }
    }

    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) {
View Full Code Here


            bginst.addTo(layer, 0, 0, 0);
        }

        // 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

            // create and save off the instance so we can destroy it later
            instances[ii] = instantiate(bg, current.subtractFrom(new Dimension(size)));

            // add to our composite layer and translate the layers added
            instances[ii].addTo(layer, current.left(), current.top(), 0);

            // adjust the bounds
            current = current.mutable().add(bg.insets);
        }
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.