Summary of the invention
The embodiment of the invention provides a kind of implementation method and device of custom menu, can adopt new menu operation form, and is user-friendly, thereby improved user's operating experience.
The embodiment of the invention provides a kind of implementation method of custom menu, and said method comprises:
The relevant information of the self-defined trace graphics that the preservation user is imported on mobile terminal touch screen; Said relevant information is preserved according to the mode of polar plot, and said relevant information specifically comprises the decomposition figure that the user is obtained and respectively decomposes the angle between the figure after the self-defined trace graphics of being imported on the mobile terminal touch screen decomposes;
And set up the corresponding relation between the function interface that said self-defined trace graphics and said user need realize in advance;
The trace graphics that the identification user imports on said mobile terminal touch screen according to the trace graphics of being imported, obtains the decomposition figure of institute's input trajectory figure and respectively decomposes the angle between the figure;
Judge whether the trace graphics of being imported is consistent with said user predefined self-defined trace graphics on portable terminal; The user who specifically comprises the decomposition figure of judging institute's input trajectory figure and preservation on portable terminal predefined self-defined trace graphics whether respectively decompose figure consistent, and whether the angle between the figure of respectively decomposing of respectively decomposing angle and preservation between the figure of institute's input trajectory figure differs within the scope of setting;
If the trace graphics of being imported is consistent with said user predefined self-defined trace graphics on portable terminal, then get into the corresponding function interface of predefined and said self-defined trace graphics.
The embodiment of the invention also provides a kind of implement device of custom menu, comprising:
Corresponding relation is set up the unit, is used for the self-defined trace graphics on mobile terminal touch screen, imported according to the user, preestablishes the corresponding relation between said self-defined trace graphics and the corresponding function interface;
The trace graphics recognition unit is used to be identified in the trace graphics of importing on the said mobile terminal touch screen, according to the trace graphics of being imported, obtains the decomposition figure of institute's input trajectory figure and respectively decomposes the angle between the figure;
The trace graphics judging unit; Be used to judge whether trace graphics that said trace graphics recognition unit identified and said corresponding relation are set up the self-defined trace graphics of preserving the unit consistent; The user of the concrete decomposition figure of judging institute's input trajectory figure and preservation on portable terminal predefined self-defined trace graphics whether respectively decompose figure consistent; And whether the angle between the figure of respectively decomposing of respectively decomposing angle and preservation between the figure of institute's input trajectory figure differs within the scope of setting; If it is consistent that the trace graphics that identified of said trace graphics recognition unit and said corresponding relation are set up the self-defined trace graphics of preserving the unit, then get into the corresponding function interface of predefined and said self-defined trace graphics;
Said corresponding relation is set up the unit and is also comprised graphical information preservation module; Be used for preserving according to the mode of polar plot the relevant information of the self-defined trace graphics that the user imported on mobile terminal touch screen, said relevant information specifically comprises the decomposition figure that the user is obtained and respectively decomposes the angle between the figure after the self-defined trace graphics of being imported on the mobile terminal touch screen decomposes.
Can find out by the above-mentioned technical scheme that provides; At first preserve the relevant information of the self-defined trace graphics that the user imported on mobile terminal touch screen; Said relevant information is preserved according to the mode of polar plot, and sets up the corresponding relation between the function interface that said self-defined trace graphics and said user need realize in advance; The trace graphics that the identification user imports on said mobile terminal touch screen; Whether the self-defined trace graphics of input is consistent in advance on mobile terminal touch screen with said user to judge the trace graphics of being imported then; If consistent, then get into the corresponding function interface of predefined and said self-defined trace graphics.Through 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.
Embodiment
The embodiment of the invention provides a kind of implementation method and device of custom menu, and through 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, combine accompanying drawing that specific embodiment of the present invention is described at present, be illustrated in figure 1 as 1 schematic flow sheet that method is provided of the embodiment of the invention, 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 said 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 concrete implementation procedure; 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 said self-defined trace graphics and said user need realize.The method of the preservation self-defined trace graphics relevant information of importing can have multiple, and the self-defined trace graphics that for example can earlier the user be imported on mobile terminal touch screen resolves into various figures; And then preserve and respectively decompose figure and respectively decompose the angle between the figure, that is to say and can self-defined trace graphics be preserved according to the mode of polar plot, promptly preserve through 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 instance 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 come before and after the judges figure of twice input whether similar or consistent according to above-mentioned record.
The implementation procedure of above-mentioned instance 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 through 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 instance 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 noting for true in will scheming.
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 the position of mid point respectively at the mid point of A [1] [1] and A [6] [6], and 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 instance that present embodiment is enumerated " circle "; Trend determination methods according to above-mentioned can know that this self-defined trace graphics " zero " is quadruple, is that example describes with a part wherein; 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, the mid point of calculating terminal A [8] [12] and A [18] [0] is A [13] [6], and the track that the user streaks is that A [8] [6] is less than A [13] [6]; In like manner judge A [8] [12] and A [8] [6] more respectively, the mid point of A [8] [6] and A [18] [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 changes four trend then couples together; Calculate each other directly angle, and note, be illustrated in figure 4 as the synoptic diagram of angle recordings between the curve of instance 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 instance that present embodiment is enumerated " 2 ", through 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 concrete implementation procedure, 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 for example can on mobile terminal touch screen, be imported according to the user, 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 can the self-defined trace graphics information recording storage of being imported be got off through 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 the 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 and preservation between the figure of institute's input trajectory figure differs within the scope of setting.
Whether through 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 get into the corresponding function interface of predefined and said 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 get into predefined and the corresponding function interface of this self-defined trace graphics, thereby has 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 get into the function corresponding interface, can point out the user to re-enter here, or provide corresponding option to let the user whether select abort operation if judge that the trace graphics imported is inconsistent with this self-defined trace graphics; 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; In arbitrary interface, import corresponding trace graphics through the user then, get into 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 gets into " newly-built note " interface in the example that the embodiment of the invention enumerates; Among Fig. 8: the trace graphics that the mobile phone judges is imported is consistent with user's self-defining trace graphics in Fig. 6; Then mobile phone automatic unlocking and directly corresponding " newly-built note " interface of entering; Thereby realized the operation of portable terminal custom menu, made things convenient for user's operation, improved user's operating experience.
In addition; In embodiments of the present invention; Consider that the user maybe to self-defining trace graphics or the interface be forgotten or confusion reigned; Can when getting into the wait interface of respective interface or application, add the animation of 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 through set option and to set up said any function interface and user, so just can further facilitate user's operation, promote user's operating experience at the corresponding relation of importing on the mobile terminal touch screen between the self-defined trace graphics.
Through 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 said implement device comprises:
Corresponding relation is set up unit 91, is used for the self-defined trace graphics on mobile terminal touch screen, imported according to the user, preestablishes the corresponding relation between said 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 said trace graphics recognition unit identified and said corresponding relation are set up the self-defined trace graphics of being preserved unit 91 consistent; If consistent, then get into the corresponding function interface of predefined and said 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 concrete implementation procedure 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 accomplish through 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; Be merely the preferable embodiment of the present invention; But protection scope of the present invention is not limited thereto; Any technician who is familiar with the present technique field is in the technical scope that the embodiment of the invention discloses, and 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.