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.