Package org.mt4j.components.visibleComponents.shapes

Examples of org.mt4j.components.visibleComponents.shapes.MTRectangle.sendToFront()


        //Test sendToFront()
        rect1.sendToFront();
        assertEquals(getCanvas().pick(50, 50).getNearestPickResult(), rect1);
        rect2.sendToFront();
        assertEquals(getCanvas().pick(50, 50).getNearestPickResult(), rect2);
        rect3.sendToFront();
        assertEquals(getCanvas().pick(50, 50).getNearestPickResult(), rect3);
       
        //Test when translated Z
        rect3.translate(new Vector3D(0,0,-0.5f));
        assertEquals(getCanvas().pick(50, 50).getNearestPickResult(), rect2);
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.