CN108628816A - Cell choosing method and terminal device - Google Patents

Cell choosing method and terminal device Download PDF

Info

Publication number
CN108628816A
CN108628816A CN201810291950.2A CN201810291950A CN108628816A CN 108628816 A CN108628816 A CN 108628816A CN 201810291950 A CN201810291950 A CN 201810291950A CN 108628816 A CN108628816 A CN 108628816A
Authority
CN
China
Prior art keywords
cell
rectangular area
point
unit lattice
lattice
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810291950.2A
Other languages
Chinese (zh)
Other versions
CN108628816B (en
Inventor
林展新
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Advanced New Technologies Co Ltd
Advantageous New Technologies Co Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201810291950.2A priority Critical patent/CN108628816B/en
Publication of CN108628816A publication Critical patent/CN108628816A/en
Application granted granted Critical
Publication of CN108628816B publication Critical patent/CN108628816B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/177Editing, e.g. inserting or deleting of tables; using ruled lines
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

A kind of cell choosing method of this specification embodiment offer and terminal device.The method includes:In response to detecting the contact on table, the cell of the contact direction is obtained as first unit lattice;In response to the movement of the contact, the cell being currently pointed at that contacts is obtained as second unit lattice;Based on the first unit lattice and the second unit lattice, first position point and second position point are determined;With the diagonal line that the line between the first position point and second position point is the first rectangular area the third place point and the 4th location point are determined when the table includes the cell intersected with first rectangular area;With the diagonal line that the line between the third place point and the 4th location point is the second rectangular area, the cell in second rectangular area is obtained as the cell being selected;Second rectangular area includes and is more than first rectangular area.

Description

Cell choosing method and terminal device
Technical field
This specification embodiment is related to field of computer technology, more particularly to a kind of cell choosing method and terminal are set It is standby.
Background technology
Table, also known as table are a kind of visualization AC mode, and are a kind of means of organization and administration data.People It is widely applied various tables in Communication, scientific research and data analysis activity.In practical applications, User generally requires to choose multiple cells from table, to be operated to the multiple cell.In the related art, When choosing the cell in rectangular area, user usually requires gradually to click each unit lattice in the rectangular area, makes At user's operation, cumbersome and user experience is not high.
Invention content
The purpose of this specification embodiment is to provide a kind of cell choosing method and terminal device, to reduce user behaviour Make, improves user experience.
To achieve the above object, this specification embodiment provides a kind of cell choosing method, including:In response to detecting Contact on table obtains the cell of the contact direction as first unit lattice;In response to the movement of the contact, obtain Take the cell being currently pointed at that contacts as second unit lattice;Based on the first unit lattice and the second unit Lattice determine first position point and second position point;With the line between the first position point and second position point for the The diagonal line of one rectangular area determines third position when the table includes the cell intersected with first rectangular area It sets a little and the 4th location point;With pair that the line between the third place point and the 4th location point is the second rectangular area Linea angulata obtains the cell in second rectangular area as the cell being selected;Second rectangular area include and More than first rectangular area.
To achieve the above object, this specification embodiment provides a kind of terminal device, including:First acquisition unit is used for In response to detecting the contact on table, the cell of the contact direction is obtained as first unit lattice;Second obtains list Member obtains the cell being currently pointed at that contacts as second unit lattice for the movement in response to the contact;First Determination unit determines first position point and second position point for being based on the first unit lattice and the second unit lattice;The Two determination units, for being the diagonal of the first rectangular area with the line between the first position point and second position point Line determines the third place point and the 4th location point when the table includes the cell intersected with first rectangular area; Third acquiring unit, for pair with the line between the third place point and the 4th location point for the second rectangular area Linea angulata obtains the cell in second rectangular area as the cell being selected;Second rectangular area include and More than first rectangular area.
To achieve the above object, this specification embodiment provides a kind of terminal device, including:Memory, based on storing Calculation machine instructs;Processor realizes following steps for executing the computer instruction:In response to detecting connecing on table It touches, obtains the cell of the contact direction as first unit lattice;In response to the movement of the contact, obtains the contact and work as Preceding pointed cell is as second unit lattice;Based on the first unit lattice and the second unit lattice, first is determined It sets a little and second position point;With pair that the line between the first position point and second position point is the first rectangular area Linea angulata determines the third place point and the 4th position when the table includes the cell intersected with first rectangular area Point;With the diagonal line that the line between the third place point and the 4th location point is the second rectangular area, described in acquisition Cell in second rectangular area is as the cell being selected;Second rectangular area includes and is more than first square Shape region.
To achieve the above object, this specification embodiment provides a kind of cell choosing method, including:Obtain origin identification It is identified with terminating;The origin identification and the cell for terminating mark and being respectively used in mark table;Based on described The cell and described terminate that origin identification is identified identify identified cell, determine rectangular area;Obtain the rectangle Cell in region is as the cell being selected.
To achieve the above object, this specification embodiment provides a kind of terminal device, including:First acquisition unit is used for It obtains origin identification and terminates and identify;The origin identification and the unit for terminating mark and being respectively used in mark table Lattice;Determination unit, cell and described terminate for being identified based on the origin identification identify identified cell, really Determine rectangular area;Second acquisition unit, for obtaining the cell in the rectangular area as the cell being selected.
To achieve the above object, this specification embodiment provides a kind of terminal device, including:Memory, based on storing Calculation machine instructs;Processor realizes following steps for executing the computer instruction:It obtains origin identification and terminates and identify;Institute State origin identification and the cell for terminating mark and being respectively used in mark table;It is identified based on the origin identification Cell and described terminate identify identified cell, determine rectangular area;Obtain the cell in the rectangular area As the cell being selected.
The technical solution provided by above this specification embodiment as it can be seen that in this specification embodiment, examining by terminal device Measure the contact on table and it is described contact move after, first unit lattice and second unit can be obtained from table Lattice;The first unit lattice and the second unit lattice can be based on, determine first position point and second position point;In the table Lattice include intersecting for cornerwise first rectangular area with the line between the first position point and second position point Cell when, the third place point and the 4th location point are may further determine that, to extend first rectangular area;It can obtain It takes with the line between the third place point and the 4th location point as the cell in cornerwise second rectangular area As the cell being selected.The cell choosing method of the present embodiment, what the terminal device can be formed by location point Diagonal line come determine user choose cell.User can select without gradually clicking each unit lattice in rectangular area Cell in the rectangular area is taken, to reduce user's operation, improves user experience.
Description of the drawings
In order to illustrate more clearly of this specification embodiment or technical solution in the prior art, below will to embodiment or Attached drawing needed to be used in the description of the prior art is briefly described, it should be apparent that, the accompanying drawings in the following description is only Some embodiments described in this specification, for those of ordinary skill in the art, in not making the creative labor property Under the premise of, other drawings may also be obtained based on these drawings.
Fig. 1 is a kind of flow chart of cell choosing method of this specification embodiment;
Fig. 2 is the flow chart of this specification embodiment another kind cell choosing method;
Fig. 3 is a kind of functional structure chart of terminal device of this specification embodiment;
Fig. 4 is a kind of functional structure chart of terminal device of this specification embodiment;
Fig. 5 is a kind of functional structure chart of terminal device of this specification embodiment;
Fig. 6 a- Fig. 6 d are the schematic diagram of this specification embodiment selection unit lattice;
Fig. 7 a- Fig. 7 b, Fig. 8 a- Fig. 8 b, Fig. 9 a- Fig. 9 b, Figure 10 a- Figure 10 b, Figure 11 a- Figure 11 b, Figure 12 a- Figure 12 b, figure 13a- Figure 13 b, Figure 14 a- Figure 14 b, Figure 15 a- Figure 15 b, Figure 16 a- Figure 16 b be this specification embodiment determine the third place point and The schematic diagram of 4th location point.
Specific implementation mode
Below in conjunction with the attached drawing in this specification embodiment, the technical solution in this specification embodiment is carried out clear Chu is fully described by, it is clear that described embodiment is only this specification a part of the embodiment, rather than whole implementation Example.The embodiment of base in this manual, those of ordinary skill in the art are obtained without creative efforts Every other embodiment, should all belong to this specification protection range.
In this specification embodiment, for ease of description, rectangular area can be located to the side in left side as left side; Rectangular area can be located to the side at top as top sides;Rectangular area can be located to the side on right side as right edge;It can Rectangular area to be located to the side of bottom as bottom sides;It can will be between rectangular area top left corner apex and bottom right angular vertex Line is as leading diagonal;It can be using the line between rectangular area upper right angular vertex and lower-left angular vertex as auxiliary diagonal.
Also referring to Fig. 1, Fig. 6 a, Fig. 6 b, Fig. 6 c and Fig. 6 d.This specification embodiment provides a kind of cell selection side Method, the cell choosing method is using terminal device as executive agent.The terminal device can be movable equipment, such as intelligence It can mobile phone, Flat electronic equipment, portable computer, personal digital assistant (PDA), mobile unit, POS machine or intelligence wearing Equipment etc..Alternatively, the terminal device can also be desk device, such as television set, server, industrial personal computer (Industry Control meter Calculation machine), personal computer (PC machine), all-in-one machine or intelligent self-service terminal (kiosk) etc..The cell selection side of the present embodiment Method may comprise steps of.
Step S10:In response to detecting the contact on table, it is single as first to obtain the cell that the contact is directed toward First lattice.
In the present embodiment, the terminal device can have display module, such as touching-type monitor, liquid crystal (Liquid Crystal Display, LCD) display, cathode-ray tube (Cathode Ray Tube, CRT) display, hair Optical diode (Light Emitting Diode, LED) display etc..The terminal device can use the display module to User shows table.The table can be based on HTML (HyperText Markup Language, hypertext markup language) Table in the webpage that equal computer languages are realized;Alternatively, can also be the table realized based on spreadsheet software.Certainly, The table can also be other types of table, and the present embodiment is simultaneously not specifically limited.The table may include multiple lists First lattice.The cell can be the base unit of the table organization and management data.The cell can be in table The acquiescence cell that row and column intersects to form;Or, or by it is multiple be located at a line or same row acquiescence units The cell that lattice are formed after merging;Alternatively, can also be the cell formed after it will give tacit consent to cell and be split.
For example, a certain table can be as shown in table 1 below.
Table 1
Above table 1 may include cell Cell1, Cell2, Cell3, Cell4, Cell5, Cell6, Cell7 and 8 cells such as Cell8.Cell Cell1, Cell2, Cell4, Cell6, Cell7 and Cell8 are that row and column is handed in table Fork-shaped at acquiescence cell.Cell Cell3 and Cell4 are the cell formed after it will give tacit consent to cell and be split. Cell Cell5 is that will give tacit consent to the cell formed after cell merges.
In the present embodiment, user can use any object, such as mouse, finger or stylus etc., contact the table Lattice.The terminal device can obtain cell that the contact is directed toward as the in response to detecting the contact on table One cell.The contact may include pressing, touching.The cell that the contact is directed toward can be understood as the contact of contact Cell where position.The terminal device can realize the detection to contact, the system by detecting system event Event is such as can be mouse down event MouseDown or screen touch event TouchStart.
Step S12:In response to the movement of the contact, the cell being currently pointed at that contacts is obtained as the second list First lattice.
In the present embodiment, after step S10, user can keep and move the contact.The terminal device is rung The movement contacted described in Ying Yu can obtain the cell currently pointed to that contacts as second unit lattice.The contact is worked as The cell of preceding direction can be understood as the cell where the current contact position of contact.The terminal device can pass through inspection Examining system event realizes the detection mobile to contact, the system event for example can be mouse moving event MouseMove, Or the slip event TouchMove etc. on screen.
Step S14:Based on the first unit lattice and the second unit lattice, first position point and the second position are determined Point.
In the present embodiment, the terminal device can be based on the first unit lattice and the second unit lattice, determine First position point and second position point.It is cornerwise the with the line between the first position point and second position point One rectangular area may include the first unit lattice and the second unit lattice.Normally, the table includes described The quantity of the rectangular area of one cell and the second unit lattice can have multiple, and first rectangular area can be described The rectangular area of area minimum in multiple rectangular areas.Line between the first position point and second position point can be with For the leading diagonal or auxiliary diagonal of first rectangular area.It should be noted that the first position point can be described The vertex of first unit lattice can also be the vertex of other cells in the table;Analogously, the second position point can Think the vertex of the second unit lattice, can also be the vertex of other cells in the table.
In an embodiment of the present embodiment, the line between the first position point and second position point can be The leading diagonal of first rectangular area.In this way, the terminal device can be based on the position of the first unit lattice left side The position with the second unit lattice left side is set, determines the lateral position component of the first position point;It can be based on described The position of the position of first unit lattice top sides and the second unit lattice top sides determines longitudinal position of the first position point Set component;The first position point can be determined based on the lateral position component and lengthwise position component of the first position point. The terminal device is also based on the position of the position and the second unit lattice right edge of the first unit lattice right edge, Determine the lateral position component of the second position point;Position and described second that can be based on the first unit lattice bottom sides The position of cell bottom sides determines the lengthwise position component of the second position point;It can be based on the second position point Lateral position component and lengthwise position component determine the second position point.
Specifically, the terminal device can be left by the position of the first unit lattice left side and the second unit lattice The position of side is compared;It, can when the first unit lattice left side is located at the left side of the second unit lattice left side Using the lateral position component by the position of the first unit lattice left side as the first position point;In the second unit When lattice left side is located at the left side of the first unit lattice left side, can using the position of the second unit lattice left side as The lateral position component of the first position point.The terminal device can also by the position of the first unit lattice top sides and The position of the second unit lattice top sides is compared;It is located at second unit lattice top in the first unit lattice top sides It, can be using the position of the first unit lattice top sides as the lengthwise position minute of the first position point when top on portion side Amount;It, can be by the second unit when the second unit lattice top sides are located at the top of the first unit lattice top sides Lengthwise position component of the position of lattice top sides as the first position point.For example, the lateral position of the first position point Component can be X1, and lengthwise position component can be Y1.So, X1=min (Cell1.left, Cell2.left);Y1=min (Cell1.top,Cell2.top).Cell1 indicates first unit lattice;Cell1.left indicates first unit lattice left side and works as The distance between front interface left border;Cell1.top is indicated between first unit lattice top sides and current interface top boundary Distance;Cell2 indicates second unit lattice;Cell2.left indicate second unit lattice left side and current interface left border it Between distance;Cell2.top indicates the distance between second unit lattice top sides and current interface top boundary;Function min () It indicates to return to the minimum value in given parameters.
Specifically, the terminal device can be right by the position of the first unit lattice right edge and the second unit lattice The position of side is compared;It, can when the first unit lattice right edge is located at the right side of the second unit lattice right edge Using the lateral position component by the position of the first unit lattice right edge as the second position point;In the second unit When lattice right edge is located at the right side of the first unit lattice right edge, can using the position of the second unit lattice right edge as The lateral position component of the second position point.The terminal device can also by the position of the first unit lattice bottom sides and The position of the second unit lattice bottom sides is compared;It is located at second unit lattice bottom in the first unit lattice bottom sides It, can be using the position of the first unit lattice bottom sides as the lengthwise position minute of the first position point when lower section on portion side Amount;It, can be by the second unit when the second unit lattice bottom sides are located at the lower section of the first unit lattice bottom sides Lengthwise position component of the position of lattice bottom sides as the second position point.For example, the lateral position of the second position point Component can be X2, and lengthwise position component can be Y2.So, X2=max (Cell1.right, Cell2.right);Y2= max(Cell1.bottom,Cell2.bottom).Cell1 indicates first unit lattice;Cell1.right indicates first unit lattice The distance between right edge and current interface left border;Cell1.bottom indicates first unit lattice bottom sides and current interface The distance between top boundary;Cell2 indicates second unit lattice;Cell2.right indicates second unit lattice right edge and current The distance between interface left border;Cell2.bottom is indicated between second unit lattice bottom sides and current interface top boundary Distance;Function max () indicates to return to the maximum value in given parameters.
In the another embodiment of the present embodiment, line between the first position point and second position point can be with For the auxiliary diagonal of first rectangular area.In this way, the terminal device can be based on the first unit lattice right edge The position of position and the second unit lattice right edge determines the lateral position component of the first position point;It can be based on institute The position for stating the position and the second unit lattice top sides of first unit lattice top sides determines the longitudinal direction of the first position point Location components;The first position can be determined based on the lateral position component and lengthwise position component of the first position point Point.The terminal device is also based on the position of the position and the second unit lattice left side of the first unit lattice left side It sets, determines the lateral position component of the second position point;Position that can be based on the first unit lattice bottom sides and described The position of second unit lattice bottom sides determines the lengthwise position component of the second position point;It can be based on the second position The lateral position component and lengthwise position component of point, determine the second position point.
Specifically, the terminal device can be right by the position of the first unit lattice right edge and the second unit lattice The position of side is compared;It, can when the first unit lattice right edge is located at the right side of the second unit lattice right edge Using the lateral position component by the position of the first unit lattice right edge as the first position point;In the second unit When lattice right edge is located at the right side of the first unit lattice right edge, can using the position of the second unit lattice right edge as The lateral position component of the first position point.The terminal device can also by the position of the first unit lattice top sides and The position of the second unit lattice top sides is compared;It is located at second unit lattice top in the first unit lattice top sides It, can be using the position of the first unit lattice top sides as the lengthwise position minute of the first position point when top on portion side Amount;It, can be by the second unit when the second unit lattice top sides are located at the top of the first unit lattice top sides Lengthwise position component of the position of lattice top sides as the first position point.
Specifically, the terminal device can be left by the position of the first unit lattice left side and the second unit lattice The position of side is compared;It, can when the first unit lattice left side is located at the left side of the second unit lattice left side Using the lateral position component by the position of the first unit lattice left side as the second position point;In the second unit When lattice left side is located at the left side of the first unit lattice left side, can using the position of the second unit lattice left side as The lateral position component of the second position point.The terminal device can also by the position of the first unit lattice bottom sides and The position of the second unit lattice bottom sides is compared;It is located at second unit lattice bottom in the first unit lattice bottom sides It, can be using the position of the first unit lattice bottom sides as the lengthwise position minute of the second position point when lower section on portion side Amount;It, can be by the second unit when the second unit lattice bottom sides are located at the lower section of the first unit lattice bottom sides Lengthwise position component of the position of lattice bottom sides as the second position point.
Step S16:When the table includes the cell intersected with first rectangular area, the third place point is determined With the 4th location point.
In the present embodiment, the terminal device can detect in the table whether include and first rectangular area The cell of intersection;When it includes the cell intersected with first rectangular area to detect the table, can be based on The position relationship between the cell and first rectangular area of the intersection of the first rectangular area determines the third place point With the 4th location point.With the line between the third place point and the 4th location point for cornerwise second rectangle region Domain may include and be more than first rectangular area.Specifically, second rectangular area can include described first simultaneously Rectangular area and the cell intersected with the first rectangular area.Normally, include first square simultaneously in the table The quantity of shape region and the rectangular area for intersecting cell with the first rectangular area can have multiple, second rectangle region Domain can be the rectangular area of area minimum in the multiple rectangular area.By step S16, include in the table and When the cell of one rectangular area intersection, the terminal device can redefine location point to realize extension first rectangle Region.It should be noted that cell intersects with the first rectangular area here, it can be understood as the subregion of cell is located at In first rectangular area.In addition, line between the third place point and the 4th location point can be described the The leading diagonal or auxiliary diagonal of two rectangular areas.Specifically, between the first position point and second position point When line is the leading diagonal of first rectangular area, the line phase between the third place point and the 4th location point It should be able to be the leading diagonal of second rectangular area;Line between the first position point and second position point For first rectangular area auxiliary diagonal when, the line between the third place point and the 4th location point accordingly may be used Think the auxiliary diagonal of second rectangular area.
In the present embodiment, the position between the cell and first rectangular area of the intersection of the first rectangular area Relationship is set, may include following at least one:
(1) vertex of the cell intersected with the first rectangular area is located in first rectangular area;
(2) a line of the cell intersected with the first rectangular area is located in first rectangular area;
(3) four vertex of the cell intersected with the first rectangular area are located at outside first rectangular area.
Further, a vertex of the cell intersected with the first rectangular area is located at first rectangular area It is interior, may include following at least one:
The top left corner apex of (1-1) described cell intersected with the first rectangular area is located at first rectangular area Other vertex that are interior and removing other than the top left corner apex are located at outside first rectangular area;
The upper right angular vertex of (1-2) described cell intersected with the first rectangular area is located at first rectangular area Other vertex that are interior and removing other than the upper right angular vertex are located at outside first rectangular area;
The lower-left angular vertex of (1-3) described cell intersected with the first rectangular area is located at first rectangular area Other vertex that are interior and removing other than the lower-left angular vertex are located at outside first rectangular area;
The bottom right angular vertex of (1-4) described cell intersected with the first rectangular area is located at first rectangular area Other vertex that are interior and removing other than the bottom right angular vertex are located at outside first rectangular area.
Further, a line of the cell intersected with the first rectangular area is located at first rectangular area It is interior, may include following at least one:
The top sides of (2-1) described cell intersected with the first rectangular area be located in first rectangular area and Lower-left angular vertex and bottom right angular vertex are located at outside first rectangular area;
The right edge of (2-2) described cell intersected with the first rectangular area be located in first rectangular area and Top left corner apex and lower-left angular vertex are located at outside first rectangular area;
The bottom sides of (2-3) described cell intersected with the first rectangular area be located in first rectangular area and Top left corner apex and upper right angular vertex are located at outside first rectangular area;
The left side of (2-4) described cell intersected with the first rectangular area be located in first rectangular area and Upper right angular vertex and bottom right angular vertex are located at outside first rectangular area.
Further, four vertex of the cell intersected with the first rectangular area are located at first rectangular area Outside, it may include following at least one:
The top sides and bottom sides of (3-1) described cell intersected with the first rectangular area are respectively positioned on first rectangle Between the top sides and bottom sides in region and the left side of the cell intersected with the first rectangular area is located at described first The right edge of the left side of the left side of rectangular area and the cell intersected with the first rectangular area is located at first square The right side of the right edge in shape region;
The left side and right edge of (3-2) described cell intersected with the first rectangular area are respectively positioned on first rectangle Between the left side and right edge in region and the top sides of the cell intersected with the first rectangular area are located at described first The bottom sides of the top of the top sides of rectangular area and the cell intersected with the first rectangular area are located at first square The lower section of the bottom sides in shape region.
In the present embodiment, the terminal device can redefine a location point as the third place point;It can incite somebody to action The second position o'clock is as the 4th location point.Alternatively, the terminal device can also be using the first position point as third Location point;A location point can be redefined as the 4th location point.Alternatively, the terminal device can also redefine one A location point is as the third place point;Another location point can be redefined as the 4th location point.
In an embodiment of the present embodiment, the line between the first position point and second position point is described The leading diagonal of first rectangular area.In this way, for position relationship (1-1), (1-2), (1-3), (1-4), (2-1), (2-2), (2-3), (2-4), (3-1), (3-2), the terminal device can be respectively adopted following method and determine the third place point and the 4th Location point.Here for ease of description, the cell intersected with the first rectangular area can be known as intersecting cell.
Please refer to Fig. 7 a and Fig. 7 b.For position relationship (1-1), the terminal device can make the first position point For the third place point;A location point can be redefined as the 4th location point.Specifically, the terminal device can be by phase Hand over lateral position component of the position of cell right edge as the 4th location point;It can will intersect cell bottom sides Lengthwise position component of the position as the 4th location point;Lateral position component that can be based on the 4th location point and vertical To location components, the 4th location point is determined.
Please refer to Fig. 8 a and Fig. 8 b.For position relationship (1-2), the terminal device can redefine a location point As the third place point;Another location point can be redefined as the 4th location point.Specifically, the terminal device can be with The position of cell left side will be intersected as the lateral position component of the third place point;It can be by the first position point Lengthwise position component of the lengthwise position component as the third place point;It can be based on the lateral position of the third place point Component and lengthwise position component are set, determines the third place point.The terminal device can also be by the second position point Lateral position component of the lateral position component as the 4th location point;Can using intersect cell bottom sides position as The lengthwise position component of 4th location point;Lateral position component and lengthwise position point that can be based on the 4th location point Amount, determines the 4th location point.
Please refer to Fig. 9 a and Fig. 9 b.For position relationship (1-3), the terminal device can redefine a location point As the third place point;It can be by the second position o'clock as the 4th location point.Specifically, the terminal device can be by phase Hand over lateral position component of the position of cell left side as the third place point;It can will intersect cell top sides Lengthwise position component of the position as the third place point;Lateral position component that can be based on the third place point and vertical To location components, the third place point is determined.
Please refer to Fig.1 0a and Figure 10 b.For position relationship (1-4), the terminal device can redefine a position Point is used as the third place point;Another location point can be redefined as the 4th location point.Specifically, the terminal device can Using the lateral position component by the lateral position component of the first position point as the third place point;It can be by phase presentate Lengthwise position component of the position of first lattice top sides as the third place point;It can be based on the transverse direction of the third place point Location components and lengthwise position component determine the third place point.The terminal device can also will intersect on the right side of cell Lateral position component of the position on side as the 4th location point;The lengthwise position component of the second position point can be made For the lengthwise position component of the 4th location point;It can be based on the lateral position component and lengthwise position of the 4th location point Component determines the 4th location point.
Please refer to Fig.1 1a and Figure 11 b.For position relationship (2-1), the terminal device can be by the first position point As the third place point;A location point can be redefined as the 4th location point.Specifically, the terminal device can incite somebody to action Lateral position component of the lateral position component of the second position point as the 4th location point;It can will intersect cell Lengthwise position component of the position of bottom sides as the 4th location point;It can be based on the lateral position of the 4th location point Component and lengthwise position component determine the 4th location point.
Please refer to Fig.1 2a and Figure 12 b.For position relationship (2-2), the terminal device can redefine a position Point is used as the third place point;It can be by the second position o'clock as the 4th location point.Specifically, the terminal device can incite somebody to action Intersect lateral position component of the position of cell left side as the third place point;It can be by the first position point Lengthwise position component of the lengthwise position component as the third place point;It can be based on the lateral position of the third place point Component and lengthwise position component determine the third place point.
Please refer to Fig.1 3a and Figure 13 b.For position relationship (2-3), the terminal device can redefine a position Point is used as the third place point;It can be by the second position o'clock as the 4th location point.Specifically, the terminal device can incite somebody to action Lateral position component of the lateral position component of the first position point as the third place point;It can will intersect cell Lengthwise position component of the position of top sides as the third place point;It can be based on the lateral position of the third place point Component and lengthwise position component determine the third place point.
Please refer to Fig.1 4a and Figure 14 b.For position relationship (2-4), the terminal device can be by the first position point As the third place point;A location point can be redefined as the 4th location point.Specifically, the terminal device can incite somebody to action Intersect lateral position component of the position of cell right edge as the 4th location point;It can be by the second position point Lengthwise position component of the lengthwise position component as the 4th location point;It can be based on the lateral position of the 4th location point Component and lengthwise position component determine the 4th location point.
Please refer to Fig.1 5a and Figure 15 b.For position relationship (3-1), the terminal device can redefine a position Point is used as the third place point;Another location point can be redefined as the 4th location point.Specifically, the terminal device can The position of cell left side will be intersected as the lateral position component of the third unit lattice;It can be by the first position Lengthwise position component of the lengthwise position component of point as the third place point;It can be based on the transverse direction of the third place point Location components and lengthwise position component determine the third place point.The terminal device can also will intersect on the right side of cell Lateral position component of the position on side as the 4th cell;The lengthwise position component of the second position point can be made For the lengthwise position component of the 4th location point;It can be based on the lateral position component and lengthwise position of the 4th location point Component determines the 4th location point.
Please refer to Fig.1 6a and Figure 16 b.For position relationship (3-2), the terminal device can redefine a position Point is used as the third place point;Another location point can be redefined as the 4th location point.Specifically, the terminal device can Using the lateral position component by the lateral position component of the first position point as the third place point;It can be by phase presentate Lengthwise position component of the position of first lattice top sides as the third place point;It can be based on the transverse direction of the third place point Location components and lengthwise position component determine the third place point.The terminal device can also be by the second position point Lateral position component of the lateral position component as the 4th location point;The position for intersecting cell bottom sides can be made For the lengthwise position component of the 4th location point;It can be based on the lateral position component and lengthwise position of the 4th location point Component determines the 4th location point.
In the another embodiment of the present embodiment, the line between the first position point and second position point For the auxiliary diagonal of first rectangular area.In this way, for position relationship (1-1), (1-2), (1-3), (1-4), (2-1), The method similar with aforementioned embodiments may be used in (2-2), (2-3), (2-4), (3-1), (3-2), the terminal device Determine the third place point and the 4th location point, details are not described herein.
Step S18:The cell in second rectangular area is obtained as the cell being selected.
In the present embodiment, the terminal device can obtain the cell in second rectangular area;It can will obtain The cell taken is as the cell being selected.
In an embodiment of the present embodiment, the cell of itself selection, the terminal are illustrated for the ease of user Equipment can also highlight the cell in second rectangular area.For example, the terminal device can be by random color It fills to the cell in second rectangular area.
In an embodiment of the present embodiment, in response to no longer detecting the contact, the terminal device can be with Using the cell in the leading diagonal upper left corner in second rectangular area as start element lattice, with main in second rectangular area The cell in the diagonal line lower right corner is to terminate cell, can store the mark of the start element lattice and the termination cell Mark.Alternatively, in response to no longer detecting that the contact, the terminal device can be with auxiliary right in second rectangular area The cell in the linea angulata upper right corner is start element lattice, can be with the cell in the auxiliary diagonal lower left corner in second rectangular area To terminate cell, the mark of the start element lattice and the mark for terminating cell can be stored.
In the present embodiment, the terminal device can no longer detect described connect by detecting system event to realize It touches, the system event for example can be the mouse-up event MouseUp or event TouchEnd that frames out.Cell Mark can be used for identifying the cell, such as can be title or number of cell etc..In the present embodiment, by depositing It stores up the mark of start element lattice and terminates the mark of cell, the terminal device can record the cell of user's selection. In addition, in the data for needing the cell to server or the transmission of other terminal devices for indicating user's selection, the end End equipment only can transmit the mark of start element lattice to server or other terminal devices and terminate the mark of cell, and nothing The mark of each cell of user's selection need to be transmitted.
Do not include the cell intersected with the first rectangular area in the table in an embodiment of the present embodiment When, the terminal can also obtain the cell in first rectangular area as the cell being selected.Further, exist In present embodiment, the terminal device can also highlight the cell in first rectangular area.
In an embodiment of the present embodiment, it is possible to include intersecting with second rectangular area in the table Cell.In this way, after step S16, the terminal device can also detect in the table whether include and described The cell of two rectangular areas intersection.When it includes the cell intersected with the second rectangular area to detect the table, institute Stating terminal device can be based on the position between the cell intersected with the second rectangular area and second rectangular area Relationship determines the 5th location point and the 6th location point.It is with the line between the 5th location point and the 6th location point Cornerwise third rectangular area may include and be more than second rectangular area.Specifically, the third rectangular area can With including second rectangular area and the cell intersected with the second rectangular area.The terminal device can obtain institute The cell in third rectangular area is stated as the cell being selected.Do not include and the second rectangle in detecting the table When the cell of region intersection, the terminal device can obtain cell in second rectangular area as being selected Cell.
Further, in the present embodiment, it is also possible to including intersecting with the third rectangular area in the table Cell.In this way, whether it includes intersecting with the third rectangular area that the terminal device can also detect in the table Cell.When it includes the cell intersected with third rectangular area to detect the table, the terminal device can be with Based on the position relationship between the cell and the third rectangular area of the intersection of third rectangular area, the 7th is determined It sets a little and 8 positions point.With the line between the 7th location point and the 8 positions point for cornerwise 4th rectangle Region may include and be more than the third rectangular area.Specifically, the 4th rectangular area may include the third square Shape region and the cell intersected with third rectangular area.The terminal device can obtain in the 4th rectangular area Cell as the cell being selected.Do not include the cell intersected with third rectangular area in detecting the table When, the terminal device can obtain the cell in the third rectangular area as the cell being selected.
As it can be seen that in the present embodiment, the terminal device can repeatedly redefine location point to realize multiple extension First rectangular area, until not including the cell intersected with the first rectangular area of the last time extension in the table Until.Further, in the present embodiment, it is redefined according to the position data of each unit lattice in table in view of needs Location point, the terminal device can obtain the position data of each unit lattice in the table in advance, can be according to described pre- The position data that first obtains redefines location point, so as to reduce the time for repeatedly redefining location point cost.
In the present embodiment, the terminal device is after detecting that contact on table and the contact are moved, First unit lattice and second unit lattice can be obtained from table;It can be based on the first unit lattice and the second unit Lattice determine first position point and second position point;The table include with the first position point and the second position When line between point is the cell of cornerwise first rectangular area intersection, the third place point and the may further determine that Four location points, to extend first rectangular area;It can obtain between the third place point and the 4th location point Line be cornerwise second rectangular area in cell as the cell being selected.The cell of the present embodiment is chosen Method, the terminal device can determine the cell of user's selection by the diagonal line that location point is formed.User is not necessarily to Each unit lattice in rectangular area are gradually clicked, cell in the rectangular area can be chosen, reduce user's operation, carried High user experience.
A specific Sample Scenario introduced below, is illustrated with the cell choosing method to the present embodiment.It is worth This specification is implemented it is noted that the Sample Scenario merely to this specification embodiment is better described, is not constituted The improper restriction of example.
In Sample Scenario, the terminal device can be smart mobile phone.The smart mobile phone may include touch aobvious Show device.The smart mobile phone can show table by the touching-type monitor.User can contact the table using finger Cell in lattice.The smart mobile phone can obtain the contact and be directed toward in response to detecting the contact on the table Cell as first unit lattice.User can keep and move the contact.During user moves the contact, The smart mobile phone can obtain the cell currently pointed to that contacts as second unit lattice;It is single can be based on described first First lattice and the second unit lattice, determine first position point and second position point;With the first position point and the second Line between setting a little is the diagonal line of the first rectangular area, includes the list intersected with first rectangular area in the table When first lattice, it may be determined that the third place point and the 4th location point;With between the third place point and the 4th location point Line is the diagonal line of the second rectangular area, can obtain the cell in second rectangular area as the unit being selected Lattice.
In this Sample Scenario, user can choose multiple cells by the movement contact.Institute is moved in user During stating contact, the smart mobile phone can determine that user is currently selected by the diagonal line that location point is formed Cell.When the cell that the smart mobile phone is determined is not that itself it is expected the cell chosen, user can continue to move Move the contact.When the cell that the smart mobile phone is determined is that itself it is expected the cell chosen, user can lift Finger.
Also referring to Fig. 2, Fig. 6 a, Fig. 6 b, Fig. 6 c and Fig. 6 d.This specification embodiment provides a kind of cell selection side Method, the cell choosing method is using terminal device as executive agent.The terminal device can be movable equipment, such as intelligence It can mobile phone, Flat electronic equipment, portable computer, personal digital assistant (PDA), mobile unit, POS machine or intelligence wearing Equipment etc..Alternatively, the terminal device can also be desk device, such as television set, server, industrial personal computer (Industry Control meter Calculation machine), personal computer (PC machine), all-in-one machine or intelligent self-service terminal (kiosk) etc..The cell selection side of the present embodiment Method may comprise steps of.
Step S20:It obtains origin identification and terminates and identify.
In the present embodiment, the origin identification and termination mark can divide for identifying a unit in table Lattice.The terminal device can be stored with origin identification and terminate and identify.In this way, the terminal device can read rising for storage The mark that begins and termination mark.Alternatively, the other terminal devices or server other than removing the present embodiment can be to the present embodiment Terminal device sends the origin identification and terminates and identifies.The terminal device of the present embodiment can receive the origin identification sent and Terminate mark.
Step S22:The cell and described terminate identified based on the origin identification identifies identified cell, really Determine rectangular area.
In the present embodiment, the terminal device can with the top left corner apex of the identified cell of the origin identification, And the connection terminated between the bottom right angular vertex for identifying identified cell is diagonal line, determines rectangular area.Described Begin to identify identified cell and described terminate identifies identified cell can be located at the rectangular area main right The both ends of linea angulata.
Alternatively, in the present embodiment, the terminal device can also be with the upper right of the identified cell of the origin identification Angular vertex and the line terminated between the lower-left angular vertex for identifying identified cell are diagonal line, determine rectangular area. The cell and the identified cell of mark that terminates that the origin identification is identified can be located at the rectangle region The both ends of domain auxiliary diagonal.
Step S24:The cell in the rectangular area is obtained as the cell being selected.
In the present embodiment, the terminal device can obtain the cell in the rectangular area;It can be by acquisition Cell is as the cell being selected.In this way, the terminal device can be identified according to origin identification and termination, determine to use The cell that family is chosen.
Please refer to Fig. 3.This specification embodiment also provides a kind of terminal device.The terminal device may include to place an order Member.
First acquisition unit 30, in response to detecting the contact on table, obtaining the unit that the contact is directed toward Lattice are as first unit lattice;
Second acquisition unit 32 obtains the unit for contacting and being currently pointed at for the movement in response to the contact Lattice are as second unit lattice;
First determination unit 34 determines first position point for being based on the first unit lattice and the second unit lattice With second position point;
Second determination unit 36 is used for the line between the first position point and second position point as the first square The diagonal line in shape region determines the third place point when the table includes the cell intersected with first rectangular area With the 4th location point;
Third acquiring unit 38 is used for the line between the third place point and the 4th location point as the second square The diagonal line in shape region obtains the cell in second rectangular area as the cell being selected;Second rectangle Region includes and is more than first rectangular area.
Please refer to Fig. 4.This specification embodiment also provides another terminal device.The terminal device may include storage Device and processor.
In the present embodiment, the memory includes but not limited to dynamic random access memory (Dynamic Random Access Memory, DRAM) and static RAM (Static Random Access Memory, SRAM) etc.. The memory can be used for storing computer instruction.
In the present embodiment, the processor can be implemented in any suitable manner.For example, the processor can be adopted Take such as microprocessor or processor and storage (such as soft by computer readable program code that (micro-) processor executes Part or firmware) computer-readable medium, logic gate, switch, application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), the form etc. of programmable logic controller (PLC) and embedded microcontroller.The processor It can be used for executing the computer instruction and realize following steps:In response to detecting the contact on table, connect described in acquisition Fingertip to cell as first unit lattice;In response to the movement of the contact, the list for contacting and being currently pointed at is obtained First lattice are as second unit lattice;Based on the first unit lattice and the second unit lattice, first position point and second are determined It sets a little;With the diagonal line that the line between the first position point and second position point is the first rectangular area, described When table includes the cell intersected with first rectangular area, the third place point and the 4th location point are determined;With described Line between three location points and the 4th location point is the diagonal line of the second rectangular area, obtains second rectangular area Interior cell is as the cell being selected;Second rectangular area includes and is more than first rectangular area.
Please refer to Fig. 5.This specification embodiment also provides another terminal device.The terminal device may include following Unit.
First acquisition unit 50 is identified for obtaining origin identification and terminating;The origin identification and termination mark A cell being respectively used in mark table;
Determination unit 52, cell and described terminate for being identified based on the origin identification identify identified list First lattice, determine rectangular area;
Second acquisition unit 54, for obtaining the cell in the rectangular area as the cell being selected.
Please refer to Fig. 4.This specification embodiment also provides another terminal device.The terminal device may include storage Device and processor.
In the present embodiment, the memory includes but not limited to dynamic random access memory (Dynamic Random Access Memory, DRAM) and static RAM (Static Random Access Memory, SRAM) etc.. The memory can be used for storing computer instruction.
In the present embodiment, the processor can be implemented in any suitable manner.For example, the processor can be adopted Take such as microprocessor or processor and storage (such as soft by computer readable program code that (micro-) processor executes Part or firmware) computer-readable medium, logic gate, switch, application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), the form etc. of programmable logic controller (PLC) and embedded microcontroller.The processor It can be used for executing the computer instruction and realize following steps:It obtains origin identification and terminates and identify;The origin identification and The cell for terminating mark and being respectively used in mark table;The cell identified based on the origin identification and institute It states to terminate and identifies identified cell, determine rectangular area;Cell in the rectangular area is obtained as being selected Cell.
It should be noted that each embodiment is described in a progressive manner in present specification, each embodiment Between just to refer each other for identical similar part, the highlights of each of the examples are it is different from other embodiment it Place.For terminal device embodiment, since it is substantially similar to cell choosing method embodiment, so description It is fairly simple, related place illustrates referring to the part of cell choosing method embodiment.
In addition, those skilled in the art should be understood that, one of ordinary skill in the art say reading the application After bright book, may not need creative work some or all of expect in present specification enumerating embodiment between can group It closes, these combinations are also in the range of the application discloses and protects.
In the 1990s, the improvement of a technology can be distinguished clearly be on hardware improvement (for example, Improvement to circuit structures such as diode, transistor, switches) or software on improvement (improvement for method flow).So And with the development of technology, the improvement of current many method flows can be considered as directly improving for hardware circuit. Designer nearly all obtains corresponding hardware circuit by the way that improved method flow to be programmed into hardware circuit.Cause This, it cannot be said that the improvement of a method flow cannot be realized with hardware entities module.For example, programmable logic device (Programmable Logic Device, PLD) (such as field programmable gate array (Field Programmable Gate Array, FPGA)) it is exactly such a integrated circuit, logic function determines device programming by user.By designer Voluntarily programming comes a digital display circuit " integrated " on a piece of PLD, designs and makes without asking chip maker Dedicated IC chip 2.Moreover, nowadays, substitution manually makes IC chip, and this programming is also used instead mostly " logic compiler (logic compiler) " software realizes that software compiler used is similar when it writes with program development Seemingly, and the source code before compiling also handy specific programming language is write, this is referred to as hardware description language (Hardware Description Language, HDL), and HDL is also not only a kind of, but there are many kind, such as ABEL (Advanced Boolean Expression Language)、AHDL(Altera Hardware Description Language)、Confluence、CUPL(Cornell University Programming Language)、HDCal、JHDL (Java Hardware Description Language)、Lava、Lola、MyHDL、PALASM、RHDL(Ruby Hardware Description Language) etc., VHDL (Very-High-Speed are most generally used at present Integrated Circuit Hardware Description Language) and Verilog2.Those skilled in the art It will be apparent to the skilled artisan that only needing method flow slightly programming in logic and being programmed into integrated circuit with above-mentioned several hardware description languages In, so that it may to be readily available the hardware circuit for realizing the logical method flow.
System, device, module or the unit that above-described embodiment illustrates can specifically realize by computer chip or entity, Or it is realized by the product with certain function.
System, device, module or the unit that above-described embodiment illustrates can specifically realize by computer chip or entity, Or it is realized by the product with certain function.It is a kind of typically to realize that equipment is computer.Specifically, computer for example may be used Think personal computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media play It is any in device, navigation equipment, electronic mail equipment, game console, tablet computer, wearable device or these equipment The combination of equipment.
As seen through the above description of the embodiments, those skilled in the art can be understood that this specification The mode of required general hardware platform can be added to realize by software.Based on this understanding, the technical solution of this specification Substantially the part that contributes to existing technology can be expressed in the form of software products in other words, the computer software Product can be stored in a storage medium, such as ROM/RAM, magnetic disc, CD, including some instructions are used so that a computer Equipment (can be personal computer, server either network equipment etc.) executes each embodiment of this specification or embodiment Certain parts described in method.
This specification can be used in numerous general or special purpose computing system environments or configuration.Such as:Personal computer, Server computer, handheld device or portable device, laptop device, multicomputer system, microprocessor-based system, Set top box, programmable consumer-elcetronics devices, network PC, minicomputer, mainframe computer including any of the above system are set Standby distributed computing environment etc..
This specification can describe in the general context of computer-executable instructions executed by a computer, such as journey Sequence module.Usually, program module include routines performing specific tasks or implementing specific abstract data types, program, object, Component, data structure etc..This specification can also be put into practice in a distributed computing environment, in these distributed computing environments, By executing task by the connected remote processing devices of communication network.In a distributed computing environment, program module can With in the local and remote computer storage media including storage device.
Although depicting this specification by embodiment, it will be appreciated by the skilled addressee that there are many become for this specification Shape and the spirit changed without departing from this specification, it is desirable to which the attached claims include these deformations and change without departing from this The spirit of specification.

