Package org.mt4j.components.clusters

Examples of org.mt4j.components.clusters.Cluster.addGestureListener()


          //Add gestures //TODO what about the isRotatable/dragable settings of the childs?
          //TODO What if we want to click a item of the cluster only? ->Maybe cluster should
          //delegate other gestures to the components..
//          cluster.assignGestureClassAndAction(DragGestureAnalyzer.class,    new DefaultDragAction());
          cluster.registerInputProcessor(new DragProcessor(pa));
          cluster.addGestureListener(DragProcessor.class, new DefaultDragAction());
         
          cluster.addGestureListener(DragProcessor.class, new InertiaDragAction());
         
          cluster.registerInputProcessor(new RotateProcessor(pa));
          cluster.addGestureListener(RotateProcessor.class, new DefaultRotateAction());
View Full Code Here


          //delegate other gestures to the components..
//          cluster.assignGestureClassAndAction(DragGestureAnalyzer.class,    new DefaultDragAction());
          cluster.registerInputProcessor(new DragProcessor(pa));
          cluster.addGestureListener(DragProcessor.class, new DefaultDragAction());
         
          cluster.addGestureListener(DragProcessor.class, new InertiaDragAction());
         
          cluster.registerInputProcessor(new RotateProcessor(pa));
          cluster.addGestureListener(RotateProcessor.class, new DefaultRotateAction());
         
          cluster.registerInputProcessor(new ScaleProcessor(pa));
View Full Code Here

          cluster.addGestureListener(DragProcessor.class, new DefaultDragAction());
         
          cluster.addGestureListener(DragProcessor.class, new InertiaDragAction());
         
          cluster.registerInputProcessor(new RotateProcessor(pa));
          cluster.addGestureListener(RotateProcessor.class, new DefaultRotateAction());
         
          cluster.registerInputProcessor(new ScaleProcessor(pa));
          cluster.addGestureListener(ScaleProcessor.class,  new DefaultScaleAction());
         
          dse.getSelectionPoly().setFillColor(new MTColor(100,150,250, 50));
View Full Code Here

         
          cluster.registerInputProcessor(new RotateProcessor(pa));
          cluster.addGestureListener(RotateProcessor.class, new DefaultRotateAction());
         
          cluster.registerInputProcessor(new ScaleProcessor(pa));
          cluster.addGestureListener(ScaleProcessor.class,  new DefaultScaleAction());
         
          dse.getSelectionPoly().setFillColor(new MTColor(100,150,250, 50));
         
          dse.getSelectionPoly().setGestureAllowance(DragProcessor.class, true);
          dse.getSelectionPoly().setGestureAllowance(RotateProcessor.class, true);
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.