Package org.mt4j.input.gestureAction

Examples of org.mt4j.input.gestureAction.DefaultPanAction


    lassoProcessor  = new LassoProcessor(app, this.getCanvas(), this.getSceneCam());
    this.getCanvas().registerInputProcessor(lassoProcessor);
    this.getCanvas().addGestureListener(LassoProcessor.class, new DefaultLassoAction(app, this.getCanvas().getClusterManager(), this.getCanvas()));
   
    this.getCanvas().registerInputProcessor(new PanProcessorTwoFingers(app));
    this.getCanvas().addGestureListener(PanProcessorTwoFingers.class, new DefaultPanAction());

    this.getCanvas().registerInputProcessor(new ZoomProcessor(app));
    this.getCanvas().addGestureListener(ZoomProcessor.class, new DefaultZoomAction());
   
    pictureLayer = new MTComponent(app);
View Full Code Here


    backgroundPan.setText("Pan anywhere on the background!");
    backgroundPan.setPickable(false);
    this.getCanvas().addChild(backgroundPan);
    backgroundPan.setPositionGlobal(new Vector3D(app.width/2f, app.height/2f + 1*verticalPad,0));
    getCanvas().registerInputProcessor(new PanProcessorTwoFingers(app));
    getCanvas().addGestureListener(PanProcessorTwoFingers.class, new DefaultPanAction());
   
    //Add component multi-touch gestures
    MTTextArea dragOnly = new MTTextArea(mtApplication, font);
    dragOnly.setFillColor(textAreaColor);
    dragOnly.setStrokeColor(textAreaColor);
View Full Code Here

TOP

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

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.