Claims (18)

1. a kind of cell choosing method, including:
In response to detecting the contact on table, the cell of the contact direction is obtained as first unit lattice;
In response to the movement of the contact, the cell being currently pointed at that contacts is obtained as second unit lattice;
Based on the first unit lattice and the second unit lattice, first position point and second position point are determined;
With the diagonal line that the line between the first position point and second position point is the first rectangular area, in the table When lattice include the cell intersected with first rectangular area, the third place point and the 4th location point are determined;
With the diagonal line that the line between the third place point and the 4th location point is the second rectangular area, described in acquisition Cell in second rectangular area is as the cell being selected;Second rectangular area includes and is more than first square Shape region.
2. the method as described in claim 1, first rectangular area includes the first unit lattice and the second unit Lattice;Second rectangular area includes first rectangular area and the cell intersected with the first rectangular area.
3. the method as described in claim 1, the line between the first position point and second position point is described the The leading diagonal or auxiliary diagonal of one rectangular area;Line between the third place point and the 4th location point is described The leading diagonal or auxiliary diagonal of second rectangular area.
4. the method as described in claim 1, the determining first position point, including:
The position of position and the second unit lattice left side based on the first unit lattice left side, determines described first Set lateral position component a little;The position of position and the second unit lattice top sides based on the first unit lattice top sides It sets, determines the lengthwise position component of the first position point;
Based on the lateral position component and lengthwise position component of the first position point, the first position point is determined;
Correspondingly, the determining second position point, including:
The position of position and the second unit lattice right edge based on the first unit lattice right edge, determines the second Set lateral position component a little;The position of position and the second unit lattice bottom sides based on the first unit lattice bottom sides It sets, determines the lengthwise position component of the second position point;
Based on the lateral position component and lengthwise position component of the second position point, the second position point is determined.
5. the method as described in claim 1, the determining the third place point and the 4th location point, including:
Position relationship between cell and first rectangular area based on the intersection the first rectangular area determines the Three location points and the 4th location point.
6. method as claimed in claim 5, the cell intersected with the first rectangular area and first rectangular area Between position relationship, including following at least one:
One vertex of the cell intersected with the first rectangular area is located in first rectangular area;
The a line of the cell intersected with the first rectangular area is located in first rectangular area;
Four vertex of the cell intersected with the first rectangular area are respectively positioned on outside first rectangular area.
7. method as claimed in claim 5, the determination the third place point, including:
Using the first position point as the third place point;Alternatively, based on the unit intersected with the first rectangular area Lattice and first position point determine the lateral position component and lengthwise position component of the third place point;Based on described The lateral position component and lengthwise position component of three location points determine the third place point;
Correspondingly, the determination the 4th location point, including:
Using the second position point as the 4th location point;Alternatively, based on the unit intersected with the first rectangular area Lattice and second position point, determine the lateral position component and lengthwise position component of the 4th location point;Based on described The lateral position component and lengthwise position component of four location points, determine the 4th location point.
8. the method as described in claim 1, the method further include:
Highlight the cell in second rectangular area.
9. the method as described in claim 1, the method further include:
When the table does not include the cell intersected with the first rectangular area, the unit in first rectangular area is obtained Lattice are as the cell being selected.
10. the method as described in claim 1, the method further include:
It is starting with the cell in the leading diagonal upper left corner in second rectangular area in response to no longer detecting the contact Cell is to terminate cell with the cell in the leading diagonal lower right corner in second rectangular area, it is single to store the starting The mark of first lattice and the mark for terminating cell.
11. the method as described in claim 1, the method further include:
It is starting with the cell in the auxiliary diagonal upper right corner in second rectangular area in response to no longer detecting the contact Cell is to terminate cell with the cell in the auxiliary diagonal lower left corner in second rectangular area, it is single to store the starting The mark of first lattice and the mark for terminating cell.
12. the method as described in claim 1, after determining the third place point and the 4th location point, the method further includes:
With the diagonal line that the line between the third place point and the 4th location point is the second rectangular area, in the table When lattice include the cell intersected with second rectangular area, the 5th location point and the 6th location point are determined;
Correspondingly, the cell obtained in second rectangular area is as the cell being selected, including:
Using the line between the 5th location point and the 6th location point as the diagonal line of third rectangular area, described in acquisition Cell in third rectangular area is as the cell being selected.
13. a kind of terminal device, including:
First acquisition unit, in response to detecting the contact on table, obtaining the cell conduct that the contact is directed toward First unit lattice;
Second acquisition unit obtains the cell conduct for contacting and being currently pointed at for the movement in response to the contact Second unit lattice;
First determination unit determines first position point and second for being based on the first unit lattice and the second unit lattice Location point;
Second determination unit is used for the line between the first position point and second position point as the first rectangular area Diagonal line determine the third place point and the 4th when the table includes the cell intersected with first rectangular area Location point;
Third acquiring unit is used for the line between the third place point and the 4th location point as the second rectangular area Diagonal line, obtain the cell in second rectangular area as the cell being selected;The second rectangular area packet It includes and is more than first rectangular area.
14. a kind of terminal device, including:
Memory, for storing computer instruction;
Processor realizes following steps for executing the computer instruction:In response to detecting the contact on table, obtain The cell that the contact is directed toward is as first unit lattice;In response to the movement of the contact, it is current signified to obtain the contact To cell as second unit lattice;Based on the first unit lattice and the second unit lattice, determine first position point and Second position point;It is the diagonal line of the first rectangular area with the line between the first position point and second position point, When the table includes the cell intersected with first rectangular area, the third place point and the 4th location point are determined;With Line between the third place point and the 4th location point is the diagonal line of the second rectangular area, obtains second square Cell in shape region is as the cell being selected;Second rectangular area includes and is more than first rectangle region Domain.
15. a kind of cell choosing method, including:
It obtains origin identification and terminates and identify;The origin identification and one for terminating mark and being respectively used in mark table Cell;
The cell and described terminate identified based on the origin identification identifies identified cell, determines rectangular area;
The cell in the rectangular area is obtained as the cell being selected.
16. method as claimed in claim 15, the cell and the termination that the origin identification is identified are identified Cell be located at the both ends of the rectangular area leading diagonal;Alternatively, cell that the origin identification is identified and described It terminates and identifies the both ends that identified cell is located at the rectangular area auxiliary diagonal.
17. a kind of terminal device, including:
First acquisition unit is identified for obtaining origin identification and terminating;The origin identification and termination mark are used respectively In identifying a cell in table;
Determination unit, cell and described terminate for being identified based on the origin identification identify identified cell, Determine rectangular area;
Second acquisition unit, for obtaining the cell in the rectangular area as the cell being selected.
18. a kind of terminal device, including:
Memory, for storing computer instruction;
Processor realizes following steps for executing the computer instruction:It obtains origin identification and terminates and identify;The starting Mark and the cell for terminating mark and being respectively used in mark table;The unit identified based on the origin identification Lattice and described terminate identify identified cell, determine rectangular area;The cell in the rectangular area is obtained as quilt The cell of selection.
CN201810291950.2A 2018-03-30 2018-03-30 Cell selection method and terminal equipment Active CN108628816B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810291950.2A CN108628816B (en) 2018-03-30 2018-03-30 Cell selection method and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810291950.2A CN108628816B (en) 2018-03-30 2018-03-30 Cell selection method and terminal equipment

