Package | Description |
---|---|
com.google.gwt.touch.client |
Modifier and Type | Method and Description |
---|---|
(package private) Point |
TouchScroller.calculateEndVelocity(TouchScroller.TemporalPoint from,
TouchScroller.TemporalPoint to)
Calculate the end velocity.
|
Point |
Point.div(Point c)
Divide this point
Point by specified point and return the result. |
Point |
Momentum.State.getInitialPosition()
Get the initial position when the momentum took over.
|
Point |
Momentum.State.getInitialVelocity()
Get the initial velocity in pixels per millisecond when the momentum took
over.
|
Point |
TouchScroller.TemporalPoint.getPoint() |
Point |
Momentum.State.getPosition()
Get the current position.
|
Point |
Momentum.State.getVelocity()
Get the current velocity in pixels per millisecond.
|
Point |
Point.minus(Point c)
Subtract the specified
Point from this point and return the result. |
Point |
Point.mult(Point c)
Multiple this point
Point by specified point and return the result. |
Point |
Point.plus(Point c)
Add the specified
Point to this point and return the result. |
Modifier and Type | Method and Description |
---|---|
Momentum.State |
Momentum.createState(Point initialPosition,
Point initialVelocity)
Create a
Momentum.State instance. |
Momentum.State |
DefaultMomentum.createState(Point initialPosition,
Point initialVelocity) |
Point |
Point.div(Point c)
Divide this point
Point by specified point and return the result. |
Point |
Point.minus(Point c)
Subtract the specified
Point from this point and return the result. |
Point |
Point.mult(Point c)
Multiple this point
Point by specified point and return the result. |
Point |
Point.plus(Point c)
Add the specified
Point to this point and return the result. |
void |
Momentum.State.setPosition(Point position)
Set the current position.
|
void |
TouchScroller.TemporalPoint.setTemporalPoint(Point point,
double time)
Update the point and time.
|
void |
Momentum.State.setVelocity(Point velocity)
Get the current velocity in pixels per millisecond.
|
Constructor and Description |
---|
Point(Point c) |
State(Point initialPosition,
Point initialVelocity)
Construct a new
Momentum.State . |
TemporalPoint(Point point,
double time)
Construct a new
TouchScroller.TemporalPoint for the specified point and time. |