Package org.mt4j.components.visibleComponents.widgets

Examples of org.mt4j.components.visibleComponents.widgets.MTTextArea.transform()


                    //Add the textarea to the set parent
                    if (getParentToAddNewTextAreaTo() != null){
                      //Transform the textarea so it appears at the same world coords after its added to another parent
                      Matrix m = MTComponent.getTransformToDestinationParentSpace(ta, getParentToAddNewTextAreaTo());
                      ta.transform(m);
                      //Transform the direction vector for the translation animation
                      //to preserve the direction from the old reference frame to the new parents one
//                      v.transformNormal(m);
                      v.transformDirectionVector(m);
View Full Code Here


                      //If that isnt set, try to add it to the keyboards parent
                      if (getParent() != null){
                        /////////////////////////
                        // Transform the textarea so it appears at the same place after its added to another parent
                        Matrix m = MTComponent.getTransformToDestinationParentSpace(ta, getParent());
                        ta.transform(m);
                        //Transform the direction vector to preserve the global direction
                        //from the old reference frame to the new parents one
                        //The translation part has to be removed from the matrix because we're transforming
                        //a translation vector not a point vector
                        v.transformDirectionVector(m);
View Full Code Here

//            text.assignGestureClassAndAction(DragGestureAnalyzer.class, defaultDragAction);
           
//            /*
            //Add the textare to the set parent
            if (getParentToAddNewTextAreaTo() != null){
              text.transform(MTComponent.getTransformToDestinationParentSpace(text, getParentToAddNewTextAreaTo()));
              getParentToAddNewTextAreaTo().addChild(text);
            }else{
              //If that isnt set, try to add it to the keyboards parent
              if (getParent() != null){
                text.transform(MTComponent.getTransformToDestinationParentSpace(text, getParent()));
View Full Code Here

              text.transform(MTComponent.getTransformToDestinationParentSpace(text, getParentToAddNewTextAreaTo()));
              getParentToAddNewTextAreaTo().addChild(text);
            }else{
              //If that isnt set, try to add it to the keyboards parent
              if (getParent() != null){
                text.transform(MTComponent.getTransformToDestinationParentSpace(text, getParent()));
                getParent().addChild(text);
              }else{
                //do nothing..
//                throw new RuntimeException("Dont know where to add text area to!");
                System.err.println("Dont know where to add text area to!");
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.