Publications (2)

Publication Number Publication Date
CN108628816A true CN108628816A (en) 2018-10-09
CN108628816B CN108628816B (en) 2022-02-25

Family

ID=63704710

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810291950.2A Active CN108628816B (en) 2018-03-30 2018-03-30 Cell selection method and terminal equipment

Country Status (1)

Country Link
CN (1) CN108628816B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101211334A (en) * 2006-12-28 2008-07-02 珠海金山软件股份有限公司 Device and method for positioning unit grid position in electronic form designated area
CN102103582A (en) * 2009-12-17 2011-06-22 珠海金山软件有限公司 Method and system for drawing table utilizing computer
CN102103580A (en) * 2009-12-17 2011-06-22 珠海金山软件有限公司 Method and system of selection of some areas in table utilizing computer
CN102915183A (en) * 2011-09-07 2013-02-06 微软公司 Multi-cell selection using touch input
US20130067310A1 (en) * 2009-02-11 2013-03-14 Microsoft Corporation Displaying Multiple Row and Column Header Areas in a Summary Table
CN103116461A (en) * 2013-01-25 2013-05-22 中兴通讯股份有限公司 Character handling method and terminal based on touch screen
US20140033093A1 (en) * 2012-07-25 2014-01-30 Microsoft Corporation Manipulating tables with touch gestures
CN106030492A (en) * 2013-12-17 2016-10-12 微软技术许可有限责任公司 Touch/gesture-enabled interaction with electronic spreadsheets

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101211334A (en) * 2006-12-28 2008-07-02 珠海金山软件股份有限公司 Device and method for positioning unit grid position in electronic form designated area
US20130067310A1 (en) * 2009-02-11 2013-03-14 Microsoft Corporation Displaying Multiple Row and Column Header Areas in a Summary Table
CN102103582A (en) * 2009-12-17 2011-06-22 珠海金山软件有限公司 Method and system for drawing table utilizing computer
CN102103580A (en) * 2009-12-17 2011-06-22 珠海金山软件有限公司 Method and system of selection of some areas in table utilizing computer
CN102915183A (en) * 2011-09-07 2013-02-06 微软公司 Multi-cell selection using touch input
US20140033093A1 (en) * 2012-07-25 2014-01-30 Microsoft Corporation Manipulating tables with touch gestures
CN103116461A (en) * 2013-01-25 2013-05-22 中兴通讯股份有限公司 Character handling method and terminal based on touch screen
CN106030492A (en) * 2013-12-17 2016-10-12 微软技术许可有限责任公司 Touch/gesture-enabled interaction with electronic spreadsheets

