Package com.google.gwt.touch.client.TouchScroller

Examples of com.google.gwt.touch.client.TouchScroller.TemporalPoint


    return "com.google.gwt.touch.Touch";
  }

  public void testCalculateEndVlocity() {
    // Two points at the same time should return null.
    TemporalPoint from = new TemporalPoint(new Point(100.0, 200.0), 0);
    TemporalPoint sameTime = new TemporalPoint(new Point(100.0, 100.0), 0);
    assertNull(scroller.calculateEndVelocity(from, sameTime));

    // Two different points should return a velocity.
    TemporalPoint to = new TemporalPoint(new Point(250.0, 150.0), 25);
    assertEquals(new Point(-6.0, 2.0), scroller.calculateEndVelocity(from, to));
  }
View Full Code Here

TOP

Related Classes of com.google.gwt.touch.client.TouchScroller.TemporalPoint

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.