Package org.mt4j.components

Examples of org.mt4j.components.MTComponent.sendToFront()


    }
   
    for (int i = 0; i < this.getChildren().length; i++) {
      MTComponent childComp = this.getChildren()[i];
      if (!childComp.equals(this.getClusterPolygon()))
        childComp.sendToFront();
    }
  }

  @Override
  public void addChild(int i, MTComponent tangibleComp) {
View Full Code Here


        switch (clickEvent.getId()) {
        case MTGestureEvent.GESTURE_DETECTED:
//          if (comp.isGestureAllowed(TapAnalyzer.class)
//            && comp.isVisible()
//          ){
            comp.sendToFront();
//            if ( ((TapEvent)g).getId() == TapEvent.BUTTON_DOWN){
            if ( ((TapEvent)g).getTapID() == TapEvent.BUTTON_DOWN){
             
              //Resize button
//              getCompToResize().setSizeLocal(width-5, width-5);
View Full Code Here

      case MTGestureEvent.GESTURE_DETECTED:
        //Put target on top -> draw on top of others
        if (dragTarget instanceof MTComponent){
          MTComponent baseComp = (MTComponent)dragTarget;
         
          baseComp.sendToFront();
         
          /*
          //End all animations of the target
          Animation[] animations = AnimationManager.getInstance().getAnimationsForTarget(dragTarget);
          for (int i = 0; i < animations.length; i++) {
View Full Code Here

            //System.out.println("MouseJoint To: " + to);
            long cursorID =  de.getDragCursor().getId();

            switch (de.getId()) {
            case DragEvent.GESTURE_DETECTED:
              comp.sendToFront();
              body.wakeUp();
              mouseJoint = createDragJoint(theWorld, body, to.x, to.y);
              comp.setUserData("mouseJoint" + cursorID, mouseJoint);
              break;
            case DragEvent.GESTURE_UPDATED:
View Full Code Here

            body.setXForm(
                new Vec2(body.getPosition().x + dir.x, body.getPosition().y + dir.y),
                body.getAngle());
            switch (de.getId()) {
            case DragEvent.GESTURE_DETECTED:
              comp.sendToFront();
              body.wakeUp();
              break;
            case DragEvent.GESTURE_UPDATED:
            case DragEvent.GESTURE_ENDED:
            default:
View Full Code Here

        assertEquals("parent Childcount == created children number", numChildren, parent.getChildCount());

        MTComponent first = parent.getChildByIndex(0);
        //parent.sendChildToFront(first);
        first.sendToFront();
        MTComponent last = parent.getChildByIndex(parent.getChildCount()-1);
        assertEquals("Sent first to front (last) - is it there now?" , first, last);

       
        int id = first.getID();
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.