×

File selection method and terminal

  • US 9,507,451 B2
  • Filed: 11/07/2014
  • Issued: 11/29/2016
  • Est. Priority Date: 10/30/2012
  • Status: Active Grant
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.

View all claims
  • 3 Assignments
Timeline View
Assignment View
    ×
    ×