Specific embodiment
Further to illustrate that the present invention is the technological means and effect that the predetermined goal of the invention of realization is taken, below in conjunction withAttached drawing and preferred embodiment, to the specific embodiment party according to interface focus control method for movement proposed by the present invention and control deviceFormula, structure, feature and its effect are described in detail as after.
Fig. 1 is the flow chart for the interface focus control method for movement that first embodiment provides, as shown in Figure 1, the interface is burntPoint control method for movement includes:
Step S110, initial position and the motion track of contact are recorded;
Step S120, the displacement distance of contact is obtained;
Step S130, the displacement distance and predetermined value are compared:
Step S140, the trajectory angle of contact is obtained;
Step S150, the course bearing of focus is obtained according to trajectory angle;
Step S160, focus mobile at least lattice on the course bearing are made;And
Step S170, current location is set as initial position.
Specifically, as shown in Fig. 2, in step S110, the coordinate (Xa, Ya) of record contact initial position A points, while withThe track of the moving recording contact of contact, it will be understood that can only record the point that contact is passed through for the motion track of contact,When the point of sampling is enough, the line of each point just meets with actual track.In step S120, it is assumed that contact is currently moved toD points (Xd, Yd), between starting point A and current point D, there are two tracing point B, C, coordinate be respectively (Xb, Yb) and (Xc,Yc).Then from initial position A to current location D, the displacement distance D=D of contactAB+DBC+DCD, wherein DABRepresent A points and B points itBetween distance, DAB=((Xb-Xa)2+(Yb-Ya)2)1/2, other distances and so on.It is i.e. available from A points via the above processTo the displacement distance of D point points.
In step s 130, the size of the displacement distance of comparison touch points and predetermined value, above-mentioned predetermined value are, for example, 50Pixel carries out angle judgement after contact is moved more than 50 pixels, that is, performs step S140.It can be with when obtaining trajectory angleUsing starting point A and current location D.As shown in Fig. 2, tan θ=(Yd-Ya)/(Xd-Xa), then correspondingly, trajectory angle θ=atan((Yd-Ya)/(Xd-Xa)).Furthermore, it is to be understood that it is not limited in when obtaining trajectory angle using starting point A.For example,It can also recall since the D of current location along tracing point to starting point direction up to finding the shifting between the point and current location DDynamic distance is more than the point of predetermined value.Predetermined value herein is, for example, 100 pixels.For example, in 4 points shown in Fig. 2, Ke NengcongD points start to recall, and it is more than 100 pixels to determine the displacement distance between BD, it is determined that B points are starting when obtaining trajectory anglePoint, angle are θ=atan ((Yd-Yb)/(Xd-Xb)).It is appreciated that in example provided above, range estimation is carried outIt is small to be spaced the distance (100 pixel) that (50 pixel) is recalled than direction determining when finding starting point, it is thus possible to there is scenario described below,Even if dateing back starting point, the point that displacement distance is more than 100 pixels is not found yet, at this point, can be directly using starting point as calculatingThe starting point of angle.
In step S150, the course bearing of focus is obtained according to trajectory angle, such as 45 ° of -45 ° of < θ <, determineFor course bearing for the right, it is upward that course bearing is determined as 135 ° of 45 ° of < θ <, is determined as 135 ° of θ > and < -135 ° of θCourse bearing determines course bearing for the right for the left as < -45 ° of -135 ° of < θ.It, will according to the scope of above-mentioned angular rangeThe movement of any direction is converted into one in the four direction of upper and lower, left and right.It will be understood, however, that the model of above-mentioned angular rangeEnclose it is merely illustrative, for example, it is also possible to be that course bearing is determined as 30 ° of -30 ° of < θ < as to the right, and as 120 ° of 60 ° of < θ <Course bearing is determined as to the right, and course bearing is determined as upper right as 60 ° of 30 ° of < θ <, is i.e. focus while to the right and to moving upIt is dynamic.Other directions can and so on.
After determining course bearing, in step S160, you can focus is made to move an at least lattice.Focus is made to move an at least latticeIt is at least next interface element that focus is instigated to be moved in same a line or same row.In addition, if current focus isBoundary positioned at interface can be set for operating according to different.For example, current focus is located at the right margin at interfacePlace, definite course bearing are that the right, can be operated at this time without any focus, can be moved in one's own profession firstInterface element can also be first interface element being moved in next line.The border in other directions can and so on.
The movement of focus can be accomplished in several ways.For example, focus interface element can around it display bezelTo be distinguished with other interface elements, at this point, then this frame can be with gradual movement to next interface element.Focus interfaceElement can also be to be distinguished using the background of gradual change with other interface elements, at this point it is possible to current focus interface element backgroundCarry out processing of fading out, and the background of the asymptotic next interface element of display.It is appreciated that the movement of focus is not limited to more than instituteThe two ways enumerated, the technology of arbitrary moving focal point can be applied in the present embodiment.
In step S170, when complete focus movement after, you can current location is redefined as starting point, again intoThe process of row step S120 to step S160.In this way, moving focal point can be continued in the case of contact is not unclamped.
In above-mentioned interface focus control method, by tracking the motion track of contact, when contact, displacement distance is more thanOr focus is automatically moved during equal to predetermined value, that is, the interface element around current focus is selected, compared to traditional direct touch-controlIt chooses, can solve the problems, such as that interface element is too small and be not easy to choose.Whole process can realize that operation is simple by lasting slipJust.
Refering to Fig. 3, second embodiment provides a kind of interface focus control method for movement, is moved with the focus of first embodimentFlowing control method is similar, the difference is that, further comprise:
Step S210, the last mobile direction of the course bearing obtained in comparison step S150 and the focus whether phaseTogether;And
Step S220, when the last mobile direction of course bearing and focus is identical the movement of focus point carry out at accelerationReason.
It is appreciated that in order to carry out step S210, it is necessary to which its moving direction of moving focal point also respective record is for rear every timeIt is continuous to compare.It is appreciated that during each moving focal point, course bearing is its moving direction.In step S220, course bearing withThe last mobile direction of focus is identical, illustrates that focus needs persistently to move in the same direction.Acceleration processing for example refers toMake one increment of lattice number for giving focus movement.For example, in a certain direction, the only mobile lattice of the first secondary focal point, and secondExcept moving one especially, also with an increment, when this increment is 1, then two lattice are moved second.This increment may be, for example, 0.5*N,Wherein N is the number moved in the same direction.By upper formula, then mobile 1+0.5*2=2 lattice are needed when second is mobile, the 3rdMobile 1+0.5*3=2.5 lattice are needed when secondary mobile.For fractional part, can rounding downwards or round up handled.When using downward rounding mode, when mobile 2 lattice are needed when mobile for the third time, and being handled using the mode of rounding up, theIt is mobile three times to need mobile 3 lattice.It can be seen from the above, when the number that focus continuously moves in the same direction is more, currentTranslational speed is faster.
In the interface focus control method for movement of the present embodiment, by setting increment when continuous equidirectional mobile, realizeEquidirectional acceleration processing when persistently moving, the more situation of the processing interface element that makes user more convenient.
Refering to Fig. 4,3rd embodiment provides a kind of interface focus control method for movement, is moved with the focus of first embodimentFlowing control method is similar, the difference is that, further comprise step S310:The translational speed of contact is obtained, when contact is unclampedWhen its translational speed be more than predetermined value when focus is made to continue to move to an at least lattice on the moving direction.
It is appreciated that recording the time simultaneously in the track of record contact, contact can be obtained according to displacement distance and timeTranslational speed.In the interface focus control method of first embodiment, contact unclamp after i.e. stop obtain contact movement away fromFrom focus no longer moves.And in the present embodiment, focus continues to move to a lattice if the speed when contact is unclamped is more than predetermined valueOr more lattice, the inertia for making the mobile preservation of focus certain, it allows user that shorter slip may be employed and realizes that more lattice of focus moveIt is dynamic.
Fourth embodiment provides a kind of control method for movement of interface focus, is moved with the interface focus of first embodimentControl method is similar, the difference is that, refering to Fig. 5, step S160 is specifically included:
Step S161, the instruction of a mobile at least lattice on the moving direction is sent in controlled terminal;And step S162,The controlled terminal mobile at least lattice on the moving direction by focus.
Controlled terminal is, for example, digital television, DTV STB or PC.The method of the present embodiment canIt is performed by remote controler, remote controler is for example connected by WLAN with controlled terminal, according to the agreement pre-defined, remote controlDifferent instructions can be sent to controlled terminal by device, be performed after being parsed by controlled terminal.
In the present embodiment, the interface of control and non-native interface, but the interface in the controlled terminal of distal end.ByAfter the instruction that control terminal receives, you can corresponding control focus makes its mobile lattice number specified on the course bearing.
The control method for movement of the interface focus of the present embodiment can be further applied in the remote control applications of intelligent terminal,With more extensive adaptability.
5th embodiment provides a kind of control method for movement of interface focus, is moved with the interface focus of first embodimentControl method is similar, the difference is that, the number for further including the movement according to focus in each direction accordingly adjusts acquisitionAngular range during course bearing makes the mobile number of focus in a certain direction more, belongs to the angle model of the course bearingIt encloses bigger.
For example, through overwriting, what discovery user was commonly used is the slip of left and right directions, and vertical direction is rarely employedIt slides to choose interface element, at this point it is possible to the angular range for the slip for belonging to left and right directions be tuned up, for example, as -50 ° of < θ <At 50 °, determine the course bearing of contact for the right.Compared to -45 ° of 45 ° of < θ < in first embodiment, with biggerScope.After so setting, user can more easily complete operation to the right.
Sixth embodiment provides a kind of mobile controller of interface focus, refering to Fig. 5, including:Recording unit 610,Metrics calculation unit 620, comparing unit 630, angle calculation unit 640, moving direction computing unit 650, focus mobile unit660 and reset unit 670.Wherein:
Recording unit 610 is used to record initial position and the motion track of contact;Distance acquiring unit 620 is tactile for obtainingThe displacement distance of point;Comparing unit 630 is used for the size for comparing the distance and predetermined value;Angle acquiring unit 640 is used to obtainFrom the initial position to the angle of the current location;Moving direction acquiring unit 650 is used for what is obtained according to angle acquiring unitTrajectory angle obtains course bearing;Focus mobile unit 660 makes focus mobile at least lattice on the course bearing;Reset unit670 are used to current location being set as initial position.
On the further operational details of each unit, the mobile control of the interface focus of first embodiment can be further regarded toMethod processed.
In the mobile controller of the interface focus of the present embodiment, by tracking the motion track of contact, when contact is movedFocus is automatically moved when distance is than or equal to predetermined value, that is, the interface element around current focus is selected, compared to traditionalDirect touch-control is chosen, and can solve the problems, such as that interface element is too small and be not easy to choose.Whole process can be real by lasting slipIt is existing, it is easy to operate.
7th embodiment provides a kind of mobile controller of interface focus, refering to Fig. 6, the interface with sixth embodimentThe mobile controller of focus is similar, the difference is that, further comprise moving direction recording unit 710 with accelerating processing singleMember 720.Wherein, moving direction recording unit 710 is used to record the moving direction of focus when focus is moved per secondary focal point;AccelerateProcessing unit 720 be used for the direction moved when course bearing and focus are last it is identical when focus point movement carry out at accelerationReason.And specifically accelerate processing procedure see second embodiment interface focus control method for movement, details are not described herein.
In the interface focus mobile controller of the present embodiment, by setting increment when continuous equidirectional mobile, realizeEquidirectional acceleration processing when persistently moving, the more situation of the processing interface element that makes user more convenient.
8th embodiment provides a kind of mobile controller of interface focus, refering to Fig. 7, the interface with sixth embodimentThe mobile controller of focus is similar, the difference is that, further comprise translational speed acquiring unit 810, it is tactile for obtainingThe translational speed of point, focus mobile unit 660 make focus exist when being additionally operable to when contact is unclamped its translational speed more than predetermined valueAn at least lattice are continued to move on the moving direction.
It is appreciated that recording the time simultaneously in the track of record contact, contact can be obtained according to displacement distance and timeTranslational speed.In the interface focus control device of sixth embodiment, contact unclamp after i.e. stop obtain contact movement away fromFrom focus no longer moves.And in the present embodiment, focus continues to move to a lattice if the speed when contact is unclamped is more than predetermined valueOr more lattice, the inertia for making the mobile preservation of focus certain, it allows user that shorter slip may be employed and realizes that more lattice of focus moveIt is dynamic.
9th embodiment provides a kind of mobile controller of interface focus, the shifting with the interface focus of sixth embodimentDynamic control device is similar, the difference is that, focus mobile unit 660 includes transmitting element, for being sent in controlled terminalThe instruction of a mobile at least lattice on the course bearing.After the instruction that controlled terminal receives, you can corresponding control focus make itsThe mobile lattice number specified on the course bearing.
The mobile controller of the interface focus of the present embodiment can be further applied in the remote control applications of intelligent terminal,With more extensive adaptability.
Tenth embodiment provides a kind of mobile controller of interface focus, the shifting with the interface focus of sixth embodimentDynamic control device is similar, the difference is that, angle adjusting is further included, for the movement according to focus in each directionNumber accordingly adjust obtain course bearing when angular range, make the mobile number of focus in a certain direction more, belong toThe angular range of the moving direction is bigger.
For example, through overwriting, what discovery user was commonly used is the slip of left and right directions, and vertical direction is rarely employedIt slides to choose interface element, at this point it is possible to the angular range for the slip for belonging to left and right directions be tuned up, for example, as -50 ° of < θ <At 50 °, determine the course bearing of contact for the right.Compared to -45 ° of 45 ° of < θ < in first embodiment, with biggerScope.After so setting, user can more easily complete operation to the right.
In addition, the embodiment of the present invention also provides a kind of computer readable storage medium, it is stored with computer and can performInstruction, above-mentioned computer readable storage medium is, for example, nonvolatile memory such as CD, hard disk or flash memory.
The computer executable instructions specifically include:For recording the instruction of the initial position of contact and motion track;WithIn the instruction for the displacement distance for obtaining contact;It instructs with a predetermined value for comparing the displacement distance, is more than for working as the distanceOr during equal to predetermined value:Obtain the trajectory angle of contact;The course bearing of focus is determined according to trajectory angle;Make focus in the railA mobile at least lattice on mark direction;And current location is set as to the instruction of initial position.
Further, which further includes:For comparing the motion track direction and the last time focusThe moving direction of last time movement;If when the current motion track direction of the focus and the direction phase of the movement of focus last timeThe movement of focus point simultaneously accelerate the instruction of processing.In addition, the number that focus continuously moves in the same direction is more,Current translational speed is faster.
Further, which further includes:For obtaining the translational speed for calculating contact, when contact is unclampedWhen its translational speed focus is made to continue to move to the instructions of an at least lattice on the moving direction when being more than predetermined value.
Further, this specifically includes focus instruction of a mobile at least lattice on the course bearing:For to controlledTerminal is sent in the instruction of a mobile at least lattice on the course bearing;The controlled terminal memory storage is useful for focus in the trackThe instruction of a mobile at least lattice on direction.
Further, which further includes:For time of the movement according to focus in each directionThe corresponding adjustment of number determines angular range during course bearing, makes the mobile number of focus in a certain direction more, belongs to the shiftingMove the bigger instruction of the angular range in direction.
The other technologies details of executable instruction and correlation technique effect are calculated on above, can also further regard to Fig. 1To Fig. 4 and associated description.
The above described is only a preferred embodiment of the present invention, not make limitation in any form to the present invention, thoughSo the present invention is disclosed as above with preferred embodiment, however is not limited to the present invention, any those skilled in the art, notDepart from the range of technical solution of the present invention, when the technology contents using the disclosure above make a little change or are modified to equivalent changeThe equivalent embodiment of change, as long as being without departing from technical solution of the present invention content, technical spirit according to the invention to implementing aboveExample any brief introduction modification, equivalent variations and the modification made, in the range of still falling within technical solution of the present invention.