Embodiment
The embodiment of the invention provides a kind of implementation method and device of custom menu, and by track or the figure that draws arbitrarily, the user can define oneself menu and shortcut, thereby has made things convenient for user's operation, has improved user's operating experience.
For better describing the embodiment of the invention, now in conjunction with the accompanying drawings specific embodiments of the invention are described, the schematic flow sheet of the embodiment of the invention 1 method that provides is provided, comprise among the figure:
Step 11: preestablish the corresponding relation between self-defined trace graphics and the corresponding function interface.
In this step, at first the user imports self-defined trace graphics on mobile terminal touch screen, then according to the self-defined trace graphics that the user imported, just can preestablish the corresponding relation between described self-defined trace graphics and the corresponding function interface.The self-defined trace graphics that above-mentioned user imported can be track or the figure that is drawn arbitrarily according to the idea of oneself by the user.
In the specific implementation process, the user imports after the self-defined trace graphics on mobile terminal touch screen, can preserve the relevant information of self-defined trace graphics that the user imports earlier, and then preestablish the corresponding relation between the function interface that described self-defined trace graphics and described user need realize.The method of the preservation self-defined trace graphics relevant information of importing can have multiple, and for example the self-defined trace graphics that can earlier the user be imported on mobile terminal touch screen resolves into various figures; And then preserve and respectively to decompose figure and respectively to decompose angle between the figure, that is to say and self-defined trace graphics can be preserved according to the mode of polar plot, promptly preserve by the description of mathematical method; Above-mentioned each figure that resolves into can comprise following one or more fundamental elements: horizontal line, vertical line, oblique line, curve or circle, and the combination of for example resolving into horizontal line and vertical line, or the combination of horizontal line and curve etc.
The input that how comes recording user with the explanation of concrete example below according to the mode of polar plot, its basic ideas are the combinations of self-defined trace graphics being resolved into various simple graph elements; Recording storage is decomposed figure then, and respectively decomposes the angle between the figure, and such benefit is size, the problem that causes different in size that can solve twice tablet pattern in user front and back; And then judge according to above-mentioned record whether the figure of twice input is similar or consistent before and after the user.
The implementation procedure of above-mentioned example is not considered the order of strokes observed in calligraphy, can think that the figure of being imported is same figure from left to right or from right to left; If consider that the order of strokes observed in calligraphy also can realize, specifically can realize by expanding.
With a simple example, the user imports self-defined trace graphics and " colludes (√) " on mobile terminal touch screen, be illustrated in figure 2 as the record synoptic diagram that example that present embodiment is enumerated " colludes ", among Fig. 2 the user import self-defined trace graphics the dot matrix of process be recorded as very (true), so will be among the figure noting for true.
At first judge that according to dot matrix trend this figure " √ " is dimeric, the explanation of trend here is exactly x, and the coordinate of y all increases, and perhaps all reduces, and perhaps one increases a situation about reducing.
Wherein a part of figure of noting this figure " √ " then passes through coordinate a little, and is wherein with identical being put in the row of x coordinate, specific as follows:
A[1][1]
A[2][2]
A[3][3]
A[3][3]
A[4][4]A[4][8]
A[5][5]A[5][7]
A[6][6]
Above-mentioned some matrix representation: x, the y coordinate increases together, and compares the position of mid point, finds that the position of point is very little with the trajectory error that streaks; And then judge that mid point is respectively at A[1] [1] and A[6] position of mid point of [6], the trajectory error of finding and streaking is also very little, thus think that this part figure is a line, and be not straight line but oblique line; In like manner, also can judge another part figure also is oblique line.
And can calculate the angle of above-mentioned two oblique lines, just can form by two oblique lines by this self-defined trace graphics " √ " of recording storage then, and the angle between these two oblique lines.
Below at the instantiation of enumerating a self-defined trace graphics of recorded and stored " circle (zero) ", be illustrated in figure 3 as the record synoptic diagram of example that present embodiment is enumerated " circle ", according to above-mentioned trend determination methods as can be known, this self-defined trace graphics " zero " is quadruple, with a part wherein is that example describes, by first quartile, its dot matrix is recorded as:
A[18][0]
A[17][0]
A[16][0]
A[15][0]
A[14][0]A[14][1]
A[13][1]
A[12][1]A[12][2]
A[11][2]A[11][3]
A[10][3]A[10][4]
A[9][5]
A[8][6]A[8][7]A[8][8]A[8][10]A[8][11]A[8][12]
In above-mentioned dot matrix, take out the coordinate of two end points, calculate terminal A [8] [12] and A[18] mid point of [0] is A[13] [6], and the track that the user streaks is A[8] [6] less than A[13] [6]; In like manner judge A[8 more respectively] [12] and A[8] [6], and A[8] [6] and A[18] mid point of [0]; Find relatively that then the track that the user streaks all is littler than corresponding mid point, so can think that the user is protruding curve; Otherwise, if all big, then would be recessed curve.
Again the figure of other quadrants is judged and record with above-mentioned mode, the point that four trend are changed couples together then, calculate each other directly angle, and note, be illustrated in figure 4 as the synoptic diagram of angle recordings between the curve of example that present embodiment is enumerated " circle ".The information of final this self-defined trace graphics " zero " that is write down just is four protruding curves, and four curves angle each other.
Giving one example, for self-defined trace graphics " 2 ", be illustrated in figure 5 as the record synoptic diagram of example that present embodiment is enumerated " 2 ", by above-mentioned determination methods, just can draw this self-defined trace graphics " 2 " is two protruding curves, an oblique line, a straight line, and three angles.
In the specific implementation process, angle differs and can have certain error, and this error can be set in advance, as long as in the scope that error allows, just can think that angle is the same.
In addition, except that above-mentioned coming the input of recording user of providing according to the polar plot mode, can also adopt other mode to realize, the self-defined trace graphics that can on mobile terminal touch screen, be imported according to the user for example, shared width and height are as number when writing down single figure word and showing, and record whenever walks crosswise and erect capablely of the shared proportional numers of number, also the self-defined trace graphics information recording storage of being imported can be got off by such recording mode.
Except that the dual mode that above-mentioned present embodiment is enumerated, the recording mode that other those skilled in the art can expect all can be applied to the embodiment of the invention.
In addition, in portable terminal, can also continue to keep original menu mode and offer user's use, switch according to the personal like to make things convenient for the user.
Step 12: the trace graphics that the identification user imports on mobile terminal touch screen.
In this step,, comprise that under free time or the keypad lock interface, the user is input trajectory figure on touch-screen once more, then can discern the trace graphics that the user imports earlier, and proceed successor operation on mobile terminal touch screen at the arbitrary interface of portable terminal.
Step 13: judge whether the trace graphics of being imported is consistent with this self-defined trace graphics.
In this step, identify the trace graphics that the user imports on mobile terminal touch screen after, just can judge further whether the trace graphics of being imported is consistent with this self-defined trace graphics.Concrete judgment mode is decided by the mode of this self-defined trace graphics record.
For example, if the input that comes recording user according to the above polar plot mode of enumerating, then judgment mode can be: at first according to the trace graphics of being imported, obtain the decomposition figure of institute's input trajectory figure and respectively decompose angle between the figure; The decomposition figure of judging institute's input trajectory figure then and preservation whether respectively decompose figure consistent, and whether the angle between the figure of respectively decomposing of respectively decomposing angle between the figure and preservation of institute's input trajectory figure differs within the scope of setting.
Whether by above judgement, it is consistent with this self-defined trace graphics just can to draw the trace graphics of being imported, and proceeds follow-up operation.
Step 14:, then enter the corresponding function interface of predefined and described self-defined trace graphics if consistent.
In this step, if judgement through above-mentioned steps 13, the trace graphics of being imported is consistent with this self-defined trace graphics, then can directly enter predefined and the corresponding function interface of this self-defined trace graphics, thereby realized the operation of portable terminal custom menu, make things convenient for user's operation, improved user's operating experience.
In addition,, then can not enter the function corresponding interface, can point out the user to re-enter herein, or provide corresponding option to allow the user whether select abort operation if judge that trace graphics and this self-defined trace graphics imported are inconsistent; Specifically can set according to the actual requirements.
For instance, be example with common portable terminal mobile phone, at the corresponding relation between foundation and the self-defined trace graphics on " newly-built note " this function interface of mobile phone; Import corresponding trace graphics by the user in arbitrary interface then, enter corresponding in advance good " newly-built note " interface, the process of concrete operations is as follows:
Be illustrated in figure 6 as " newly-built note " interface that the embodiment of the invention enumerates and set up the synoptic diagram of corresponding relation, among Fig. 6: at " newly-built note " interface, mobile phone can point out the user to import corresponding self-defined figure; The user according to prompting according to the idea of oneself draw trace graphics arbitrarily, for example " √ " in the present embodiment; Just set up the corresponding relation between the self-defined trace graphics " √ " that " newly-built note " interface and user imported this moment.
Be illustrated in figure 7 as the synoptic diagram that the user imports once more in the example that the embodiment of the invention enumerates, among Fig. 7: the user is at arbitrary interface, comprise under idle idle and the keypad lock interface, on touch-screen, trace graphics is drawn, mobile phone judges further whether the trace graphics of being imported is consistent with user's self-defining trace graphics in Fig. 6, and concrete judgment mode is seen described in the above method embodiment; If judge it is consistent, then carry out next step operation again.
Be illustrated in figure 8 as the synoptic diagram that enters " newly-built note " interface in the example that the embodiment of the invention enumerates, among Fig. 8: mobile phone judges that the trace graphics that the user imported is consistent with user's self-defining trace graphics in Fig. 6, then the mobile phone automatic unlocking also directly enters corresponding " newly-built note " interface, thereby realized the operation of portable terminal custom menu, make things convenient for user's operation, improved user's operating experience.
In addition, in embodiments of the present invention, consider that the user may to self-defining trace graphics or the interface be forgotten or confusion reigned, can be when entering the wait interface of respective interface or application, the animation that adds the trace graphics that has defined also can show trace graphics at the title place of respective interface.
In addition, in embodiments of the present invention, can also option be set at any function interface of portable terminal, trigger by set option and to set up described any function interface and user at the corresponding relation of importing on the mobile terminal touch screen between the self-defined trace graphics, so just can further facilitate user's operation, promote user's operating experience.
By the enforcement of technique scheme, just can adopt new menu operation form, make things convenient for user's operation, thereby improved user's operating experience.
The embodiment of the invention also provides a kind of implement device of custom menu, is illustrated in figure 9 as the structural representation of implement device that the embodiment of the invention provides, and described implement device comprises:
Corresponding relation is set up unit 91, is used for the self-defined trace graphics imported on mobile terminal touch screen according to the user, preestablishes the corresponding relation between described self-defined trace graphics and the corresponding function interface.
Trace graphics recognition unit 92 is used to be identified in the trace graphics of importing on this mobile terminal touch screen.
Trace graphics judging unit 93, be used to judge whether trace graphics that described trace graphics recognition unit identified and described corresponding relation are set up the self-defined trace graphics of being preserved unit 91 consistent, if consistent, then enter the corresponding function interface of predefined and described self-defined trace graphics.
In addition, above-mentioned corresponding relation is set up and can be comprised also in the unit 91 that graphical information preserves module 911, and this graphical information is preserved module 911 is used to preserve the self-defined trace graphics that the user imported on mobile terminal touch screen relevant information.The mode of specifically preserving is seen described in the above method embodiment.
The above implement device can be arranged in the portable terminal with touch-screen.
The specific implementation process of the above implement device can be with reference to described in the said method embodiment.
It should be noted that among the embodiment of above-mentioned implement device that each included unit is just divided according to function logic, but is not limited to above-mentioned division, as long as can realize function corresponding; In addition, the concrete title of each functional unit also just for the ease of mutual differentiation, is not limited to protection scope of the present invention.
In addition, one of ordinary skill in the art will appreciate that all or part of step that realizes in the foregoing description method is to instruct relevant hardware to finish by program, corresponding program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium of mentioning can be a ROM (read-only memory), disk or CD etc.
In sum, the embodiment of the invention can adopt new menu operation form, has made things convenient for user's operation, thereby has improved user's operating experience.
The above; only be the preferable embodiment of the present invention; but protection scope of the present invention is not limited thereto; anyly be familiar with those skilled in the art in the technical scope that the embodiment of the invention discloses; the variation that can expect easily or replacement all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection domain of claim.