public interface IMobileGestures
Modifier and Type | Method and Description |
---|---|
void |
drag(Point start,
Point end)
Performs a drag operation between the two specified points.
|
void |
multiTouch(List<List<Point>> pointers)
Performs a multi-touch operation with the given pointers.
|
void |
pinchIn()
Performs a two-pointer gesture, where each pointer moves toward the other, from the edges to the center of this object.
|
void |
pinchIn(int percent)
Performs a two-pointer gesture, where each pointer moves toward the other, from the edges to the center of this object.
|
void |
pinchOut()
Performs a two-pointer gesture, where each pointer moves opposite across the other, from the center out towards the edges of the this object.
|
void |
pinchOut(int percent)
Performs a two-pointer gesture, where each pointer moves opposite across the other, from the center out towards the edges of the this object.
|
void |
swipe(Point start,
Point end)
Performs a swipe between the two specified points.
|
void |
swipe(Point start,
Point end,
int steps)
Performs a swipe between the two specified points.
|
void |
swipe(Point start,
Point end,
int steps,
int delayBetweenSteps)
Performs a swipe between the two specified points.
|
void |
swipeDown()
Performs a down-swipe.
|
void |
swipeDown(int steps)
Performs a down-swipe.
|
void |
swipeDown(int steps,
int delayBetweenSteps)
Performs a down-swipe.
|
void |
swipeLeft()
Performs a left-swipe.
|
void |
swipeLeft(int steps)
Performs a left-swipe.
|
void |
swipeLeft(int steps,
int delayBetweenSteps)
Performs a left-swipe.
|
void |
swipeRight()
Performs a right-swipe.
|
void |
swipeRight(int steps)
Performs a right-swipe.
|
void |
swipeRight(int steps,
int delayBetweenSteps)
Performs a right-swipe.
|
void |
swipeUp()
Performs a up-swipe.
|
void |
swipeUp(int steps)
Performs a up-swipe.
|
void |
swipeUp(int steps,
int delayBetweenSteps)
Performs a up-swipe.
|
void |
swipeWithSegments(List<Point> segments)
Performs a swipe between the specified points.
|
void |
swipeWithSegments(List<Point> segments,
int steps)
Performs a swipe between the specified points.
|
void |
swipeWithSegments(List<Point> segments,
int steps,
int delayBetweenSteps)
Performs a swipe between the specified points.
|
void |
twoPointerMultiTouch(Point startPointer1,
Point endPointer1,
Point startPointer2,
Point endPointer2)
Performs a multi-touch operation with two pointers.
|
void |
twoPointerMultiTouch(Point startPointer1,
Point endPointer1,
Point startPointer2,
Point endPointer2,
int steps)
Performs a multi-touch operation with two pointers.
|
void |
twoPointerMultiTouch(Point startPointer1,
Point endPointer1,
Point startPointer2,
Point endPointer2,
int steps,
int delayBetweenSteps)
Performs a multi-touch operation with two pointers.
|
void drag(Point start, Point end)
start
- the start point of the drag operationend
- the end point of the drag operationvoid multiTouch(List<List<Point>> pointers)
pointers
- a list of pointers where every pointer contains a list of points describing it's touch pathvoid pinchIn()
void pinchIn(int percent)
percent
- percentage of the object's diagonal length for the pinch gesturevoid pinchOut()
void pinchOut(int percent)
percent
- percentage of the object's diagonal length for the pinch gesturevoid swipe(Point start, Point end)
start
- the start point of the swipeend
- the end point of the swipevoid swipe(Point start, Point end, int steps)
start
- the start point of the swipeend
- the end point of the swipesteps
- the number of steps between the specified points. Increase the amount of steps to increase the duration of the swipe.void swipe(Point start, Point end, int steps, int delayBetweenSteps)
start
- the start point of the swipeend
- the end point of the swipesteps
- the number of steps between the specified points. Increase the amount of steps to increase the duration of the swipe.delayBetweenSteps
- the delay in milliseconds between swipe steps. For example, when scrolling an application with a swipe operation, it depends on the swipe speed how far the application scrolls. Typically a higher delay (e.g. 300 milliseconds) creates more reproducible results.void swipeDown()
void swipeDown(int steps)
steps
- the number of steps for the swipe. Increase the amount of steps to increase the duration of the swipe.void swipeDown(int steps, int delayBetweenSteps)
steps
- the number of steps for the swipe. Increase the amount of steps to increase the duration of the swipe.delayBetweenSteps
- the delay in milliseconds between swipe steps. For example, when scrolling an application with a swipe operation, it depends on the swipe speed how far the application scrolls. Typically a higher delay (e.g. 300 milliseconds) creates more reproducible results.void swipeLeft()
void swipeLeft(int steps)
steps
- the number of steps for the swipe. Increase the amount of steps to increase the duration of the swipe.void swipeLeft(int steps, int delayBetweenSteps)
steps
- the number of steps for the swipe. Increase the amount of steps to increase the duration of the swipe.delayBetweenSteps
- the delay in milliseconds between swipe steps. For example, when scrolling an application with a swipe operation, it depends on the swipe speed how far the application scrolls. Typically a higher delay (e.g. 300 milliseconds) creates more reproducible results.void swipeRight()
void swipeRight(int steps)
steps
- the number of steps for the swipe. Increase the amount of steps to increase the duration of the swipe.void swipeRight(int steps, int delayBetweenSteps)
steps
- the number of steps for the swipe. Increase the amount of steps to increase the duration of the swipe.delayBetweenSteps
- the delay in milliseconds between swipe steps. For example, when scrolling an application with a swipe operation, it depends on the swipe speed how far the application scrolls. Typically a higher delay (e.g. 300 milliseconds) creates more reproducible results.void swipeUp()
void swipeUp(int steps)
steps
- the number of steps for the swipe. Increase the amount of steps to increase the duration of the swipe.void swipeUp(int steps, int delayBetweenSteps)
steps
- the number of steps for the swipe. Increase the amount of steps to increase the duration of the swipe.delayBetweenSteps
- the delay in milliseconds between swipe steps. For example, when scrolling an application with a swipe operation, it depends on the swipe speed how far the application scrolls. Typically a higher delay (e.g. 300 milliseconds) creates more reproducible results.void swipeWithSegments(List<Point> segments)
segments
- the points between to swipevoid swipeWithSegments(List<Point> segments, int steps)
segments
- the points between to swipesteps
- the number of steps for the swipe. Increase the amount of steps to increase the duration of the swipe.void swipeWithSegments(List<Point> segments, int steps, int delayBetweenSteps)
segments
- the points between to swipesteps
- the number of steps for the swipe. Increase the amount of steps to increase the duration of the swipe.delayBetweenSteps
- the delay in milliseconds between swipe steps. For example, when scrolling an application with a swipe operation, it depends on the swipe speed how far the application scrolls. Typically a higher delay (e.g. 300 milliseconds) creates more reproducible results.void twoPointerMultiTouch(Point startPointer1, Point endPointer1, Point startPointer2, Point endPointer2)
startPointer1
- the start point of the first pointerendPointer1
- the end point of the first pointerstartPointer2
- the start point of the second pointerendPointer2
- the end point of the second pointervoid twoPointerMultiTouch(Point startPointer1, Point endPointer1, Point startPointer2, Point endPointer2, int steps)
startPointer1
- the start point of the first pointerendPointer1
- the end point of the first pointerstartPointer2
- the start point of the second pointerendPointer2
- the end point of the second pointersteps
- the number of steps between the specified points. Increase the amount of steps to increase the duration of the drag operation.void twoPointerMultiTouch(Point startPointer1, Point endPointer1, Point startPointer2, Point endPointer2, int steps, int delayBetweenSteps)
startPointer1
- the start point of the first pointerendPointer1
- the end point of the first pointerstartPointer2
- the start point of the second pointerendPointer2
- the end point of the second pointersteps
- the number of steps between the specified points. Increase the amount of steps to increase the duration of the drag operation.delayBetweenSteps
- the delay in milliseconds between swipe steps. For example, when scrolling an application with a swipe operation, it depends on the swipe speed how far the application scrolls. Typically a higher delay (e.g. 300 milliseconds) creates more reproducible results.Copyright 2009-2012 Micro Focus. All Rights Reserved.