/* (non-Javadoc)
* @see com.jMT.input.gestureAction.IGestureAction#processGesture(com.jMT.input.inputAnalyzers.GestureEvent)
*/
public boolean processGestureEvent(MTGestureEvent g) {
if (g instanceof RotateEvent){
RotateEvent rotateEvent = (RotateEvent)g;
if (!useCustomTarget)
target = rotateEvent.getTargetComponent();
switch (rotateEvent.getId()) {
case MTGestureEvent.GESTURE_DETECTED:
if (target instanceof MTComponent){
((MTComponent)target).sendToFront();
/*
Animation[] animations = AnimationManager.getInstance().getAnimationsForTarget(target);
for (int i = 0; i < animations.length; i++) {
Animation animation = animations[i];
animation.stop();
}
*/
}
break;
case MTGestureEvent.GESTURE_UPDATED:
target.rotateZGlobal(rotateEvent.getRotationPoint(), rotateEvent.getRotationDegrees());
if (target.isGestureAllowed(DragProcessor.class))
target.translateGlobal(rotateEvent.getTranslationVector());
break;
case MTGestureEvent.GESTURE_ENDED:
break;
default:
break;