Package org.mt4j.input.inputProcessors.componentProcessors.dragProcessor

Examples of org.mt4j.input.inputProcessors.componentProcessors.dragProcessor.DragProcessor


      this.registerInputProcessor(new ScaleProcessor(this.getRenderer()));
      this.setGestureAllowance(ScaleProcessor.class, true);
//      this.addGestureListener(ScaleProcessor.class, defaultScaleAction);
      this.addGestureListener(ScaleProcessor.class, new DefaultScaleAction());
     
      this.registerInputProcessor(new DragProcessor(this.getRenderer()));
      this.setGestureAllowance(DragProcessor.class, true);
//      this.addGestureListener(DragProcessor.class, defaultDragAction);
      this.addGestureListener(DragProcessor.class, new DefaultDragAction());
    }
//    */
 
View Full Code Here


    }
   
    AbstractShape menuShape = this;
    menuShape.unregisterAllInputProcessors();
    menuShape.removeAllGestureEventListeners(DragProcessor.class);
    menuShape.registerInputProcessor(new DragProcessor(app));
   
    float buttonWidth = 80;
    float buttonHeight = 80;
    final float buttonOpacity = 170;
   
View Full Code Here

    super(applet);
   
    this.setName("SVG: " + fileName);
    this.setComposite(true);
   
    this.registerInputProcessor(new DragProcessor(applet));
    this.addGestureListener(DragProcessor.class, new DefaultDragAction());
    this.registerInputProcessor(new RotateProcessor(applet));
    this.addGestureListener(RotateProcessor.class, new DefaultRotateAction());
    this.registerInputProcessor(new ScaleProcessor(applet));
    this.addGestureListener(ScaleProcessor.class, new DefaultScaleAction());
View Full Code Here

    this.setBoundsBehaviour(AbstractShape.BOUNDS_ONLY_CHECK);
  }

  @Override
  protected void setDefaultGestureActions() {
    this.registerInputProcessor(new DragProcessor(this.getRenderer()));
    this.addGestureListener(DragProcessor.class, new DefaultDragAction());
   
    this.registerInputProcessor(new RotateProcessor(this.getRenderer()));
    this.addGestureListener(RotateProcessor.class, new DefaultRotateAction());
  }
View Full Code Here

TOP

Related Classes of org.mt4j.input.inputProcessors.componentProcessors.dragProcessor.DragProcessor

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.