File selection method and terminal
First Claim
Patent Images
1. A file selection method, applied to a terminal with a touchscreen, comprising:
- obtaining, by the terminal, a touch track of a user on the terminal;
determining, by the terminal, that an area bounded by the track is a selection area when a distance between a starting point of the track and an ending point of the track is less than or equal to a set distance, wherein the starting point is different than the ending point;
selecting, by the terminal according to the selection area determined, a file within the selection area, wherein the selecting comprises selecting, by the terminal according to the determined selection area, a file of which center coordinates are located within the selection area;
determining, by the terminal, one of;
a first intersection of a ray that extends from center coordinates of a target file on the touchscreen along a direction parallel to a horizontal axis on the touchscreen and an edge of the selection area on the touchscreen, wherein a horizontal coordinate of one of two points on the edge of the area, which are adjacent to the first intersection, is greater than a horizontal coordinate of the first intersection, and wherein a horizontal coordinate of the other point is less than the horizontal coordinate of the first intersection; and
a second intersection of a ray that extends from center coordinates of at least one file on the touchscreen along direction perpendicular to a horizontal axis on the touchscreen and an edge of the selection area on the touchscreen, wherein a vertical coordinate of one of two points on the edge of the area, which are adjacent to the second intersection, is greater than a vertical coordinate of the second intersection, and wherein a vertical coordinate of the other point is less than the vertical coordinate of the second intersection; and
skipping, by the terminal, selecting the target file when the terminal determines that the number of the first intersections or the second intersections is an even number, and selecting, by the terminal, the target file when the terminal determines that the number of the first intersections or the second intersections is an odd number.
3 Assignments
0 Petitions
Accused Products
Abstract
A file selection method and a terminal are disclosed. The file selection method, applied to a terminal with a touchscreen, includes obtaining, by the terminal, a touch track of a user on the terminal, determining, by the terminal, that an area bounded by the track is a selection area when a distance between a starting point of the track and an ending point of the track is less than or equal to a set distance, and selecting, by the terminal according to the determined selection area, a file within the selection area.
5 Citations
12 Claims
-
1. A file selection method, applied to a terminal with a touchscreen, comprising:
-
obtaining, by the terminal, a touch track of a user on the terminal; determining, by the terminal, that an area bounded by the track is a selection area when a distance between a starting point of the track and an ending point of the track is less than or equal to a set distance, wherein the starting point is different than the ending point; selecting, by the terminal according to the selection area determined, a file within the selection area, wherein the selecting comprises selecting, by the terminal according to the determined selection area, a file of which center coordinates are located within the selection area; determining, by the terminal, one of; a first intersection of a ray that extends from center coordinates of a target file on the touchscreen along a direction parallel to a horizontal axis on the touchscreen and an edge of the selection area on the touchscreen, wherein a horizontal coordinate of one of two points on the edge of the area, which are adjacent to the first intersection, is greater than a horizontal coordinate of the first intersection, and wherein a horizontal coordinate of the other point is less than the horizontal coordinate of the first intersection; and a second intersection of a ray that extends from center coordinates of at least one file on the touchscreen along direction perpendicular to a horizontal axis on the touchscreen and an edge of the selection area on the touchscreen, wherein a vertical coordinate of one of two points on the edge of the area, which are adjacent to the second intersection, is greater than a vertical coordinate of the second intersection, and wherein a vertical coordinate of the other point is less than the vertical coordinate of the second intersection; and skipping, by the terminal, selecting the target file when the terminal determines that the number of the first intersections or the second intersections is an even number, and selecting, by the terminal, the target file when the terminal determines that the number of the first intersections or the second intersections is an odd number. - View Dependent Claims (2, 3, 4)
-
-
5. A terminal, comprising:
-
an input unit configured to obtain a touch track of a user on the terminal; and a processor configured to perform comparison for the track obtained by the input unit, wherein the processor; determines that an area bounded by the track is a selection area when a distance between a starting point of the track and an ending point of the track is less than or equal to a set distance, wherein the starting point is different than the ending point; selects, according to the selection area determined by the processor, a file within the selection area and having a center coordinate located within the selection area; determines one of; a first intersection of a ray that extends from center coordinates of a target file on the touchscreen along a direction parallel to a horizontal axis on the touchscreen and an edge of the selection area on the touchscreen, wherein a horizontal coordinate of one of two points on the edge of the area, which are adjacent to the first intersection, is greater than a horizontal coordinate of the first intersection, and wherein a horizontal coordinate of the other point is less than the horizontal coordinate of the first intersection, and a second intersection of a ray that extends from center coordinates of at least one file on the touchscreen along a direction perpendicular to a horizontal axis on the touchscreen and an edge of the selection area on the touchscreen, wherein a vertical coordinate of one of two points on the edge of the area, which are adjacent to the second intersection, is greater than a vertical coordinate of the second intersection, and wherein a vertical coordinate of the other point is less than the vertical coordinate of the second intersection, and skips selecting the target file when the processor determines that the number of the first intersections or the second intersections is an even number, and the processor selects the target file when the processor determines that the number of the first intersections or the second intersections is an odd number. - View Dependent Claims (6, 7, 8)
-
-
9. A terminal, comprising:
-
a detecting module configured to obtain a touch track of a user on the terminal; a determining module configured to determine a selection area according to a distance between a starting point of the track and an ending point of the track, wherein the starting point is different than the ending point, and wherein the determining module determines that an area bounded by the track is the selection area when the distance between the starting point of the track and the ending point of the track is less than or equal to a set distance; and a selecting module configured to; select, according to the selection area determined by the determining module, a file within the selection area and having center coordinates are located within the selection area; determine one of; a first intersection of a ray that extends from center coordinates of a target file on the touchscreen along a direction parallel to a horizontal axis on the touchscreen and an edge of the selection area on the touchscreen, wherein a horizontal coordinate of one of two points on the edge of the area, which are adjacent to the first intersection, is greater than a horizontal coordinate of the first intersection, and wherein a horizontal coordinate of the other point is less than the horizontal coordinate of the first intersection; and a second intersection of a ray that extends from center coordinates of at least one file on the touchscreen along a direction perpendicular to a horizontal axis on the touchscreen and an edge of the selection area on the touchscreen, wherein a vertical coordinate of one of two points on the edge of the area, which are adjacent to the second intersection, is greater than a vertical coordinate of the second intersection, and wherein a vertical coordinate of the other point is less than the vertical coordinate of the second intersection; skip selecting the target file when the selecting module determines that the number of the first intersections or the second intersections is an even number; and select the target file when the selecting module determines that the number of the first intersections or the second intersections is an odd number. - View Dependent Claims (10, 11, 12)
-
Specification