Package com.eagerlogic.cubee.client.utils

Examples of com.eagerlogic.cubee.client.utils.Rectangle


    public Rectangle animate(double pos, Rectangle startValue, Rectangle endValue) {
        if (startValue == endValue) {
            return startValue;
        }
        if (startValue == null) {
            startValue = new Rectangle(0, 0, 1000, 1000);
        }
        if (endValue == null) {
            endValue = new Rectangle(0, 0, 1000, 1000);
        }

        return new Rectangle(animateInt(startValue.getX(), endValue.getX(), pos),
                animateInt(startValue.getY(), endValue.getY(), pos),
                animateInt(startValue.getWidth(), endValue.getWidth(), pos),
                animateInt(startValue.getHeight(), endValue.getHeight(), pos)
        );
    }
View Full Code Here

TOP

Related Classes of com.eagerlogic.cubee.client.utils.Rectangle

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.