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

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


     
//      this.registerInputProcessor(new DragProcessor(app));
      this.removeAllGestureEventListeners(DragProcessor.class);
      this.addGestureListener(DragProcessor.class, new IGestureEventListener() {
      public boolean processGestureEvent(MTGestureEvent ge) {
        DragEvent de = (DragEvent)ge;
       
        Vector3D hitPointLocal = getIntersectionLocal(globalToLocal(Tools3D.getCameraPickRay(app, MTColorPicker.this, de.getDragCursor().getCurrentEvtPosX(), de.getDragCursor().getCurrentEvtPosY())));
        if (hitPointLocal != null){
//           int col = cpImage.get( (int)hitPointLocal.x, (int)hitPointLocal.y );
          int col = cpImage.get( (int)hitPointLocal.x - x, (int)hitPointLocal.y -y);
           float r = app.red(col);
           float g = app.green(col);
View Full Code Here


        slider.getOuterShape().setStrokeColor(new MTColor(0, 0, 0, 80));
        slider.getKnob().setFillColor(new MTColor(100, 100, 100, 80));
        slider.getOuterShape().setStrokeColor(new MTColor(100, 100, 100, 80));
        slider.getKnob().addGestureListener(DragProcessor.class, new IGestureEventListener() {
          public boolean processGestureEvent(MTGestureEvent ge) {
            DragEvent de = (DragEvent)ge;
            switch (de.getId()) {
            case MTGestureEvent.GESTURE_DETECTED:
              stopSliderAdvance = true;
              break;
            case MTGestureEvent.GESTURE_UPDATED:
              break;
View Full Code Here

TOP

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

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.