CN102750035A - Method and device for determining display position of cursor - Google Patents

Method and device for determining display position of cursor Download PDF

Info

Publication number
CN102750035A
CN102750035A CN2012102053644A CN201210205364A CN102750035A CN 102750035 A CN102750035 A CN 102750035A CN 2012102053644 A CN2012102053644 A CN 2012102053644A CN 201210205364 A CN201210205364 A CN 201210205364A CN 102750035 A CN102750035 A CN 102750035A
Authority
CN
China
Prior art keywords
cursor
click location
moving direction
click
touching medium
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
CN2012102053644A
Other languages
Chinese (zh)
Other versions
CN102750035B (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201210205364.4A priority Critical patent/CN102750035B/en
Publication of CN102750035A publication Critical patent/CN102750035A/en
Application granted granted Critical
Publication of CN102750035B publication Critical patent/CN102750035B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)
  • Position Input By Displaying (AREA)

Abstract

The invention discloses a method and a device for determining the display position of a cursor. The method comprises the following steps of: when a contact duration between a touch medium and a first click position in an editable area on a first mobile terminal screen is greater than a first preset duration, acquiring the first click position and a second click position of the touch medium in the editable area; determining the mobile direction of the cursor according to the acquired first click position and second click position; and moving the cursor to the position to be displayed according to the mobile direction. According to the technical scheme provided by the invention, quick response is realized, the cursor is automatically moved, the editing position is accurately positioned, the error operation of a user is reduced and the input speed of characters is increased.

Description