Also Published As

Publication number Publication date
CN108628816B (en) 2022-02-25

Similar Documents

Publication Publication Date Title
CN106406734B (en) Touch operation processing method and terminal device
CN104866225B (en) A kind of electronic equipment and its control method with touch display screen
US20160202887A1 (en) Method for managing application icon and terminal
US8922499B2 (en) Touch input transitions
AU2015229561B2 (en) Conductive trace routing for display and bezel sensors
US8830192B2 (en) Computing device for performing functions of multi-touch finger gesture and method of the same
KR20140038568A (en) Multi-touch uses, gestures, and implementation
CN103218123A (en) Method of rearranging desktop icons and touch type mobile terminal thereof
US20190286310A1 (en) Widget Area Adjustment Method and Apparatus
KR20120056889A (en) Detection of gesture orientation on repositionable touch surface
CN103616972A (en) Touch screen control method and terminal device
CN107807764A (en) A kind of page display method and client
CN109144370A (en) A kind of screenshotss method, apparatus, terminal and computer-readable medium
TWI671675B (en) Information display method and device
CN105224089A (en) Gesture operation method and device, mobile terminal
CN107219971A (en) A kind of methods of exhibiting and device for showing object
CN104571792A (en) Information processing method and electronic equipment
CN105653177A (en) Method for selecting clickable elements of terminal equipment interface and terminal equipment
CN107943381A (en) Hot-zone method of adjustment and device, client
US20130162562A1 (en) Information processing device and non-transitory recording medium storing program
EP3936993A1 (en) Mobile terminal control method and mobile terminal
WO2024066759A1 (en) Application switching method, apparatus and device, and medium
WO2015067166A1 (en) Touch-type input method and device
EP3992768A1 (en) Human-computer interaction method, device, and system
CN108628816A (en) Cell choosing method and terminal device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20201021

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant before: Advanced innovation technology Co.,Ltd.

Effective date of registration: 20201021

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Advanced innovation technology Co.,Ltd.

Address before: Greater Cayman, British Cayman Islands

Applicant before: Alibaba Group Holding Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant