Package org.mt4j.input.gestureAction

Examples of org.mt4j.input.gestureAction.DefaultButtonClickAction


    IFont font = FontManager.getInstance().createFont(mtApplication, "SansSerif", 16, MTColor.WHITE, MTColor.WHITE, false);
   
    //New Puzzle button
    MTRoundRectangle r = getRoundRectWithText(0, 0, 120, 35, "New Puzzle", font);
    r.registerInputProcessor(new TapProcessor(getMTApplication()));
    r.addGestureListener(TapProcessor.class, new DefaultButtonClickAction(r));
    r.addGestureListener(TapProcessor.class, new IGestureEventListener() {
      public boolean processGestureEvent(MTGestureEvent ge) {
        TapEvent te = (TapEvent)ge;
        if (te.isTapped()){
          if (list.isVisible()){
View Full Code Here


    this.setBoundsBehaviour(AbstractShape.BOUNDS_ONLY_CHECK);
   
    //Make clickable
    this.setGestureAllowance(TapProcessor.class, true);
    this.registerInputProcessor(new TapProcessor(pApplet));
    this.addGestureListener(TapProcessor.class, new DefaultButtonClickAction(this));
   
    //Draw this component and its children above
    //everything previously drawn and avoid z-fighting
    this.setDepthBufferDisabled(true);
  }
View Full Code Here

TOP

Related Classes of org.mt4j.input.gestureAction.DefaultButtonClickAction

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.