Definite method and apparatus of cursor display position
Technical field
The present invention relates to the communications field, in particular to a kind of definite method and apparatus of cursor display position.
Background technology
At present, full touch-screen type mobile terminal device such as the mobile phone in the correlation technique, panel computer all has the function of literal input.The user can utilize this literal input function Edit Document, note, p.m.entry etc., satisfied the demand of user profile transmission, word processing.When but the user states the portable terminal Edit Document in the use, the time regular meeting phenomenon that the literal input error takes place or omit literal.Therefore, the user need delete segment word wherein or in the middle of the text of importing, insert literal.Aforesaid operations all need be reorientated cursor position with finger click screen, but because the limited size of the mobile terminal screen size of generally using at present, finger is difficult to the character area that needs are deleted or inserted in the disposable accurate place, is easy to generate maloperation.
Summary of the invention
The invention provides a kind of definite method and apparatus of cursor display position, low to solve in the correlation technique cursor positioning accuracy rate at least, be easy to generate the problem of maloperation.
A kind of definite method of cursor display position is provided according to an aspect of the present invention.
Definite method according to cursor display position of the present invention comprises: but when first click location in the editing area on touching medium and the mobile terminal screen contact duration greater than the first preset duration time, but obtain first click location and second click location of touching medium in editing area; Confirm the moving direction of cursor according to first click location that gets access to and second click location; According to moving direction cursor is moved to position to be shown.
Preferably, confirm that according to first click location that gets access to and second click location moving direction of cursor comprises: obtain the coordinate of first click location and the coordinate of second click location respectively; Is the angle of the forward reference axle of true origin according to the coordinate of first click location that gets access to and the coordinate Calculation of second click location from the vector shift of first click location to the second click location and with first click location; Confirm the moving direction of cursor according to the angle that calculates.
Preferably, it is one of following to confirm that according to the angle that calculates the moving direction of cursor comprises: if 2k is π-π/4 < α≤2k π+π/>4 o'clock, the moving direction of then confirming cursor to the right; If 2k is π+π/4 < α≤2k π+3 π/>4 o'clock, the moving direction of then confirming cursor upwards; If 2k is π+3 π/4 α≤2k π+5 π/4 o'clock, the moving direction of then confirming cursor is left; If 2k were π+< α≤2k π+7 π/>4 o'clock would confirm that then the moving direction of cursor is downward, and wherein, k is an arbitrary integer, and π is 180 degree, and α is an angle in 5 π/4.
Preferably, according to moving direction cursor being moved to position to be shown comprises: whether the senses touch medium leaves second click location; If then cursor is moved along moving direction from first click location according to preset travel frequency; Whether the senses touch medium leaves first click location; If then stop moving cursor.
Preferably, according to moving direction cursor being moved to position to be shown comprises: whether the senses touch medium leaves first click location and/or second click location; If then cursor is moved along moving direction from first click location according to preset travel frequency; The clicking operation of response touching medium stops moving cursor.
Preferably, according to moving direction cursor being moved to position to be shown comprises: whether the senses touch medium leaves first click location; If whether that judges touching medium and second click location contacts duration greater than the second preset duration; If then cursor is moved along moving direction from first click location according to preset travel frequency; Whether the senses touch medium leaves second click location; If then stop moving cursor.
A kind of definite device of cursor display position is provided according to a further aspect in the invention.
Definite device according to cursor display position of the present invention comprises: acquisition module; But be used for when first click location in the editing area on touching medium and the mobile terminal screen contact duration greater than the first preset duration time, but obtain first click location and second click location of touching medium in editing area; Determination module is used for the moving direction of confirming cursor according to first click location that gets access to and second click location; Execution module is used for according to moving direction cursor being moved to position to be shown.
Preferably, determination module comprises: acquiring unit is used for obtaining respectively the coordinate of first click location and the coordinate of second click location; Computing unit, being used for according to the coordinate of first click location that gets access to and the coordinate Calculation of second click location is the angle of the forward reference axle of true origin from the vector shift of first click location to the second click location and with first click location; Confirm the unit, be used for confirming the moving direction of cursor according to the angle that calculates.
Preferably, confirm the unit, be used in 2k π-π/4 α≤2k π+π/4 o'clock, the moving direction of then confirming cursor is to the right; Perhaps, in 2k π+π/4 α≤2k π+3 π/4 o'clock, the moving direction of then confirming cursor is upwards; Perhaps, in 2k π+3 π/4 α≤2k π+5 π/4 o'clock, the moving direction of then confirming cursor is left; Perhaps, < α≤2k π+7 π/>4 o'clock confirm that then the moving direction of cursor is downward, and wherein, k is an arbitrary integer, and π is 180 degree, and α is an angle in 2k π+5 π/4.
Preferably, execution module comprises: first detecting unit is used for the senses touch medium and whether leaves second click location; First mobile unit is used for being output as when being at first detecting unit, according to preset travel frequency cursor is moved along moving direction from first click location; Second detecting unit is used for the senses touch medium and whether leaves first click location; First processing unit is used for being output as when being at second detecting unit, stops moving cursor.
Preferably, execution module also comprises: the 3rd detecting unit is used for the senses touch medium and whether leaves first click location and/or second click location; Second mobile unit is used for being output as when being at the 3rd detecting unit, according to preset travel frequency cursor is moved along moving direction from first click location; Second processing unit is used to respond the clicking operation of touching medium, stops moving cursor.
Preferably, execution module also comprises: the 4th detecting unit is used for the senses touch medium and whether leaves first click location; Judging unit is used for being output as when being at the 4th detecting unit, and whether that judges touching medium and second click location contacts duration greater than the second preset duration; The 3rd mobile unit is used for being output as when being at judging unit, according to preset travel frequency cursor is moved along moving direction from first click location; The 5th detecting unit is used for the senses touch medium and whether leaves second click location; The 3rd processing unit is used for being output as when being at the 5th detecting unit, stops moving cursor.
Through the present invention; Employing multi-point touch technology; Under the text editing state, obtain first click location in the text editing zone of touching medium on touch-screen, and with this first click location as the initial position of choosing cursor; Wherein, touching medium is preset duration with the duration that contacts of first click location greater than first.In addition, also need obtain second click location in the text editing zone of touching medium on touch-screen.Second click location is the center with first click location, can click the outer all directions of first click location, confirms the moving direction of cursor through first click location and second click location; Hope the position of editing until moving to the user, it is low to have solved in the correlation technique cursor positioning accuracy rate, is easy to generate the problem of maloperation; And then realized quick response, automatic moving cursor, accurate positional editing position; Reduce misoperation of users, improved the speed of literal input.
Description of drawings
Accompanying drawing described herein is used to provide further understanding of the present invention, constitutes the application's a part, and illustrative examples of the present invention and explanation thereof are used to explain the present invention, do not constitute improper qualification of the present invention.In the accompanying drawings:
Fig. 1 is the process flow diagram according to definite method of the cursor display position of the embodiment of the invention;
Fig. 2 is the synoptic diagram of definite method of cursor display position according to the preferred embodiment of the invention;
Fig. 3 is the structured flowchart according to definite device of the cursor display position of the embodiment of the invention;
Fig. 4 is the structured flowchart according to definite device of the cursor display position of the preferred embodiment of the present invention one;
Fig. 5 is the structured flowchart according to definite device of the cursor display position of the preferred embodiment of the present invention two;
Fig. 6 is the structured flowchart according to definite device of the cursor display position of the preferred embodiment of the present invention three; And
Fig. 7 is definite schematic representation of apparatus of cursor display position according to the preferred embodiment of the invention.
Embodiment
Hereinafter will and combine embodiment to specify the present invention with reference to accompanying drawing.Need to prove that under the situation of not conflicting, embodiment and the characteristic among the embodiment among the application can make up each other.
Fig. 1 is the process flow diagram according to definite method of the cursor display position of the embodiment of the invention.As shown in Figure 1, this method can comprise following treatment step:
Step S102: but when first click location in the editing area on touching medium and the mobile terminal screen contact duration greater than the first preset duration time, but obtain first click location and second click location of touching medium in editing area;
Step S104: the moving direction of confirming cursor according to first click location that gets access to and second click location;
Step S106: cursor is moved to position to be shown according to moving direction.
In the correlation technique, the cursor positioning accuracy rate is low, is easy to generate maloperation.Adopt method as shown in Figure 1; Employing multi-point touch technology; Under the text editing state, obtain first click location in the text editing zone of touching medium on touch-screen, and with this first click location as the initial position of choosing cursor (for example: click the literal that will edit near); Wherein, touching medium (for example: 3s) is preset duration with the duration that contacts of first click location greater than first.In addition, also need obtain second click location in the text editing zone of touching medium on touch-screen.Second click location is the center with first click location, (for example: upper and lower, left and right), confirm the moving direction of cursor through first click location and second click location can click the outer all directions of first click location; Hope the position of editing until moving to the user; It is low to have solved in the correlation technique cursor positioning accuracy rate, is easy to generate the problem of maloperation, and then has realized quick response; Automatic moving cursor; Accurately misoperation of users has been reduced in the positional editing position, has improved the speed of literal input.
Preferably, in step S104, confirm that according to first click location that gets access to and second click location moving direction of cursor can comprise following operation:
Step S1: obtain the coordinate of first click location and the coordinate of second click location respectively;
Step S2: is the angle of the forward reference axle of true origin according to the coordinate of first click location that gets access to and the coordinate Calculation of second click location from the vector shift of first click location to the second click location and with first click location;
Step S3: the moving direction of confirming cursor according to the angle that calculates.
In a preferred embodiment, the coordinate of supposing first click location be A (x1, y1), the coordinate of second click location be B (x2, y2), can calculate vector shift AB=(x2-x1, y2-y1).Can calculate AB and be the angle of the horizontal positive axis of initial point through the trigonometric function formula, for example: adopt formula α=arctan ((y2-y1)/(x2-x1)) with the A point.Certainly, can also adopt A as true origin (0,0), so vector shift AB=(x2, y2).At this moment, above-mentioned formula can be reduced to α=arctan (y2/x2).
In preferred implementation process, in above-mentioned steps S3, it is one of following to confirm that according to the angle that calculates the moving direction of cursor can comprise:
(1) if 2k is π-π/4 < α≤2k π+π/>4 o'clock, the moving direction of then confirming cursor to the right;
(2) if 2k is π+π/4 < α≤2k π+3 π/>4 o'clock, the moving direction of then confirming cursor upwards;
(3) if 2k π+3 π/4 α≤2k π+5 π/4 o'clock, the moving direction of then confirming cursor left;
(4) if 2k π+5 π/4 α≤2k π+7 π/4 o'clock confirm that then the moving direction of cursor is downward,
Wherein, k is an arbitrary integer, and π is 180 degree, and α is an angle.
In a preferred embodiment, can adopt click location is true origin, and respectively along-45 degree, 45 spend from initial point, 135 degree, and 225 degree send ray, and each quadrant is divided.If 2k is π-π/4 < α≤2k π+π/>4 o'clock, glide direction is described more near horizontal positive axis, and the moving direction that then can confirm next step is for moving right; If 2k is π+π/4 < α≤2k π+3 π/>4 o'clock, glide direction is described more near vertical positive axis, and the moving direction that then can confirm next step is for moving up; If 2k were π+< glide direction would be explained more near laterally negative semiaxis in α≤2k π+5 π/>4 o'clock, and the moving direction of then confirming cursor is left in 3 π/4; If 2k were π+< α≤2k π+7 π/>4 o'clock would explain that glide direction more near vertically negative semiaxis, confirms that then the moving direction of cursor is downward in 5 π/4.
In a preferred embodiment, Fig. 2 is the synoptic diagram of definite method of cursor display position according to the preferred embodiment of the invention.As shown in Figure 2, under the text editing state, can adopt following three kinds of modes to confirm the moving direction of cursor:
Mode one, suppose that A is first click location on the touch display screen, its coordinate is that (x1, y1), portable terminal will (x1, y1) as the initial position of cursor, the display highlighting position be at the A place, promptly between the alphabetical D and E of text the third line on the touch display screen.Touching medium keeps pinning state in first click location, second click location, first click location right-hand on touch-screen to, the i.e. B place of touch display screen, its coordinate be (x2, y2).Through calculating the angle that arctan ((y2-y1)/(x2-x1)) obtains vector shift AB and x axle positive dirction.Because this angle is between positive 45 degree and negative 45 degree, therefore, the moving direction that can confirm cursor is direction to the right.
Mode two, suppose that A is first click location on the touch display screen, its coordinate is that (x1, y1), portable terminal will (x1, y1) as the initial position of cursor, the display highlighting position be at the A place, promptly between the alphabetical D and E of text the third line on the touch display screen.Touching medium leaves first click location, and clicks second click location outside first click location on touch-screen and keep pinning state, i.e. the B place of touch display screen, its coordinate be (x2, y2).Through calculating the angle that arctan ((y2-y1)/(x2-x1)) obtains vector shift AB and x axle positive dirction.Because this angle is between positive 45 degree and negative 45 degree, therefore, the moving direction that can confirm cursor is direction to the right.
Mode three, suppose that A is first click location on the touch display screen, its coordinate is that (x1, y1), portable terminal will (x1, y1) as the initial position of cursor, the display highlighting position be at the A place, promptly between the alphabetical D and E of text the third line on the touch display screen.After clicking second click location outside first click location of touching medium on touch-screen, touching medium leaves touch display screen, promptly leaves A place shown in Fig. 2 and B place simultaneously, wherein, the coordinate that B is ordered be (x2, y2).Through calculating the angle that arctan ((y2-y1)/(x2-x1)) obtains vector shift AB and x axle positive dirction.Because this angle is between positive 45 degree and negative 45 degree, therefore, the moving direction that can confirm cursor is direction to the right.
Preferably, in step S106, according to moving direction cursor being moved to position to be shown can may further comprise the steps:
Step S4: whether the senses touch medium leaves second click location;
Step S5: if then cursor is moved along moving direction from first click location according to preset travel frequency;
Step S6: whether the senses touch medium leaves first click location;
Step S7: if then stop moving cursor.
In a preferred embodiment, as shown in Figure 2, the user can leave second click location with touching medium, according to the above-mentioned moving direction of cursor on touch display screen of having confirmed for to begin to move right from A.Cursor according to preset travel frequency continuously to the right one by one literal move, in the preferred embodiment, the user hopes to edit the third line letter H.When cursor moves between the position the third line letter G and H that the user hopes to edit, i.e. the C place of touch display screen, the user can leave first click location with touching medium, cursor stops at the C place immediately, its coordinate be (x3, y1).At this moment, the user can continue input characters.
In like manner, as shown in Figure 2, if the user hopes to edit the alphabetical n of first row, second click location of can be earlier clicking according to the user (for example: judge from the angle of the positive axis formation of the vector shift of A point to D point formation and x axle to drop in which scope D place).Through calculating this angle of discovery between positive 45 degree and negative 45 degree, can confirm that then cursor will move right earlier.Touching medium leaves second click location, and when cursor moves between J and the K, touching medium leaves first click location.Touching medium is clicked the current position of cursor then, and this moment, cursor position can be used as first click location.(for example: the D place) which scope the angle of the positive axis formation of judgement vector shift that point forms from the cursor position to D and x axle drops in second click location of clicking according to the user again.Through calculating this angle of discovery between positive 45 degree and positive 135 degree, can confirm that then cursor will move up.Touching medium leaves second click location, and when cursor moves between m and the n, touching medium leaves first click location.Cursor stops between m and the n immediately, and the user can continue input characters.
Preferably, in step S106, according to moving direction cursor is moved to position to be shown and can comprise following operation:
Step S4: whether the senses touch medium leaves first click location and/or second click location;
Step S5: if then cursor is moved along moving direction from first click location according to preset travel frequency;
Step S6: the clicking operation of response touching medium stops moving cursor.
In a preferred embodiment, touching medium can leave first click location and second click location simultaneously, and is as shown in Figure 2; Can leave A point and B point simultaneously; At this moment, according to above-mentioned analysis, the moving direction that can confirm cursor be right-hand to; Therefore, cursor still moves from first click location cursor according to preset travel frequency along moving direction.(for example: in the time of the C point), the clicking operation of response user optional position on touch-screen stops to move, and the user can continue input characters when cursor moves to the literal that the user need edit.
Preferably, in step S106, according to moving direction cursor being moved to position to be shown can comprise:
Step S7: whether the senses touch medium leaves first click location;
Step S8: if whether that judges touching medium and second click location contacts duration greater than the second preset duration;
Step S9: if then cursor is moved along moving direction from first click location according to preset travel frequency;
Step S10: whether the senses touch medium leaves second click location;
Step S11: if then stop moving cursor.
In a preferred embodiment, touching medium can leave first click location earlier, and then clicks second click location and keep long by state; As shown in Figure 2, can leave the A point earlier and click the B point again and keep long by state, at this moment; According to above-mentioned analysis; The moving direction that can confirm cursor be right-hand to, therefore, cursor still moves from first click location cursor according to preset travel frequency along moving direction.(for example: in the time of the C point), touching medium leaves the B point, and cursor stops to move, and the user can be at C point editor literal when cursor moves to the literal that the user need edit.
Fig. 3 is the structured flowchart according to definite device of the cursor display position of the embodiment of the invention.As shown in Figure 3; Definite device of this cursor display position can comprise: acquisition module 10; But be used for when first click location in the editing area on touching medium and the mobile terminal screen contact duration greater than the first preset duration time, but obtain first click location and second click location of touching medium in editing area; Determination module 20 is used for the moving direction of confirming cursor according to first click location that gets access to and second click location; Execution module 30 is used for according to moving direction cursor being moved to position to be shown.
Adopt device as shown in Figure 3, it is low to have solved in the correlation technique cursor positioning accuracy rate, is easy to generate the problem of maloperation; And then realized quick response, automatic moving cursor, accurate positional editing position; Reduce misoperation of users, improved the speed of literal input.
Preferably, as shown in Figure 4, determination module 20 can comprise: acquiring unit 200 is used for obtaining respectively the coordinate of first click location and the coordinate of second click location; Computing unit 202, being used for according to the coordinate of first click location that gets access to and the coordinate Calculation of second click location is the angle of the forward reference axle of true origin from the vector shift of first click location to the second click location and with first click location; Confirm unit 204, be used for confirming the moving direction of cursor according to the angle that calculates.
In preferred implementation process, above-mentioned definite unit 204, be used in 2k π-π/4 α≤2k π+π/4 o'clock, the moving direction of then confirming cursor is to the right; Perhaps, in 2k π+π/4 α≤2k π+3 π/4 o'clock, the moving direction of then confirming cursor is upwards; Perhaps, in 2k π+3 π/4 α≤2k π+5 π/4 o'clock, the moving direction of then confirming cursor is left; Perhaps, < α≤2k π+7 π/>4 o'clock confirm that then the moving direction of cursor is downward, and wherein, k is an arbitrary integer, and π is 180 degree, and α is an angle in 2k π+5 π/4.
Preferably, as shown in Figure 4, above-mentioned execution module 30 can comprise: first detecting unit 300 is used for the senses touch medium and whether leaves second click location; First mobile unit 302 is used for being output as when being at first detecting unit, according to preset travel frequency cursor is moved along moving direction from first click location; Second detecting unit 304 is used for the senses touch medium and whether leaves first click location; First processing unit 306 is used for being output as when being at second detecting unit, stops moving cursor.
Preferably, as shown in Figure 5, above-mentioned execution module 30 can also comprise: the 3rd detecting unit 308 is used for the senses touch medium and whether leaves first click location and/or second click location; Second mobile unit 310 is used for being output as when being at the 3rd detecting unit, according to preset travel frequency cursor is moved along moving direction from first click location; Second processing unit 312 is used to respond the clicking operation of touching medium, stops moving cursor.
Preferably, as shown in Figure 6, above-mentioned execution module 30 can also comprise: the 4th detecting unit 314 is used to detect said touching medium and whether leaves said first click location; Judging unit 316 is used for being output as when being at said the 4th detecting unit, and whether that judges said touching medium and said second click location contacts duration greater than the second preset duration; The 3rd mobile unit 318 is used for being output as when being at said judging unit, according to preset travel frequency said cursor is moved along said moving direction from said first click location; The 5th detecting unit 320 is used to detect said touching medium and whether leaves said second click location; The 3rd processing unit 322 is used for being output as when being at said the 5th detecting unit, stops to move said cursor.
Below in conjunction with preferred embodiment shown in Figure 7 above-mentioned preferred implementation is done further description.
Fig. 7 is definite schematic representation of apparatus of cursor display position according to the preferred embodiment of the invention.As shown in Figure 7; The preferred embodiment can comprise location identification module, microprocessor module and touch display screen; Wherein, location identification module (being equivalent to above-mentioned acquisition module), it connects microprocessor module and touch display screen respectively; Be used for the position coordinates that the recognizing touch operation medium touches on display screen, and this location coordinate information is sent to microprocessor module; Touch display screen, its link position identification module and microprocessor module are used to touch and click and the position of display highlighting.Microprocessor module (being equivalent to above-mentioned determination module and execution module) can adopt the process chip of portable terminal; It is link position identification module and touch display screen respectively; The location coordinate information that the receiving position identification module sends, and confirm direction and the position that cursor moves according to a plurality of location coordinate informations that receive.
In a preferred embodiment, as shown in Figure 2, under the text editing state; Touching medium is clicked the A place of touch display screen, and (x1 y1) reports microprocessor module to the coordinate position that location identification module is ordered A; Microprocessor module is with (x1; Y1) as the initial position of cursor, the display highlighting position is at the A place, promptly between the alphabetical D and E of text the third line on the touch display screen.First click location keeps pinning state, second click location drops on first click location on the touch-screen right-hand to.Second click location is at the B place of touch display screen, and (x2 y2) reports microprocessor to the coordinate position that location identification module is ordered B.Microprocessor calculates the angle that arctan ((y2-y1)/(x2-x1)) obtains vector shift AB and x axle positive dirction.Because this angle is between positive 45 degree and negative 45 degree, therefore, the moving direction that can confirm cursor is direction to the right.Cursor according to preset travel frequency continuously to the right one by one literal move, in the preferred embodiment, the user hopes to edit the third line letter H.When cursor moves between the position the third line letter G and H that the user hopes to edit, i.e. the C place of touch display screen, the user can leave first click location with touching medium, cursor stops at the C place immediately, its coordinate be (x3, y1).At this moment, the user can continue input characters.
In a preferred embodiment, as shown in Figure 2, under the text editing state; Touching medium is clicked the A place of touch display screen, and (x1 y1) reports microprocessor module to the coordinate position that location identification module is ordered A; Microprocessor module is with (x1; Y1) as the initial position of cursor, the display highlighting position is at the A place, promptly between the alphabetical D and E of text the third line on the touch display screen.First click location keeps pinning state, and on touch-screen, clicks second click location outside first click location.Second click location is at the B place of touch display screen, and (x2 y2) reports microprocessor to the coordinate position that location identification module is ordered B.Then, touching medium leaves touch display screen, and microprocessor calculates the angle that arctan ((y2-y1)/(x2-x1)) obtains vector shift AB and x axle positive dirction.Because this angle is between positive 45 degree and negative 45 degree, therefore, the moving direction that can confirm cursor is direction to the right.Cursor according to preset travel frequency continuously to the right one by one literal move, in the preferred embodiment, the user hopes to edit the third line letter H.When cursor moves between the position the third line letter G and H that the user hopes to edit, i.e. the C place of touch display screen, the user can click optional position on the touch display screen, cursor stops at the C place immediately, its coordinate be (x3, y1).At this moment, the user can continue input characters.
In a preferred embodiment, as shown in Figure 2, under the text editing state; Touching medium is clicked the A place of touch display screen, and (x1 y1) reports microprocessor module to the coordinate position that location identification module is ordered A; Microprocessor module is with (x1; Y1) as the initial position of cursor, the display highlighting position is at the A place, promptly between the alphabetical D and E of text the third line on the touch display screen.Touching medium leaves first click location and outside first click location, clicks second click location and keep long by state.Second click location is at the B place of touch display screen, and (x2 y2) reports microprocessor to the coordinate position that location identification module is ordered B.Microprocessor calculates the angle that arctan ((y2-y1)/(x2-x1)) obtains vector shift AB and x axle positive dirction.Because this angle is between positive 45 degree and negative 45 degree, therefore, the moving direction that can confirm cursor is direction to the right.Cursor according to preset travel frequency continuously to the right one by one literal move, in the preferred embodiment, the user hopes to edit the third line letter H.When cursor moves between the position the third line letter G and H that the user hopes to edit, i.e. the C place of touch display screen, the user can leave second click location with touching medium, cursor stops at the C place immediately, its coordinate be (x3, y1).At this moment, the user can continue input characters.
From above description; Can find out; The foregoing description has been realized following technique effect (need to prove that these effects are effects that some preferred embodiment can reach): realized quick response, automatically moving cursor, accurately positional editing position; Reduce misoperation of users, improved the speed of literal input.
Obviously, it is apparent to those skilled in the art that above-mentioned each module of the present invention or each step can realize with the general calculation device; They can concentrate on the single calculation element; Perhaps be distributed on the network that a plurality of calculation element forms, alternatively, they can be realized with the executable program code of calculation element; Thereby; Can they be stored in the memory storage and carry out, and in some cases, can carry out step shown or that describe with the order that is different from here by calculation element; Perhaps they are made into each integrated circuit modules respectively, perhaps a plurality of modules in them or step are made into the single integrated circuit module and realize.Like this, the present invention is not restricted to any specific hardware and software combination.
The above is merely the preferred embodiments of the present invention, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.All within spirit of the present invention and principle, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (12)

