Embodiment
For making the object, technical solutions and advantages of the present invention clearly understand, below in conjunction with embodiment and accompanying drawing, the present invention is described in more detail.
The present invention realizes the convergent-divergent to display interface by finger sliding operation, and scaling accurately can be determined according to dimension of slide.See Fig. 3, for the present invention to carry out the method indicative flowchart of convergent-divergent to terminal demonstration interface, it comprises the following steps:
Step 301, obtains screen touch information, determines the corresponding convergent-divergent activation instruction of screen touch information, screen is shown convergent-divergent sliding trace.
When user needs to carry out convergent-divergent to display interface, carry out screen touch operation, to trigger the displaying of convergent-divergent sliding trace; In practical application, this triggering can adopt various ways to realize, and is illustrated below.
Mode one:
Which is provided with a zoom button on terminal interface, and when needing, finger clicks zoom button; By screen touch information, terminal device is known that screen touch operates and is single-click operation on the zoom button of interface and finger does not frame out after clicking, then determine the corresponding convergent-divergent activation instruction of screen touch information, screen is shown convergent-divergent sliding trace.As shown in Figure 4, finger is clicked zoom button and is clicked rear finger and do not frame out, then on screen, show convergent-divergent sliding trace, in this figure, convergent-divergent sliding trace comprises zoom button.In order to save interface shape, can not zoom button be shown time initial, and screen centre position being defaulted as zoom button position; After user's finger is clicked screen center and clicked, finger does not frame out, be then defined as corresponding convergent-divergent activation instruction, screen is shown convergent-divergent sliding trace; Convergent-divergent sliding trace can be presented at the fixed position of screen, such as, be the right side of screen, as shown in Figure 5.When user slide screen carry out convergent-divergent time, by convergent-divergent progress current for corresponding display on convergent-divergent sliding trace.
Mode two:
Adopt which, terminal interface does not need arrange zoom button.By screen touch information know screen touch operate be double click operation in optional position, interface and second time click after finger do not frame out, then judge that first time is clicked and whether be less than the first setting-up time with the time interval for the second time between click, if, then determine the corresponding convergent-divergent activation instruction of screen touch information, screen is shown convergent-divergent sliding trace; Otherwise, screen is not shown convergent-divergent sliding trace.Described first setting-up time is arranged as required, such as, be 0.5 second.
Mode three:
Adopt which, a zoom button can be set at terminal interface; In order to save interface shape, can not show zoom button time initial, and screen centre position is defaulted as zoom button position, after user's finger is clicked screen center and clicked, finger does not frame out yet, then be defined as corresponding convergent-divergent activation instruction, screen is shown convergent-divergent sliding trace.Terminal device is judged screen touch behaviour by screen touch information, judge that screen touch operation is the single-click operation on the zoom button of interface, or the double click operation of optional position on interface: if the single-click operation on the zoom button of interface and after clicking finger do not frame out, then determine the corresponding convergent-divergent activation instruction of screen touch information, screen is shown convergent-divergent sliding trace; If on interface optional position double clicking operation and second time click after finger do not frame out, then judge that first time is clicked and whether be less than the first setting-up time with the time interval for the second time between click, if, then determine the corresponding convergent-divergent activation instruction of screen touch information, screen is shown convergent-divergent sliding trace.The example of which is shown in Figure 5, and active user adopts double-click mode to trigger.
Step 302, obtains the slip coordinate information of finger in touch screen, by slip coordinate information determination dimension of slide.
Step 303, is accounted for the ratio of convergent-divergent sliding trace, calculates scaling by dimension of slide.
After screen is shown convergent-divergent sliding trace, user just can carry out slip convergent-divergent according to the prompting of convergent-divergent sliding trace, and terminal device calculates scaling according to slip coordinate information; Convergent-divergent sliding trace can adopt multiple different implementation, is illustrated below.
Mode one: convergent-divergent sliding trace is the vertical slider of vertically display on screen.
Comprised by slip coordinate information determination dimension of slide described in step 302: the ordinate being deducted slip reference position by the ordinate of slip end position, using the subtraction value that obtains as dimension of slide;
Accounted for the ratio of convergent-divergent sliding trace described in step 303 by dimension of slide, calculate scaling and comprise: with dimension of slide divided by the longitudinal length of sliding trace, obtain the value being greater than zero, be defined as magnification ratio, obtain minus value, be defined as scale down.Example as shown in Figure 6, vertical slider is presented at the fixed position on the right side of screen, during finger sliding, can slide along vertical slider (the A interface see in figure), also can slide (the B interface see in figure) along other any directions of screen.
Mode two: convergent-divergent sliding trace is the horizontal slider of level display on screen.
Comprised by slip coordinate information determination dimension of slide described in step 302: the horizontal ordinate being deducted slip reference position by the horizontal ordinate of slip end position, using the subtraction value that obtains as dimension of slide;
Accounted for the ratio of convergent-divergent sliding trace described in step 303 by dimension of slide, calculate scaling and comprise: with dimension of slide divided by the lateral length of sliding trace, obtain the value being greater than zero, be defined as magnification ratio, obtain minus value, be defined as scale down.
Mode three: convergent-divergent sliding trace is the fan-shaped slider bar shown on screen.
Comprised by slip coordinate information determination dimension of slide described in step 302: calculate slip radian, as dimension of slide by slip end position and slip reference position;
After knowing slip end position and slip reference position, by simple geometric operation, just slip radian can be obtained; Be described to point the zoom button clicked on screen, after clicking triggering, show fan-shaped slider bar, fan-shaped slider bar comprises zoom button, user slides along fan-shaped slider bar, terminal device obtains slip coordinate information, using the line between the coordinate points of slip end position and fan shape center coordinate points as the first line, using the line between the coordinate points of slip reference position and fan shape center coordinate points as the second line, calculate the angle of the first line and the second line, as dimension of slide;
Accounted for the ratio of convergent-divergent sliding trace by dimension of slide described in step 303, calculate scaling to comprise: with dimension of slide divided by the radian of fan-shaped slider bar, obtain clockwise value, be defined as magnification ratio, obtain anticlockwise value, be defined as scale down.
Step 304, carries out convergent-divergent according to scaling to current display interface, shows the interface after convergent-divergent.
The content of display interface is as text, image, map etc.
The present invention realizes the convergent-divergent to display interface by finger sliding operation, and scaling accurately can be determined according to dimension of slide, no longer limits scaling chi, makes convergent-divergent precision controlled; Further, by the scaling that just can be adjusted to needs that once slides, without the need to repeatedly clicking operation, improve operating efficiency.
Example below by Fig. 7 is described in detail to the method that convergent-divergent is carried out at terminal demonstration interface of the present invention, in this example, display be map interface, the flow process of Fig. 7 comprises the following steps:
Step 701, obtains screen touch information.
The terminal interface of this example is for shown in Fig. 5, and interface display has zoom button, and user shows vertical slider by clicking zoom button to trigger, and also can double-click screen optional position and show vertical slider to trigger.
In existing scheme, need to arrange two buttons at screen interface, i.e. " plus sige " and " minus sign " button; Because screen area is limited, especially for mobile terminal, what the deviser of application expected to try one's best utilizes screen space, and the most effective version reduces the operating area in screen; Mobile terminal map home page only there are 5 priority function entrances usually, once at interface equipment " plus sige " and " minus sign " two buttons, will the setting of other function buttons be reduced.In addition, when being hold by one hand terminal device, thumb is the center of effort of palm fixed equipment often, and thumb carries out adopting consecutive click chemical reaction operation, can reduce the stability of gripping, adds the risk that terminal device drops from hand.
And adopt the present invention program, only a zoom button need be set, or without the need to arranging zoom button, take full advantage of screen space.Further, adopting the present invention program without the need to repeatedly clicking, just can complete convergent-divergent by slide, add the stability that palm is arranged.
Step 702, by screen touch information, screen touch behaviour is judged, judge that screen touch operation is the single-click operation on the zoom button of interface, or the double click operation of optional position on interface: if the single-click operation on the zoom button of interface and after clicking finger do not frame out, then perform step 703, if on interface optional position double click operation and click after finger do not frame out, then perform step 704.
Step 703, determines the corresponding convergent-divergent activation instruction of screen touch information, screen is shown convergent-divergent sliding trace, performs step 705.
The convergent-divergent sliding trace shown in this example is specially vertical slider.
Step 704, judges that first time is clicked and whether is less than the first setting-up time with the time interval for the second time between click, if so, then determines the corresponding convergent-divergent activation instruction of screen touch information, screen is shown convergent-divergent sliding trace, performs step 705; Otherwise on screen, do not show convergent-divergent sliding trace.
Step 705, obtains the slip coordinate information of finger in touch screen, is deducted the ordinate of slip reference position by the ordinate of slip end position, using the subtraction value that obtains as dimension of slide.
Step 706, with the longitudinal length of dimension of slide divided by sliding trace, obtains the value being greater than zero, is defined as magnification ratio, obtain minus value, be defined as scale down.
Step 707, carries out convergent-divergent according to scaling to the map of current display, shows the map after convergent-divergent.
After completing convergent-divergent, finger frames out and can cancel zoom operations, and terminal stops on the right side of screen shows vertical slider.
Adopt the present invention terminal demonstration interface to be carried out to the scheme of convergent-divergent, following beneficial effect can be reached:
1) slider bar zooming effect is stable and precision is controlled.
When user carries out zoom operations time, the finger engineer's scale rested on corresponding to screen the same area is unique and fixing, and avoid user's Reusability " unlike signs " to turn back to certain special ratios chi, operating efficiency is higher.Further, the effect of slip convergent-divergent is stepless zooming, is not the chi of the fixed proportion step by step saltus step of " unlike signs " formula, makes user can navigate to specific engineer's scale accurately.
2) interaction area on map is reduced to single " convergent-divergent " button (in order to distinguish, can adopt the pattern that conventional push button is different) by " plus sige " and " minus sign " two buttons, saves the function button quantity taking up room and take.
3) when user uses click gesture to activate zoom function, pin " convergent-divergent " button, zoom operations guidance field (scribe mark strips) extends expansion, is presented at the right side of map.When user's finger does not frame out, finger slides up and down can fine adjustment map scale.
When user uses double-click screen gesture to activate zoom function, the convergent-divergent hurdle on right side trails simultaneously and responds user's gesture, and convergent-divergent bar moves with user's finger manipulation.Interface response can allow user awareness gesture motion, operation compare and have a sense of security, and simultaneously for not using the user double-clicking screen scaling gesture, the learning and memory cost of gesture can reduce, and can learn very soon and adapt to.
See Fig. 8, be this terminal device structural representation, this terminal device comprises convergent-divergent sliding trace display unit, scaling determining unit and Zoom display unit;
Described convergent-divergent sliding trace display unit, obtains screen touch information, determines the corresponding convergent-divergent activation instruction of screen touch information, screen is shown convergent-divergent sliding trace, sends enabled instruction to described scaling determining unit;
Described scaling determining unit, receives the enabled instruction from described convergent-divergent sliding trace display unit, obtains the slip coordinate information of finger in touch screen, by slip coordinate information determination dimension of slide; Accounted for the ratio of convergent-divergent sliding trace by dimension of slide, calculate scaling, scaling is sent to described Zoom display unit;
Described Zoom display unit, receives the scaling from described scaling determining unit, carries out convergent-divergent according to scaling to current display interface, shows the interface after convergent-divergent.
Preferably, described convergent-divergent sliding trace display unit comprises the first convergent-divergent sliding trace and shows that subelement, the second convergent-divergent sliding trace displaying subelement or the 3rd convergent-divergent sliding trace show subelement;
Described first convergent-divergent sliding trace shows subelement, know that screen touch operates by screen touch information and be single-click operation on the zoom button of interface and finger does not frame out after clicking, then determine the corresponding convergent-divergent activation instruction of screen touch information, screen is shown convergent-divergent sliding trace;
Described second convergent-divergent sliding trace shows subelement, by screen touch information know screen touch operate be double click operation in optional position, interface and second time click after finger do not frame out, then judge that first time is clicked and whether be less than the first setting-up time with the time interval for the second time between click, if, then determine the corresponding convergent-divergent activation instruction of screen touch information, screen is shown convergent-divergent sliding trace;
Described 3rd convergent-divergent sliding trace shows subelement, by screen touch information, screen touch behaviour is judged, judge that screen touch operation is the single-click operation on the zoom button of interface, or the double click operation of optional position on interface: if the single-click operation on the zoom button of interface and after clicking finger do not frame out, then determine the corresponding convergent-divergent activation instruction of screen touch information, screen is shown convergent-divergent sliding trace; If on interface optional position double clicking operation and second time click after finger do not frame out, then judge that first time is clicked and whether be less than the first setting-up time with the time interval for the second time between click, if, then determine the corresponding convergent-divergent activation instruction of screen touch information, screen is shown convergent-divergent sliding trace.
Preferably, when described convergent-divergent sliding trace is the vertical slider of vertically display on screen, described scaling determining unit comprises the first dimension of slide determination subelement and the first scaling determination subelement;
Described first dimension of slide determination subelement, receive the enabled instruction from described convergent-divergent sliding trace display unit, obtain the slip coordinate information of finger in touch screen, the ordinate of slip reference position is deducted by the ordinate of slip end position, using the subtraction value that obtains as dimension of slide, send to described first scaling determination subelement;
Described first scaling determination subelement, receives the scaled size from described first scaling determination subelement, with the longitudinal length of dimension of slide divided by sliding trace, obtain the value being greater than zero, be defined as magnification ratio, obtain minus value, be defined as scale down.
Preferably, when described convergent-divergent sliding trace is the horizontal slider of level display on screen, described scaling determining unit comprises the second dimension of slide determination subelement and the second scaling determination subelement;
Described second dimension of slide determination subelement, receive the enabled instruction from described convergent-divergent sliding trace display unit, obtain the slip coordinate information of finger in touch screen, the horizontal ordinate of slip reference position is deducted by the horizontal ordinate of slip end position, using the subtraction value that obtains as dimension of slide, send to described second scaling determination subelement;
Described second scaling determination subelement, receives the scaled size from described second scaling determination subelement, with the lateral length of dimension of slide divided by sliding trace, obtain the value being greater than zero, be defined as magnification ratio, obtain minus value, be defined as scale down.
Preferably, when described convergent-divergent sliding trace is the horizontal slider of level display on screen, described scaling determining unit comprises the 3rd dimension of slide determination subelement and the 3rd scaling determination subelement;
Described 3rd dimension of slide determination subelement, receive the enabled instruction from described convergent-divergent sliding trace display unit, obtain the slip coordinate information of finger in touch screen, slip radian is calculated by slip end position and slip reference position, as dimension of slide, send to described 3rd scaling determination subelement;
Described 3rd scaling determination subelement, receives the scaled size from described 3rd scaling determination subelement, with the radian of dimension of slide divided by fan-shaped slider bar, obtain clockwise value, be defined as magnification ratio, obtain anticlockwise value, be defined as scale down.
Terminal device of the present invention comprises the multiple terminal device carrying out touch operation, and concrete as mobile terminal, smart machine etc., mobile terminal is as mobile phone, and smart machine is as having the intelligent watch of touch-screen.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment made, equivalent replacement, improvement etc., all should be included within the scope of protection of the invention.