Embodiment
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with embodiment and accompanying drawing, the present invention is described in more detail.
The present invention operates the convergent-divergent of realizing display interface by finger sliding, scaling can accurately be determined according to dimension of slide.Referring to Fig. 3, for the present invention carries out the method indicative flowchart of convergent-divergent to terminal display interface, it comprises the following steps:
Step 301, obtains screen touch information, determines the corresponding convergent-divergent activation instruction of screen touch information, shows convergent-divergent sliding trace on screen.
When user need 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 while needing, finger is clicked zoom button; Terminal device by screen touch information know screen touch operation be the single-click operation on the zoom button of interface and click after finger do not frame out, determine the corresponding convergent-divergent activation instruction of screen touch information, on screen, show convergent-divergent sliding trace.As shown in Figure 4, finger is clicked zoom button and is clicked rear finger and do not frame out, and on screen, shows convergent-divergent sliding trace, in this figure, on convergent-divergent sliding trace, comprises zoom button.In order to save interface shape, when initial, can not show zoom button, Er Jiang screen center position is defaulted as zoom button position; After user's finger is clicked screen center and clicked, finger does not frame out, and is defined as corresponding convergent-divergent activation instruction, shows convergent-divergent sliding trace on screen; Convergent-divergent sliding trace can be presented at the fixed position of screen, for example, be the right side of screen, as shown in Figure 5.When user slides screen while carrying out convergent-divergent, on convergent-divergent sliding trace by the current convergent-divergent progress of corresponding demonstration.
Mode two:
Adopt which, on terminal interface, do not need to arrange zoom button.By screen touch information, know that screen touch operation is that finger does not frame out after the double click operation of optional position, interface and click for the second time, judge whether the time interval between clicking for the first time and clicking is for the second time less than the first setting-up time, if, determine the corresponding convergent-divergent activation instruction of screen touch information, on screen, show convergent-divergent sliding trace; Otherwise, on screen, do not show convergent-divergent sliding trace.Described the first setting-up time arranges as required, for example, be 0.5 second.
Mode three:
Adopt which, can a zoom button be set at terminal interface; In order to save interface shape, when initial, also can not show zoom button, Er Jiang screen center position is defaulted as zoom button position, and after user's finger is clicked screen center and clicked, finger does not frame out, be defined as corresponding convergent-divergent activation instruction, on screen, show convergent-divergent sliding trace.Terminal device is judged screen touch behaviour by screen touch information, the operation of judgement screen touch is the single-click operation on the zoom button of interface, or the double click operation of optional position on interface: if finger does not frame out after the single-click operation on the zoom button of interface and click, determine the corresponding convergent-divergent activation instruction of screen touch information, on screen, show convergent-divergent sliding trace; If on interface the double clicking operation of optional position and click for the second time after finger do not frame out, judge whether the time interval between clicking for the first time and clicking is for the second time less than the first setting-up time, if, determine the corresponding convergent-divergent activation instruction of screen touch information, on screen, show 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, determines dimension of slide.
Step 303, is accounted for the ratio of convergent-divergent sliding trace by dimension of slide, calculate scaling.
Show convergent-divergent sliding trace on screen after, user just can be according to the prompting of the convergent-divergent sliding trace convergent-divergent that slides, 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 vertically showing on screen.
Described in step 302, by slip coordinate information, determine that dimension of slide comprises: by the ordinate of slip end position, deducted the ordinate of slip reference position, using the subtraction value obtaining as dimension of slide;
Described in step 303, by dimension of slide, accounted for the ratio of convergent-divergent sliding trace, calculate scaling and comprise: the longitudinal length with dimension of slide divided by sliding trace, obtain being greater than zero value, 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 screen right side, and during finger sliding, can slide along vertical slider (referring to the A interface in figure) also can be along other any directions slips (referring to the B interface in figure) of screen.
Mode two: convergent-divergent sliding trace is the horizontal slider that level shows on screen.
Described in step 302, by slip coordinate information, determine that dimension of slide comprises: by the horizontal ordinate of slip end position, deducted the horizontal ordinate of slip reference position, using the subtraction value obtaining as dimension of slide;
Described in step 303, by dimension of slide, accounted for the ratio of convergent-divergent sliding trace, calculate scaling and comprise: the lateral length with dimension of slide divided by sliding trace, obtain being greater than zero value, be defined as magnification ratio, obtain minus value, be defined as scale down.
Mode three: the fan-shaped slider bar of convergent-divergent sliding trace for showing on screen.
Described in step 302, by slip coordinate information, determine that dimension of slide comprises: by slip end position and slip reference position, calculate slip radian, as dimension of slide;
After knowing slip end position and slip reference position, by simple geometric operation, just can obtain the radian that slides; The zoom button of clicking on screen with finger describes, click after triggering, show fan-shaped slider bar, on fan-shaped slider bar, comprise zoom button, user slides along fan-shaped slider bar, terminal device obtains slip coordinate information, line between the coordinate points of slip end position and fan-shaped centre coordinate point is as the first line, line between the coordinate points of slip reference position and fan-shaped centre coordinate point is as the second line, calculate the angle of the first line and the second line, as dimension of slide;
Described in step 303, by dimension of slide, accounted for the ratio of convergent-divergent sliding trace, calculating scaling comprises: the radian with dimension of slide divided by fan-shaped slider bar, obtain clockwise value, and 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 operates the convergent-divergent of realizing display interface by finger sliding, scaling can accurately be determined according to dimension of slide, and scaling chi is no longer limited, and makes convergent-divergent precision controlled; And, by once sliding, just can be adjusted to the scaling needing, without clicking operation repeatedly, improved operating efficiency.
The method of terminal display interface of the present invention being carried out to convergent-divergent below by the example of Fig. 7 is elaborated, in this example, demonstration 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 that shown in Fig. 5, interface display has zoom button, and user can show vertical slider to trigger by clicking zoom button, also can double-click screen optional position and show vertical slider to trigger.
In existing scheme, need to two buttons be set at screen interface, i.e. " plus sige " and " minus sign " button; Because screen area is limited, especially for mobile terminal, the deviser of application expects the screen space that utilizes that can try one's best, and the most effective version is the operating area reducing in screen; On mobile terminal map home page, conventionally only there are 5 priority function entrances, once at interface equipment " plus sige " and " minus sign " two buttons, the setting of other function buttons will 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, has increased the risk that terminal device drops from hand.
And employing the present invention program only need arrange a zoom button, or without zoom button is set, take full advantage of screen space.And, adopt the present invention program without repeatedly clicking, by slide, just can complete convergent-divergent, increased the stability that palm arranges.
Step 702, by screen touch information, screen touch behaviour is judged, the operation of judgement screen touch is the single-click operation on the zoom button of interface, or the double click operation of optional position on interface: if finger does not frame out after the single-click operation on the zoom button of interface and click, perform step 703, if on interface the double click operation of optional position and click after finger do not frame out, perform step 704.
Step 703, determines the corresponding convergent-divergent activation instruction of screen touch information, shows convergent-divergent sliding trace, execution step 705 on screen.
The convergent-divergent sliding trace of showing in this example is specially vertical slider.
Step 704, whether judgement click for the first time and for the second time time interval between click are less than the first setting-up time, if so, determine the corresponding convergent-divergent activation instruction of screen touch information, show convergent-divergent sliding trace, execution step 705 on screen; 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, using the subtraction value obtaining as dimension of slide by the ordinate of slip end position.
Step 706, the longitudinal length with dimension of slide divided by sliding trace, obtains being greater than zero value, is defined as magnification ratio, obtains minus value, is defined as scale down.
Step 707, carries out convergent-divergent according to scaling to the map of current demonstration, shows the map after convergent-divergent.
Complete after convergent-divergent, finger frames out and can cancel zoom operations, and terminal stops at screen right side and shows vertical slider.
Adopt the present invention terminal display interface to be carried out to the scheme of convergent-divergent, can reach following beneficial effect:
1) slider bar zooming effect is stable and precision is controlled.
When user carries out zoom operations, it is unique and fixing that finger rests on the corresponding engineer's scale of screen the same area, avoids user's Reusability " unlike signs " to turn back to certain special ratios chi, and operating efficiency is higher.And the effect of slip convergent-divergent is stepless zooming, not the chi of the fixed proportion step by step saltus step of " unlike signs " formula, make user can navigate to accurately specific engineer's scale.
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, has saved the function button quantity that takes 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.In the situation that 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, and operation relatively haves a sense of security, and for not using the user who double-clicks screen scaling gesture, the learning and memory cost of gesture can reduce, and can learn very soon and adapt to simultaneously.
Referring to 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, shows convergent-divergent sliding trace on screen, to described scaling determining unit, sends enabled instruction;
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, determines dimension of slide; The ratio that is accounted for convergent-divergent sliding trace by dimension of slide, calculates scaling, and scaling is sent to described Zoom display unit;
Described Zoom display unit, receives the scaling from described scaling determining unit, according to scaling, current display interface is carried out to convergent-divergent, shows the interface after convergent-divergent.
Preferably, described convergent-divergent sliding trace display unit comprises the first convergent-divergent sliding trace displaying subelement, the second convergent-divergent sliding trace displaying subelement or the 3rd convergent-divergent sliding trace displaying subelement;
Described the first convergent-divergent sliding trace is shown subelement, by screen touch information know screen touch operation be the single-click operation on the zoom button of interface and click after finger do not frame out, determine the corresponding convergent-divergent activation instruction of screen touch information, on screen, show convergent-divergent sliding trace;
Described the second convergent-divergent sliding trace is shown subelement, by screen touch information, know that screen touch operation is that finger does not frame out after the double click operation of optional position, interface and click for the second time, judge whether the time interval between clicking for the first time and clicking is for the second time less than the first setting-up time, if, determine the corresponding convergent-divergent activation instruction of screen touch information, on screen, show convergent-divergent sliding trace;
Described the 3rd convergent-divergent sliding trace is shown subelement, by screen touch information, screen touch behaviour is judged, the operation of judgement screen touch is the single-click operation on the zoom button of interface, or the double click operation of optional position on interface: if finger does not frame out after the single-click operation on the zoom button of interface and click, determine the corresponding convergent-divergent activation instruction of screen touch information, on screen, show convergent-divergent sliding trace; If on interface the double clicking operation of optional position and click for the second time after finger do not frame out, judge whether the time interval between clicking for the first time and clicking is for the second time less than the first setting-up time, if, determine the corresponding convergent-divergent activation instruction of screen touch information, on screen, show convergent-divergent sliding trace.
Preferably, when described convergent-divergent sliding trace is the vertical slider vertically showing on screen, described scaling determining unit comprises that the first dimension of slide determines that subelement and the first scaling determine subelement;
Described the first dimension of slide is determined subelement, reception is from the enabled instruction of described convergent-divergent sliding trace display unit, obtain the slip coordinate information of finger in touch screen, by the ordinate of slip end position, deducted the ordinate of slip reference position, using the subtraction value obtaining as dimension of slide, send to described the first scaling to determine subelement;
Described the first scaling is determined subelement, receives the scaled size of determining subelement from described the first scaling, the longitudinal length with dimension of slide divided by sliding trace, obtain being greater than zero value, be defined as magnification ratio, obtain minus value, be defined as scale down.
Preferably, when described convergent-divergent sliding trace is the horizontal slider that level shows on screen, described scaling determining unit comprises that the second dimension of slide determines that subelement and the second scaling determine subelement;
Described the second dimension of slide is determined subelement, reception is from the enabled instruction of described convergent-divergent sliding trace display unit, obtain the slip coordinate information of finger in touch screen, by the horizontal ordinate of slip end position, deducted the horizontal ordinate of slip reference position, using the subtraction value obtaining as dimension of slide, send to described the second scaling to determine subelement;
Described the second scaling is determined subelement, receives the scaled size of determining subelement from described the second scaling, the lateral length with dimension of slide divided by sliding trace, obtain being greater than zero value, be defined as magnification ratio, obtain minus value, be defined as scale down.
Preferably, when described convergent-divergent sliding trace is the horizontal slider that level shows on screen, described scaling determining unit comprises that the 3rd dimension of slide determines that subelement and the 3rd scaling determine subelement;
Described the 3rd dimension of slide is determined subelement, reception is from the enabled instruction of described convergent-divergent sliding trace display unit, obtain the slip coordinate information of finger in touch screen, by slip end position and slip reference position, calculate slip radian, as dimension of slide, send to described the 3rd scaling to determine subelement;
Described the 3rd scaling is determined subelement, receives the scaled size of determining subelement from described the 3rd scaling, the radian with 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 that carries out touch operation, concrete as mobile terminal, smart machine etc., and 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, in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of making, be equal to replacement, improvement etc., within all should being included in the scope of protection of the invention.