1. definite method of a cursor display position is characterized in that, comprising:
But when first click location in the editing area on touching medium and the mobile terminal screen contact duration greater than the first preset duration time, but obtain said first click location and second click location of said touching medium in said editing area;
Confirm the moving direction of cursor according to said first click location that gets access to and said second click location;
According to said moving direction cursor is moved to position to be shown.
2. method according to claim 1 is characterized in that, confirms that according to said first click location that gets access to and said second click location moving direction of said cursor comprises:
Obtain the coordinate of said first click location and the coordinate of said second click location respectively;
According to the coordinate Calculation of the coordinate of said first click location that gets access to and said second click location from the vector shift of said first click location to said second click location and the angle of the forward reference axle that is true origin with said first click location;
Confirm the moving direction of said cursor according to the said angle that calculates.
3. method according to claim 2 is characterized in that, it is one of following to confirm that according to the said angle that calculates the moving direction of said cursor comprises:
If 2k is π-π/4 < α≤2k π+π/>4 o'clock, the moving direction of then confirming said cursor to the right;
If 2k is π+π/4 < α≤2k π+3 π/>4 o'clock, the moving direction of then confirming said cursor upwards;
If 2k is π+3 π/4 α≤2k π+5 π/4 o'clock, the moving direction of then confirming said cursor is left;
If 2k is π+5 π/4 α≤2k π+7 π/4 o'clock confirm that then the moving direction of said cursor is downward,
Wherein, k is an arbitrary integer, and π is 180 degree, and α is said angle.
4. according to each described method in the claim 1 to 3, it is characterized in that, according to said moving direction said cursor moved to said position to be shown and comprise:
Detect said touching medium and whether leave said second click location;
If then said cursor is moved along said moving direction from said first click location according to preset travel frequency;
Detect said touching medium and whether leave said first click location;
If then stop to move said cursor.
5. according to each described method in the claim 1 to 3, it is characterized in that, according to said moving direction said cursor moved to said position to be shown and comprise:
Detect said touching medium and whether leave said first click location and/or said second click location;
If then said cursor is moved along said moving direction from said first click location according to preset travel frequency;
Respond the clicking operation of said touching medium, stop to move said cursor.
6. according to each described method in the claim 1 to 3, it is characterized in that, according to said moving direction said cursor moved to said position to be shown and comprise:
Detect said touching medium and whether leave said first click location;
If whether that judges said touching medium and said second click location contacts duration greater than the second preset duration;
If then said cursor is moved along said moving direction from said first click location according to preset travel frequency;
Detect said touching medium and whether leave said second click location;
If then stop to move said cursor.
7. definite device of a cursor display position is characterized in that, comprising:
Acquisition module; But be used for when first click location in the editing area on touching medium and the mobile terminal screen contact duration greater than the first preset duration time, but obtain said first click location and second click location of said touching medium in said editing area;
Determination module is used for the moving direction of confirming cursor according to said first click location that gets access to and said second click location;
Execution module is used for according to said moving direction cursor being moved to position to be shown.
8. device according to claim 7 is characterized in that, said determination module comprises:
Acquiring unit is used for obtaining respectively the coordinate of said first click location and the coordinate of said second click location;
Computing unit is used for coordinate Calculation according to the coordinate of said first click location that gets access to and said second click location from the vector shift of said first click location to said second click location and the angle of the forward reference axle that is true origin with said first click location;
Confirm the unit, be used for confirming the moving direction of said cursor according to the said angle that calculates.
9. device according to claim 8 is characterized in that, said definite unit, be used in 2k π-π/4 α≤2k π+π/4 o'clock, the moving direction of then confirming said cursor is to the right; Perhaps, in 2k π+π/4 α≤2k π+3 π/4 o'clock, the moving direction of then confirming said cursor is upwards; Perhaps, in 2k π+3 π/4 α≤2k π+5 π/4 o'clock, the moving direction of then confirming said cursor is left; Perhaps, < α≤2k π+7 π/>4 o'clock confirm that then the moving direction of said cursor is downward, and wherein, k is an arbitrary integer, and π is 180 degree, and α is said angle in 2k π+5 π/4.
10. according to each described device in the claim 7 to 9, it is characterized in that said execution module comprises:
First detecting unit is used to detect said touching medium and whether leaves said second click location;
First mobile unit is used for being output as when being at said first detecting unit, according to preset travel frequency said cursor is moved along said moving direction from said first click location;
Second detecting unit is used to detect said touching medium and whether leaves said first click location;
First processing unit is used for being output as when being at said second detecting unit, stops to move said cursor.
11., it is characterized in that said execution module also comprises according to each described device in the claim 7 to 9:
The 3rd detecting unit is used to detect said touching medium and whether leaves said first click location and/or said second click location;
Second mobile unit is used for being output as when being at said the 3rd detecting unit, according to preset travel frequency said cursor is moved along said moving direction from said first click location;
Second processing unit is used to respond the clicking operation of said touching medium, stops to move said cursor.
12., it is characterized in that said execution module also comprises according to each described device in the claim 7 to 9:
The 4th detecting unit is used to detect said touching medium and whether leaves said first click location;
Judging unit is used for being output as when being at said the 4th detecting unit, and whether that judges said touching medium and said second click location contacts duration greater than the second preset duration;
The 3rd mobile unit is used for being output as when being at said judging unit, according to preset travel frequency said cursor is moved along said moving direction from said first click location;
The 5th detecting unit is used to detect said touching medium and whether leaves said second click location;
The 3rd processing unit is used for being output as when being at said the 5th detecting unit, stops to move said cursor.
CN201210205364.4A 2012-06-20 2012-06-20 The determination method and apparatus of display position of cursor Active CN102750035B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210205364.4A CN102750035B (en) 2012-06-20 2012-06-20 The determination method and apparatus of display position of cursor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210205364.4A CN102750035B (en) 2012-06-20 2012-06-20 The determination method and apparatus of display position of cursor

