Examples of RotateEvent


Examples of com.google.code.or.binlog.impl.event.RotateEvent

        return;
      }
    }
    else if (event instanceof RotateEvent)
    {
      RotateEvent re = (RotateEvent)event;
      String fileName = re.getBinlogFileName().toString();
      _log.info("File Rotated : FileName :" + fileName + ", _binlogFilePrefix :" + _binlogFilePrefix);
      String fileNumStr = fileName.substring(fileName.lastIndexOf(_binlogFilePrefix) + _binlogFilePrefix.length() + 1);
      _currFileNum = Integer.parseInt(fileNumStr);
    }
    else if (event instanceof XidEvent)
View Full Code Here

Examples of com.google.code.or.binlog.impl.event.RotateEvent

  /**
   *
   */
  public void parse(XInputStream is, BinlogEventV4Header header, BinlogParserContext context)
  throws IOException {
    final RotateEvent event = new RotateEvent(header);
    event.setBinlogPosition(is.readLong(8));
    event.setBinlogFileName(is.readFixedLengthString(is.available()));
    context.getEventListener().onEvents(event);
  }
View Full Code Here

Examples of com.google.code.or.binlog.impl.event.RotateEvent

      //
      if(event instanceof TableMapEvent) {
        final TableMapEvent tme = (TableMapEvent)event;
        this.tableMapEvents.put(tme.getTableId(), tme);
      } else if(event instanceof RotateEvent) {
        final RotateEvent re = (RotateEvent)event;
        this.binlogFileName = re.getBinlogFileName().toString();
        if(isClearTableMapEventsOnRotate()) this.tableMapEvents.clear();
      }
     
      //
      try {
View Full Code Here

Examples of com.sparshui.common.messages.events.RotateEvent

    switch (_myType) {
    case ActionManagerMT.ZOOM_GESTURE:
      event = new ZoomEvent(_scale, location, time);
      break;
    case ActionManagerMT.ROTATE_GESTURE:
      event = new RotateEvent(_rotation, location, time);
      break;
    case ActionManagerMT.MULTI_POINT_DRAG_GESTURE:
      if (locationLast != null) {
        Vector3f dxy = locationLast.getVector(location);
        event = new DragEvent(dxy.x, dxy.y, 2, time);
View Full Code Here

Examples of gwlpr.mapshard.entitysystem.events.RotateEvent

       
        float rot1 = Float.intBitsToFloat((int)action.getRotation1());
        float rot2 = Float.intBitsToFloat((int)action.getRotation2());

        // send internal event
        aggregator.triggerEvent(new RotateEvent(client.getEntity(), rot1, rot2));
    }
View Full Code Here

Examples of org.mt4j.input.inputProcessors.componentProcessors.rotateProcessor.RotateEvent

  /* (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;
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.