Summary of the invention
In view of above content, be necessary to provide a kind of mobile object to click localization method, can and click the anchor point of mobile object and distinguish, improve the accuracy clicked.
In view of above content, also be necessary to provide a kind of mobile object to click positioning system, can and click the anchor point of mobile object and distinguish, improve the accuracy clicked.
Described mobile object clicks localization method and comprises: the detecting step: the coordinate information of the touch position of object on this Touch Screen received according to the Touch Screen of electronic equipment, detect the some constituency scope whether this object touches this mobile object; Obtaining step: when this object touches the some constituency scope of this mobile object, obtain the current position coordinates of the central point of this mobile object in Touch Screen; Calculation procedure: current position coordinates and default off-set value according to described central point, calculate the position coordinates made new advances; And setting steps: the new position coordinates calculated is set to the current position coordinates of anchor point of this mobile object.
Described mobile object clicks positioning system and comprises: detecting module, and the coordinate information of the touch position of the object received for the Touch Screen according to electronic equipment on this Touch Screen, detect the some constituency scope whether this object touches this mobile object; Acquisition module, when touching the some constituency scope of this mobile object when this object, obtain the current position coordinates of the central point of this mobile object in Touch Screen; Computing module, for the position coordinates current according to described central point and default off-set value, calculate the position coordinates made new advances; And module is set, be set to the current position coordinates of anchor point of this mobile object for the new position coordinates calculated.
Compared to prior art, described mobile object clicks localization method and system, can and click the anchor point of mobile object and distinguish, when the user clicks mobile object, finger touches is in a constituency, and the anchor point of mobile object is outside a constituency, so anchor point can not hidden by finger, the user is the indicating positions of visual this mobile object exactly, thereby can determine exactly the target location that need to move to, and improves the accuracy clicked.
Embodiment
Consulting shown in Fig. 1, is the applied environment figure that mobile object of the present invention clicks the positioning system preferred embodiment.Described mobile object clicks in the processor 3 that positioning system 10 runs on electronic equipment 1, in described electronic equipment 1, also comprises Touch Screen 2.In the present embodiment, described electronic equipment 1 can be mobile phone, panel computer etc.The coordinate information of the touch position of described Touch Screen 2 when showing mobile object and receiving the user with this Touch Screen 2 of finger touches.
Described mobile object refers to the current icon that reads position of indication in Touch Screen 2, is similar to the cursor of mouse.In prior art, the anchor point of mobile object is exactly the center position (consulting shown in Fig. 2 A) at this mobile object, therefore when the user clicks this mobile object, finger is easy to block the anchor point (consulting shown in Fig. 2 B) of this mobile object, causes user's indicating positions of visual this mobile object exactly.Described anchor point is the indicated position of this mobile object.Described some constituency clicks effective touch area of this mobile object with finger for the user, during described some constituency of user's finger touches, just can click and mobile this mobile object.
Mobile object described in the present invention, anchor point, outside a constituency scope, blocks anchor point in the time of can avoiding the user to click this mobile object.The part embodiment that icon shown in Fig. 3 (A) is mobile object of the present invention to (E).Wherein, dash area in each embodiment is a constituency, the anchor point that the top left corner apex of the first embodiment (being icon A), the 4th embodiment (being icon D) is this mobile object, the anchor point that the summit, the upper right corner of the second embodiment (being icon B) is this mobile object, the center of " ten " word shape pattern of the 3rd embodiment (being icon C), the 5th embodiment (being icon E) is the anchor point of this mobile object.It should be noted that, the mode of all definition anchor points beyond finger point constituency, do not limit anchor point and profile, color, position, direction, the size of putting constituency, all belong to mobile object scope of the present invention, include but not limited to several embodiment that occur in Fig. 3.
For the mobile object of different graphic, have different locating point positions, can set in advance an off-set value with respect to the central point of this mobile object, the position coordinates of central point adds the above off-set value, is exactly the position coordinates of anchor point.The shape of mobile object or vary in size, default off-set value is also different.Consulting shown in Fig. 4, is the concrete schematic diagram of the mobile object of the 3rd embodiment in Fig. 3.The figure scope of this mobile object 11 is as shown in outmost dashed rectangle in figure, put the circle that is shaped as in constituency 12, but in the present embodiment, scope shown in little dashed rectangle outside this constituency 12 is effective touch area in this constituency 12, in the time of in the scope of this little dashed rectangle of finger touches of user, all can be clicked and move operation this mobile object 11.Position coordinates (X according to the central point 13 of this mobile object
1, Y
1) and default off-set value (X
0, Y
0), can calculate the position coordinates (X of anchor point 14
2, Y
2), computing formula is X
2=X
1+ X
0, Y
2=Y
1+ Y
0.As can be seen from Figure 4, the anchor point 14 of mobile object 11 separates with some constituency 12, and wherein, anchor point 14 is positioned at outside 12 scopes of a constituency.
Consulting shown in Fig. 5, is the functional block diagram that mobile object of the present invention clicks the positioning system preferred embodiment.
Described mobile object clicks positioning system 10 and comprises detecting module 100, acquisition module 200, computing module 300 and module 400 is set.
The coordinate information of described detecting module 100 touch position on this Touch Screen 2 for the user's that receives according to Touch Screen 2 finger (or other object, as stylus), whether the detecting user touches the some constituency scope of this mobile object.
Described acquisition module 200 when touching the some constituency scope of this mobile object as the user, obtains the current position coordinates of central point of this mobile object in Touch Screen 2.In the present embodiment, when Touch Screen 2 shows this mobile object, understand the information relevant for this mobile object location, generally, the position coordinates of putting centered by the position coordinates of this mobile object.Touch Screen 2 is sent to mobile object by the position coordinates of this central point and clicks positioning system 10, and mobile object clicks positioning system 10 can calculate according to the position coordinates of this central point the position coordinates of corresponding anchor point.
Described computing module 300, for the position coordinates current according to described central point and default off-set value, calculates the position coordinates made new advances.For example, consult shown in Fig. 6, the current position coordinates of described central point is (6.4,5.3), and default off-set value is (3.2,3.2), and the new position coordinates calculated is (3.2,8.5).
The described module 400 that arranges is set to the current position coordinates of anchor point of this mobile object for the new position coordinates calculated, the current indicated position of this mobile object is this residing position of new position coordinates, then triggers described detecting module 100 and continues the some constituency scope whether the detecting user touches this mobile object.Point constituency scope when detecting the user and do not touch this mobile object, when user's finger has been decontroled this mobile object, finish described position fixing process.
Consulting shown in Fig. 7, is the process flow diagram that mobile object of the present invention clicks the localization method preferred embodiment.
Step S10, the coordinate information of the touch position of the user's that described detecting module 100 receives according to Touch Screen 2 finger (or other object, as stylus) on this Touch Screen 2, whether the detecting user touches the some constituency scope of this mobile object.If the user touches the some constituency scope of this mobile object, perform step S12.If the user does not touch the some constituency scope of this mobile object, flow process finishes.
Step S12, the current position coordinates of central point that described acquisition module 200 obtains this mobile object in Touch Screen 2.
Step S14, the position coordinates that described computing module 300 is current according to described central point and default off-set value, calculate the position coordinates made new advances.
Step S16, describedly arrange the current position coordinates of anchor point that new position coordinates that module 400 calculates is set to this mobile object, and the current indicated position of this mobile object is this residing position of new position coordinates.
Consult shown in Fig. 8 A-8B, the anchor point of mobile object distinguishes with clicking, and when the user clicks mobile object, finger touches is in a constituency, and the anchor point of mobile object is outside a constituency, so anchor point can not hidden by finger.User's indicating positions of visual this mobile object exactly when mobile this mobile object, improve the accuracy of operation.
Above embodiment is only unrestricted in order to technical scheme of the present invention to be described, although with reference to preferred embodiment, the present invention is had been described in detail, those of ordinary skill in the art is to be understood that, can modify or be equal to replacement technical scheme of the present invention, and not break away from the spirit and scope of technical solution of the present invention.