Publications (2)

Publication Number Publication Date
CN102750035A true CN102750035A (en) 2012-10-24
CN102750035B CN102750035B (en) 2017-12-05

Family

ID=47030279

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210205364.4A Active CN102750035B (en) 2012-06-20 2012-06-20 The determination method and apparatus of display position of cursor

Country Status (1)

Country Link
CN (1) CN102750035B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103268184A (en) * 2013-05-17 2013-08-28 广东欧珀移动通信有限公司 Method and device for moving text cursor
WO2013189224A1 (en) * 2012-06-20 2013-12-27 中兴通讯股份有限公司 Cursor display position determination method and device
CN103777959A (en) * 2014-02-17 2014-05-07 李海源 Use method of virtual mouse
CN104063162A (en) * 2013-03-20 2014-09-24 腾讯科技(深圳)有限公司 Method and device for inputting handwritten information
CN105677169A (en) * 2014-11-19 2016-06-15 阿里巴巴集团控股有限公司 Method and device for enabling mouse pointer to automatically follow cursor
WO2017193584A1 (en) * 2016-05-13 2017-11-16 中兴通讯股份有限公司 Method and apparatus for moving interface element

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070260981A1 (en) * 2006-05-03 2007-11-08 Lg Electronics Inc. Method of displaying text using mobile terminal
CN102171635A (en) * 2008-10-07 2011-08-31 捷讯研究有限公司 Portable electronic device and method of controlling same
CN102193734A (en) * 2010-03-19 2011-09-21 进益研究公司 Portable electronic device and method of controlling same
CN102654821A (en) * 2011-03-04 2012-09-05 腾讯科技(深圳)有限公司 Method and device for locating text cursor

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070260981A1 (en) * 2006-05-03 2007-11-08 Lg Electronics Inc. Method of displaying text using mobile terminal
CN102171635A (en) * 2008-10-07 2011-08-31 捷讯研究有限公司 Portable electronic device and method of controlling same
CN102193734A (en) * 2010-03-19 2011-09-21 进益研究公司 Portable electronic device and method of controlling same
CN102654821A (en) * 2011-03-04 2012-09-05 腾讯科技(深圳)有限公司 Method and device for locating text cursor

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013189224A1 (en) * 2012-06-20 2013-12-27 中兴通讯股份有限公司 Cursor display position determination method and device
CN104063162A (en) * 2013-03-20 2014-09-24 腾讯科技(深圳)有限公司 Method and device for inputting handwritten information
CN104063162B (en) * 2013-03-20 2018-04-27 腾讯科技(深圳)有限公司 The method and device of entering handwritten information
CN103268184A (en) * 2013-05-17 2013-08-28 广东欧珀移动通信有限公司 Method and device for moving text cursor
CN103777959A (en) * 2014-02-17 2014-05-07 李海源 Use method of virtual mouse
CN105677169A (en) * 2014-11-19 2016-06-15 阿里巴巴集团控股有限公司 Method and device for enabling mouse pointer to automatically follow cursor
WO2017193584A1 (en) * 2016-05-13 2017-11-16 中兴通讯股份有限公司 Method and apparatus for moving interface element

Also Published As

Publication number Publication date
CN102750035B (en) 2017-12-05

Similar Documents

Publication Publication Date Title
CN103294401B (en) A kind of icon disposal route and device with the electronic equipment of touch-screen
CN102799358A (en) Method and device for determining display position of cursor
CN103186345B (en) The section system of selection of a kind of literary composition and device
CN102750035A (en) Method and device for determining display position of cursor
CN107077295A (en) A kind of method, device, electronic equipment, display interface and the storage medium of quick split screen
CN103019588A (en) Touch positioning method, device and terminal
CN106293315A (en) The method and apparatus that floating frame shows
CN105760041A (en) Unread message display method and system
CN103838456A (en) Method and system for controlling display positions of desktop icons
CN103207750A (en) Method and device for scaling icon
CN103150093B (en) The method of a kind of operation indicating identifier movement, device and terminal
CN103677721A (en) Terminal display interface zooming method and terminal device
CN105807997A (en) Touch screen sensitivity adjustment method and device
CN102117165A (en) Touch input processing method and mobile terminal
CN104423869A (en) Text erasing method and device
CN108279848B (en) Display method and electronic equipment
CN104461256A (en) Method and system for displaying interface elements
CN103777875A (en) Human-machine interaction method and device and electronic device thereof
CN103164132A (en) Portable electronic terminal, unlocking method and device thereof
CN104169861A (en) Method and apparatus for combining contact information, and terminal
CN103116446B (en) A kind of list interactive method for touch portable device
CN103150111A (en) Symbol inputting method, device and terminal
CN103034426B (en) A kind of terminal and contact person&#39;s searching method thereof
EP2977862B1 (en) Information processing device and information processing method
CN104063142A (en) Information processing method, device and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant