CN102905194A - Method and device for moving focal points in digital television browser, and digital television - Google Patents
Method and device for moving focal points in digital television browser, and digital television Download PDFInfo
- Publication number
- CN102905194A CN102905194A CN2012103116388A CN201210311638A CN102905194A CN 102905194 A CN102905194 A CN 102905194A CN 2012103116388 A CN2012103116388 A CN 2012103116388A CN 201210311638 A CN201210311638 A CN 201210311638A CN 102905194 A CN102905194 A CN 102905194A
- Authority
- CN
- China
- Prior art keywords
- focus
- overlapping
- initial
- focal point
- area
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Abstract
The invention discloses a method and a device for moving focal points in a digital television browser, and a digital television. According to the embodiment of the invention, after a focal point moving instruction is received, if rectangular regions occupied by the focal points are superposed, the superposed rectangular regions are partitioned, and the partitioned rectangular regions are used as focal point regions, so that the focal points can conveniently move; therefore, a phenomenon that the superposed focal points are skipped over during moving is avoided, and the superposed focal points can be selected; and the accuracy and the flexibility of movement of the focal points are improved.
Description
Technical field
The present invention relates to communication technical field, be specifically related to moving method, device and the terminal of focus in the digital television browser.
Background technology
Along with the development of digitalized electron technology, it is general that the application of Digital Television also becomes gradually.When using Digital Television, the user can browse HTML (HTML, the Hypertext Markup Language) page by digital television browser, and by the option on the page being selected realize the operation to Digital Television.Wherein, the user mainly can come the option on the page is selected by two kinds of approach, and a kind of is by the button on the digital television devices, and another kind is to pass through remote controller; The user is whenever by the button on digital television devices or whenever by the button on remote controller, can regard user's input as, digital television devices can be inputted the position of determining current focus and operates accordingly according to the user after receiving user input.So-called focus, what refer to is exactly the position that current cursor is activated, if the cursor of certain position is activated, means that then the control that is positioned at this position is selected, and this control can be operated.In present technology, can carry out Focal Point Shift with this four direction key of upper and lower, left and right.General, in the html page a plurality of focuses may be arranged, the layout of these a plurality of focuses can have various ways.
In the research and practice process to prior art, the present inventor finds, in the scheme of prior art, when focus major part when being overlapping, if focusing moves, then system only can identify in this overlapping focus one, causes other overlapping focuses to be chosen to.
Summary of the invention
The embodiment of the invention provides moving method, device and the Digital Television of focus in a kind of digital television browser, can when focus is overlapping to some extent overlapping focus be cut apart, so that this overlapping focus can be chosen to.
The moving method of focus in a kind of digital television browser comprises:
When receiving the Focal Point Shift instruction, obtain all focuses in the current visible page in the digital television browser;
Determine the rectangular area that each focus is shared;
Determine according to described Focal Point Shift instruction whether described rectangular area is overlapping to some extent;
If described rectangular area is overlapping to some extent, then according to described Focal Point Shift instruction overlapping rectangular area to be cut apart, the rectangular area after will cutting apart is as focus area;
If it is overlapping that described rectangular area does not have, then will there be overlapping rectangular area as focus area;
According to the Focal Point Shift instruction according to the focus area moving focal point.
Optionally, wherein, determine that the shared rectangular area of each focus specifically can comprise:
In described all focuses, determine current need focus to be processed; Obtain the coordinate figure of the pixel on the profile of described current need focus to be processed, described coordinate figure comprises transverse axis coordinate figure and ordinate of orthogonal axes value; With wide as the rectangular area of the difference of maximum transverse axis coordinate figure and minimum transverse axis coordinate figure, with the difference of maximum ordinate of orthogonal axes value and the minimum ordinate of orthogonal axes value height as the rectangular area, determine the shared rectangular area of described current need focus to be processed.
Optionally, wherein, according to described Focal Point Shift instruction overlapping rectangular area is cut apart, the rectangular area after will cutting apart specifically can comprise as focus area:
Obtain the height and width of the shared rectangular area of the height and width of the shared rectangular area of the coordinate of the coordinate of initial focus, overlapping focus, initial focus and overlapping focus, described overlapping focus is the focus overlapping with initial focus; Calculate the height and width of overlapping region;
If described Focal Point Shift instruction indication Focal Point Shift direction makes progress, and overlapping focus comprises initial focus, then with the high of the ordinate of overlapping focus and overlapping focus and, subtract again the ordinate of initial focus, the first numerical value that obtains is the first numerical value with the Gao Gengxin of overlapping region; The ordinate of determining overlapping focus is during less than the ordinate of initial focus, is the high poor of the height of overlapping focus and overlapping region with the Gao Gengxin of overlapping focus, with the rectangular area of the overlapping focus after upgrading as focus area;
If described Focal Point Shift instruction indication Focal Point Shift direction is downward, and overlapping focus comprises initial focus, then with the high of the ordinate of initial focus and initial focus and, the ordinate of the folded focus of loss of weight again, the second value that obtains is second value with the Gao Gengxin of overlapping region; Determine the high of the ordinate of overlapping focus and overlapping focus and greater than the high of the ordinate of initial focus and initial focus and the time, be the high poor of the height of overlapping focus and overlapping region with the Gao Gengxin of overlapping focus, and with the ordinate of overlapping focus be updated to the high of the ordinate of overlapping focus and overlapping region and, with the rectangular area of the overlapping focus after upgrading as focus area;
If described Focal Point Shift instruction indication Focal Point Shift direction is left, and overlapping focus comprises initial focus, then with the wide of the abscissa of overlapping focus and overlapping focus and, subtract again the abscissa of initial focus, the third value that obtains is with the wide third value that is updated to of overlapping region; The abscissa of determining overlapping focus is during less than the abscissa of initial focus, overlapping focus wide is updated to wide and overlapping region wide poor of overlapping focus, with the rectangular area of the overlapping focus after upgrading as focus area;
If described Focal Point Shift instruction indication Focal Point Shift direction is to the right, and overlapping focus comprises initial focus, then with the wide of the abscissa of initial focus and initial focus and, the abscissa of the folded focus of loss of weight again, the 4th numerical value that obtains is with wide the 4th numerical value that is updated to of overlapping region; Determine the wide of the abscissa of overlapping focus and overlapping focus and greater than the wide of the abscissa of initial focus and initial focus and the time, overlapping focus wide is updated to wide and overlapping region wide poor of overlapping focus, with the abscissa of overlapping focus change to the wide of the abscissa of initial focus and initial focus and, with the rectangular area of the overlapping focus after upgrading as focus area.
Optionally, wherein, described according to the Focal Point Shift instruction according to the focus area moving focal point, specifically can comprise:
If described Focal Point Shift instruction indication Focal Point Shift direction makes progress, and the top of initial focus does not have other focus area in current visible page, then according to each focus of coordinate Calculation of each focus of aliging with described initial focus and the distance of described initial focus, determine that the initial focus of distance focus farthest is goal-focus, focus is moved to the focus area of goal-focus from the focus area of initial focus;
If described Focal Point Shift instruction indication Focal Point Shift direction is downward, and the below of initial focus does not have other focus area in current visible page, then according to each focus of coordinate Calculation of each focus of aliging with described initial focus and the distance of described initial focus, determine that the initial focus of distance focus farthest is goal-focus, focus is moved to the focus area of goal-focus from the focus area of initial focus;
If described Focal Point Shift instruction indication Focal Point Shift direction is left, and the left of initial focus does not have other focus area in current visible page, then according to each focus of coordinate Calculation of each focus of aliging with described initial focus and the distance of described initial focus, determine that the initial focus of distance focus farthest is goal-focus, focus is moved to the focus area of goal-focus from the focus area of initial focus;
If described Focal Point Shift instruction indication Focal Point Shift direction is to the right, and the right-hand focus area that in current visible page, does not have other of initial focus, then according to each focus of coordinate Calculation of each focus of aliging with described initial focus and the distance of described initial focus, determine that the initial focus of distance focus farthest is goal-focus, focus is moved to the focus area of goal-focus from the focus area of initial focus.
Wherein, described goal-focus and initial focus can complete matchings, also can section aligned.
Accordingly, the embodiment of the invention also provides the mobile device of focus in a kind of digital television browser, it is characterized in that, comprises acquiring unit, determining unit, judging unit, cutting unit and mobile unit;
Acquiring unit when being used for receiving the Focal Point Shift instruction, obtains all focuses in the current visible page in the digital television browser;
Determining unit is used for determining the shared rectangular area of each focus;
Judging unit is used for determining according to described Focal Point Shift instruction whether described rectangular area is overlapping to some extent;
Cutting unit, be used for when judging unit determines that described rectangular area is overlapping to some extent, according to described Focal Point Shift instruction overlapping rectangular area is cut apart, rectangular area after will cutting apart is as focus area, determine that at judging unit described rectangular area does not have will not have overlapping rectangular area as focus area when overlapping;
Mobile unit is used for according to the Focal Point Shift instruction according to the focus area moving focal point.
Optionally, wherein, determining unit can comprise that focus determines that subelement, pixel are obtained subelement and subelement is determined in the zone;
Focus is determined subelement, is used for determining current need focus to be processed in described all focuses;
Pixel is obtained subelement, and for the coordinate figure of the pixel on the profile that obtains described current need focus to be processed, described coordinate figure comprises transverse axis coordinate figure and ordinate of orthogonal axes value;
Subelement is determined in the zone, with wide as the rectangular area of the difference of maximum transverse axis coordinate figure and minimum transverse axis coordinate figure, with the difference of maximum ordinate of orthogonal axes value and the minimum ordinate of orthogonal axes value height as the rectangular area, determine the shared rectangular area of described current need focus to be processed.
Optionally, wherein, described cutting unit can comprise that obtaining subelement, computation subunit, first processes subelement, second and process subelement, the 3rd and process subelement and the and manage subelement everywhere;
Obtain subelement, be used for obtaining the height and width of the shared rectangular area of the height and width of the shared rectangular area of the coordinate of the coordinate of initial focus, overlapping focus, initial focus and overlapping focus, described overlapping focus is the focus overlapping with initial focus;
Computation subunit is used for calculating the height and width of overlapping region;
First processes subelement, be used for making progress in described Focal Point Shift instruction indication Focal Point Shift direction, and when overlapping focus comprises initial focus, with the high of the ordinate of overlapping focus and overlapping focus and, subtract again the ordinate of initial focus, the first numerical value that obtains is the first numerical value with the Gao Gengxin of overlapping region; The ordinate of determining overlapping focus is during less than the ordinate of initial focus, is the high poor of the height of overlapping focus and overlapping region with the Gao Gengxin of overlapping focus, with the rectangular area of the overlapping focus after upgrading as focus area;
Second processes subelement, it is downward being used in described Focal Point Shift instruction indication Focal Point Shift direction, and when overlapping focus comprises initial focus, with the high of the ordinate of initial focus and initial focus and, loss of weight is folded the ordinate of focus again, the second value that obtains is second value with the Gao Gengxin of overlapping region; Determine the high of the ordinate of overlapping focus and overlapping focus and greater than the high of the ordinate of initial focus and initial focus and the time, be the high poor of the height of overlapping focus and overlapping region with the Gao Gengxin of overlapping focus, and with the ordinate of overlapping focus be updated to the high of the ordinate of overlapping focus and overlapping region and, with the rectangular area of the overlapping focus after upgrading as focus area;
The 3rd processes subelement, being used in described Focal Point Shift instruction indication Focal Point Shift direction is left, and when overlapping focus comprises initial focus, with the wide of the abscissa of overlapping focus and overlapping focus and, subtract again the abscissa of initial focus, the third value that obtains is with the wide third value that is updated to of overlapping region; The abscissa of determining overlapping focus is during less than the abscissa of initial focus, overlapping focus wide is updated to wide and overlapping region wide poor of overlapping focus, with the rectangular area of the overlapping focus after upgrading as focus area;
Manages subelement everywhere, being used in described Focal Point Shift instruction indication Focal Point Shift direction is to the right, and when overlapping focus comprises initial focus, with the wide of the abscissa of initial focus and initial focus and, loss of weight is folded the abscissa of focus again, the 4th numerical value that obtains is with wide the 4th numerical value that is updated to of overlapping region; Determine the wide of the abscissa of overlapping focus and overlapping focus and greater than the wide of the abscissa of initial focus and initial focus and the time, overlapping focus wide is updated to wide and overlapping region wide poor of overlapping focus, with the abscissa of overlapping focus change to the wide of the abscissa of initial focus and initial focus and, with the rectangular area of the overlapping focus after upgrading as focus area.
Optionally, described mobile unit can comprise the first mover unit, the second mover unit, the 3rd mover unit and the 4th mover unit;
The first mover unit, be used for making progress in described Focal Point Shift instruction indication Focal Point Shift direction, and when the top of initial focus does not have other focus area in current visible page, according to each focus of coordinate Calculation of each focus of aliging with described initial focus and the distance of described initial focus, determine that the initial focus of distance focus farthest is goal-focus, focus is moved to the focus area of goal-focus from the focus area of initial focus;
The second mover unit, it is downward being used in described Focal Point Shift instruction indication Focal Point Shift direction, and when the below of initial focus does not have other focus area in current visible page, according to each focus of coordinate Calculation of each focus of aliging with described initial focus and the distance of described initial focus, determine that the initial focus of distance focus farthest is goal-focus, focus is moved to the focus area of goal-focus from the focus area of initial focus;
The 3rd mover unit, being used in described Focal Point Shift instruction indication Focal Point Shift direction is left, and when the left of initial focus does not have other focus area in current visible page, according to each focus of coordinate Calculation of each focus of aliging with described initial focus and the distance of described initial focus, determine that the initial focus of distance focus farthest is goal-focus, focus is moved to the focus area of goal-focus from the focus area of initial focus;
The 4th mover unit, being used in described Focal Point Shift instruction indication Focal Point Shift direction is to the right, and when initial focus right-hand do not have other focus area in current visible page, according to each focus of coordinate Calculation of each focus of aliging with described initial focus and the distance of described initial focus, determine that the initial focus of distance focus farthest is goal-focus, focus is moved to the focus area of goal-focus from the focus area of initial focus.
In addition, the embodiment of the invention also provides a kind of Digital Television, can comprise the mobile device of focus in any digital television browser that the embodiment of the invention provides.
The embodiment of the invention is after receiving the Focal Point Shift instruction, if determine that the shared rectangular area of focus is overlapping to some extent, then overlapping rectangular area is cut apart, and the rectangular area after will cutting apart is as focus area, in order to carry out the movement of focus, thereby can avoid the generation of the situation that overlapping focus is skipped when carrying out Focal Point Shift, so that overlapping focus can be chosen to, improve accuracy and the flexibility of Focal Point Shift.
Description of drawings
In order to be illustrated more clearly in the technical scheme in the embodiment of the invention, the accompanying drawing of required use was done to introduce simply during the below will describe embodiment, apparently, accompanying drawing in the following describes only is some embodiments of the present invention, for those skilled in the art, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the flow chart of the moving method of focus in the digital television browser that provides of the embodiment of the invention;
Fig. 2 is the schematic diagram of current visible page in the embodiment of the invention;
When Fig. 3 a is single-way moving, the schematic diagram of Focal Point Shift in the horizontal direction;
When Fig. 3 b is single-way moving, the schematic diagram of Focal Point Shift in vertical direction;
When Fig. 4 a is loopy moving, the schematic diagram of Focal Point Shift in the horizontal direction;
When Fig. 4 b is loopy moving, the schematic diagram of Focal Point Shift in vertical direction;
Fig. 5 a is the schematic diagram of focus complete matching in the embodiment of the invention;
Fig. 5 b is the schematic diagram of focus section alignment in the embodiment of the invention;
Fig. 5 c is the schematic diagram that focus does not line up in the embodiment of the invention;
Fig. 6 is another flow chart of the moving method of focus in the digital television browser that provides of the embodiment of the invention;
Fig. 7 a is the scene schematic diagram of focus in the current visible page that provides of the embodiment of the invention;
Fig. 7 b is the scene schematic diagram of the rectangular area of focus in the current visible page that provides of the embodiment of the invention;
Fig. 7 c is the scene schematic diagram of the focus area of each focus after cutting apart in the current visible page that provides of the embodiment of the invention;
Fig. 8 is the structural representation of the mobile device of focus in the digital television browser that provides of the embodiment of the invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those skilled in the art belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
The embodiment of the invention provides moving method, device and the Digital Television of focus in a kind of digital television browser.Below be elaborated respectively.
Embodiment one,
The present embodiment will the angle of the mobile device of focus be described from digital television browser, and the mobile device of focus specifically can be integrated in the Digital Television in this digital television browser.
The moving method of focus in a kind of digital television browser comprises: when receiving the Focal Point Shift instruction, obtain all focuses in the current visible page in the digital television browser; Determine the rectangular area that each focus is shared; Determine according to this Focal Point Shift instruction whether described rectangular area is overlapping to some extent; If this rectangular area is overlapping to some extent, then according to this Focal Point Shift instruction overlapping rectangular area to be cut apart, the rectangular area after will cutting apart is as focus area; If it is overlapping that this rectangular area does not have, then will there be overlapping rectangular area as focus area; According to the Focal Point Shift instruction according to the focus area moving focal point.
As shown in Figure 1, idiographic flow can be as follows:
When 101, receiving the Focal Point Shift instruction, obtain all focuses in the current visible page in the digital television browser.
Wherein, the moving direction of Focal Point Shift instruction indication focus, such as, upwards, downwards, to the left or to the right, etc.This Focal Point Shift instruction can be triggered by the button on remote controller or the Digital Television by the user, and concrete triggering mode can referring to prior art, not repeat them here.
In addition, as shown in Figure 2, the current page that is presented in the digital television browser that current visible page refers in the digital television browser (might be larger than screen because of actual pages, so screen can't all show actual pages), such as, focus A and B are located in the current visible page, and focus C then is not positioned at current visible page.This current visible page can determine by the following methods:
At first, need to determine the size of screen, wherein, the size of screen is set in advance by the user, such as the 1280x720 pixel, etc.Secondly, if screen has rolling, what pixels of then having determined screen scroll obtain the absolute coordinate of screen area, then compare focal coordinates and absolute coordinate screen area, can obtain current visible page.Such as, specifically can be as follows:
If the starting point of screen (referring generally to the upper left corner of screen) coordinate is (x
3, y
3), the wide and height of screen is respectively w
3And h
3, the starting point of focus (referring generally to the upper left corner of actual pages) is (x
4, y
4), the wide and height of actual pages is respectively w
4And h
4, then, satisfy the focus of following 4 conditions in screen area:
x
4>=x
3;
x
4<x
3+w
3;
y
4>=y
3;
y
4<y
3+h
3。
102, determine the rectangular area that each focus is shared, for example, specifically can be as follows:
At first, in all focuses, determine current need focus to be processed, secondly, obtain the coordinate figure of the pixel on the profile of this current focus of need processing, wherein, this coordinate figure comprises transverse axis coordinate figure and ordinate of orthogonal axes value, then, with wide as the rectangular area of the difference of maximum transverse axis coordinate figure and minimum transverse axis coordinate figure, with the difference of maximum ordinate of orthogonal axes value and the minimum ordinate of orthogonal axes value height as the rectangular area, determine this current shared rectangular area of focus of processing of needing.
It should be noted that, except above-mentioned mode, also can adopt other modes to determine the rectangular area that each focus is shared, do not repeat them here.Should be understood that, the wide of the rectangular area that focus is shared also can be more bigger than " difference of maximum transverse axis coordinate figure and minimum transverse axis coordinate figure ", such as can be than " difference of maximum transverse axis coordinate figure and minimum transverse axis coordinate figure " large some predetermined values, this predetermined value can arrange according to the demand of practical application; In like manner, the height of the rectangular area that focus is shared also can be more bigger than " difference of maximum ordinate of orthogonal axes value and minimum ordinate of orthogonal axes value ", such as can be than " difference of maximum transverse axis coordinate figure and minimum transverse axis coordinate figure " large another predetermined value, this another predetermined value also can arrange according to the demand of practical application, etc.
Whether 103, overlapping to some extent according to the rectangular area of determining in the Focal Point Shift instruction determining step 102 that receives in the step 101, if then execution in step 104, if not, then execution in step 105.
Wherein, determine whether overlapping to some extent method specifically can referring to prior art, not repeat them here in the rectangular area.
If when the rectangular area of determining in 104 steps 102 is overlapping to some extent, then according to the Focal Point Shift instruction that receives in the step 101 overlapping rectangular area is cut apart, the rectangular area after will cutting apart is as focus area; For example, specifically can be as follows:
At first, obtain the height and width of the shared rectangular area of the height and width of the shared rectangular area of the coordinate of the coordinate of initial focus, overlapping focus, initial focus and overlapping focus, and calculate the height and width of overlapping region; Wherein, the described overlapping focus of the embodiment of the invention refers to the focus overlapping with initial focus; Secondly, according to the indication of Focal Point Shift instruction overlapping rectangular area is cut apart, as follows:
(1) move indication: upwards;
If Focal Point Shift instruction indication Focal Point Shift direction makes progress, and overlapping focus comprises initial focus, then with the high of the ordinate of overlapping focus and overlapping focus and, subtract again the ordinate of initial focus, the first numerical value that obtains is the first numerical value with the Gao Gengxin of overlapping region; The ordinate of determining overlapping focus is during less than the ordinate of initial focus, is the high poor of the height of overlapping focus and overlapping region with the Gao Gengxin of overlapping focus, with the rectangular area of the overlapping focus after upgrading as focus area.For example, if the coordinate of initial focus is (x
0, y
0), the coordinate of overlapping focus is (x
1, y
1), the wide and height of the rectangular area that initial focus is shared is respectively w
0And h
0, the wide and height of the rectangular area that overlapping focus is shared is respectively w
1And h
1, the wide and height of overlapping region is respectively dx and dy, then specifically can be as follows:
If Focal Point Shift instruction indication Focal Point Shift direction makes progress, and overlapping focus comprises initial focus, and then the high dy with the overlapping region is updated to " y
1+ h
1-y
0"; If y
1<y
0, then with the high h of overlapping focus
1Be revised as " h
1-dy ".
(2) Focal Point Shift instruction indication: downwards;
If Focal Point Shift instruction indication Focal Point Shift direction is downward, and overlapping focus comprises initial focus, then with the high of the ordinate of initial focus and initial focus and, the ordinate of the folded focus of loss of weight again, the second value that obtains is second value with the Gao Gengxin of overlapping region; Determine the high of the ordinate of overlapping focus and overlapping focus and greater than the high of the ordinate of initial focus and initial focus and the time, be the high poor of the height of overlapping focus and overlapping region with the Gao Gengxin of overlapping focus, and with the ordinate of overlapping focus be updated to the high of the ordinate of overlapping focus and overlapping region and, with the rectangular area of the overlapping focus after upgrading as focus area.For example, if the coordinate of initial focus is (x
0, y
0), the coordinate of overlapping focus is (x
1, y
1), the wide and high respectively w of the rectangular area that initial focus is shared
0And h
0, the wide and height of the rectangular area that overlapping focus is shared is respectively w
1And h
1, the wide and high position of overlapping region is respectively dx and dy, then specifically can be as follows:
If Focal Point Shift instruction indication Focal Point Shift direction is downward, and overlapping focus comprises initial focus, and then the high dy with the overlapping region is updated to " y
0+ h
0-y
1"; If y
1+ h
1Y
0+ h
0, then with the high h of overlapping focus
1Be updated to " h
1-dy ", and with the ordinate y of overlapping focus
1Be updated to y
1+ dy.
(3) Focal Point Shift instruction indication: left;
If described Focal Point Shift instruction indication Focal Point Shift direction is left, and overlapping focus comprises initial focus, then with the wide of the abscissa of overlapping focus and overlapping focus and, subtract again the abscissa of initial focus, the third value that obtains is with the wide third value that is updated to of overlapping region; The abscissa of determining overlapping focus is during less than the abscissa of initial focus, overlapping focus wide is updated to wide and overlapping region wide poor of overlapping focus, with the rectangular area of the overlapping focus after upgrading as focus area.For example, if the coordinate of initial focus is (x
0, y
0), the coordinate of overlapping focus is (x
1, y
1), the wide and high respectively w of the rectangular area that initial focus is shared
0And h
0, the wide and height of the rectangular area that overlapping focus is shared is respectively w
1And h
1, the wide and high position of overlapping region is respectively dx and dy, then specifically can be as follows:
If Focal Point Shift instruction indication Focal Point Shift direction is left, and overlapping focus comprises initial focus, and then the wide dx with the overlapping region is updated to " x
1+ w
1-x
0"; If x
1<x
0, then with the wide w of overlapping focus
1Be revised as " w
1-dx ".
(4) Focal Point Shift instruction indication: to the right;
If described Focal Point Shift instruction indication Focal Point Shift direction is to the right, and overlapping focus comprises initial focus, then with the wide of the abscissa of initial focus and initial focus and, the abscissa of the folded focus of loss of weight again, the 4th numerical value that obtains is with wide the 4th numerical value that is updated to of overlapping region; Determine the wide of the abscissa of overlapping focus and overlapping focus and greater than the wide of the abscissa of initial focus and initial focus and the time, overlapping focus wide is updated to wide and overlapping region wide poor of overlapping focus, with the abscissa of overlapping focus change to the wide of the abscissa of initial focus and initial focus and, with the rectangular area of the overlapping focus after upgrading as focus area.For example, if the coordinate of initial focus is (x
0, y
0), the coordinate of overlapping focus is (x
1, y
1), the wide and high respectively w of the rectangular area that initial focus is shared
0And h
0, the wide and height of the rectangular area that overlapping focus is shared is respectively w
1And h
1, the wide and high position of overlapping region is respectively dx and dy, then specifically can be as follows:
If Focal Point Shift instruction indication Focal Point Shift direction is to the right, and overlapping focus comprises initial focus, and then the wide dx with the overlapping region is updated to " x
0+ w
0-x
1"; If x
1+ w
1X
0+ w
0, then with the wide w of overlapping focus
1Be updated to w
1-dx, and with the abscissa x of overlapping focus
1Be updated to " x
0+ w
0".
It should be noted that, in embodiments of the present invention, focus area refers to the zone that can carry out Focal Point Shift, and (function is equivalent to focus, just focus may be an irregular zone, and focus area is generally the zone of a rule), be the position that cursor can be activated, if this focus area is selected, then can be to the operation of its corresponding control.
If it is overlapping that the rectangular area of determining in 105 steps 102 does not have, then will there be overlapping rectangular area as focus area.
106, according to the Focal Point Shift instruction according to the focus area moving focal point;
Wherein, the movement of focus can be unidirectional, such as, referring to Fig. 3 a and Fig. 3 b, wherein, Fig. 3 a is the Focal Point Shift (take left as example) of horizontal direction, Fig. 3 b is the Focal Point Shift (take downwards as example) of vertical direction; In order to improve the flexibility of Focal Point Shift, so that the user operates is more convenient, the movement of focus also can circulate, such as, referring to Fig. 4 a and Fig. 4 b, wherein, Fig. 4 a is the Focal Point Shift of horizontal direction, Fig. 4 b is the Focal Point Shift of vertical direction.For example, specifically can realize in the following way the loopy moving of focus:
(1) move indication: upwards;
If Focal Point Shift instruction indication Focal Point Shift direction makes progress, and the top of initial focus does not have other focus area in current visible page, then according to each focus of coordinate Calculation of each focus of aliging with this initial focus and the distance of this initial focus, determine that the initial focus of distance focus farthest is goal-focus, focus is moved to the focus area of goal-focus from the focus area of initial focus.
(2) move indication: downwards;
If Focal Point Shift instruction indication Focal Point Shift direction is downward, and the below of initial focus does not have other focus area in current visible page, then according to each focus of coordinate Calculation of each focus of aliging with this initial focus and the distance of this initial focus, determine that the initial focus of distance focus farthest is goal-focus, focus is moved to the focus area of goal-focus from the focus area of initial focus.
(3) move indication: left;
If Focal Point Shift instruction indication Focal Point Shift direction is left, and the left of initial focus does not have other focus area in current visible page, then according to each focus of coordinate Calculation of each focus of aliging with this initial focus and the distance of this initial focus, determine that the initial focus of distance focus farthest is goal-focus, focus is moved to the focus area of goal-focus from the focus area of initial focus.
(4) move indication: to the right;
If Focal Point Shift instruction indication Focal Point Shift direction is to the right, and the right-hand focus area that in current visible page, does not have other of initial focus, then according to each focus of coordinate Calculation of each focus of aliging with this initial focus and the distance of this initial focus, determine that the initial focus of distance focus farthest is goal-focus, focus is moved to the focus area of goal-focus from the focus area of initial focus.
Wherein, goal-focus and initial focus can complete matchings, perhaps, and also can section aligned; Such as, referring to Fig. 5 a, Fig. 5 b and Fig. 5 c, wherein, in Fig. 5 a, focus A and focus B complete matching, focus A and focus C be complete matching also; And in Fig. 5 b, focus A and focus B are section aligned, and focus A and focus C are section aligned also, and in Fig. 5 c, focus A and focus B be not for lining up, and focus A and focus C do not line up yet, etc.
As from the foregoing, the present embodiment is after receiving the Focal Point Shift instruction, if determine that the shared rectangular area of focus is overlapping to some extent, then overlapping rectangular area is cut apart, and the rectangular area after will cutting apart is as focus area, in order to carry out the movement of focus, thereby can avoid the generation of the situation that overlapping focus is skipped when carrying out Focal Point Shift, so that overlapping focus can be chosen to, improved accuracy and the flexibility of Focal Point Shift.
Embodiment two,
According to embodiment one described method, below will be described in further detail for example.
In the present embodiment, will specifically can be integrated in take the mobile device of focus in this digital television browser in the Digital Television as example and describe.
As shown in Figure 6, idiographic flow can be as follows:
201, Digital Television (being specially the mobile device of focus in the digital television browser that is integrated in the Digital Television) receives the Focal Point Shift instruction.
Wherein, the moving direction of Focal Point Shift instruction indication focus, such as, upwards, downwards, to the left or to the right, etc.
For convenience, in embodiments of the present invention, will describe as " left " as example take the moving direction of this Focal Point Shift instruction indication focus.This Focal Point Shift instruction can be triggered by the button on remote controller or the Digital Television by the user, and concrete triggering mode can referring to prior art, not repeat them here.
202, Digital Television (being specially the mobile device of focus in the digital television browser that is integrated in the Digital Television) is obtained all focuses in the current visible page in the digital television browser.
For example, shown in Fig. 7 a, include four objects in the digital television browser in the current visible page, be respectively clock, photograph, perfume and map, wherein, the irregular area that square frame comprises namely is the focus that will process, for convenience, at this clock is called focus A, photograph is called focus B, perfume is called focus C, and map is called focus D.
203, Digital Television (being specially the mobile device of focus in the digital television browser that is integrated in the Digital Television) is determined the rectangular area that each focus is shared;
For example, specifically can be referring to Fig. 7 b, wherein, the shared rectangular area of focus A can be referred to as the rectangular area of focus A, the shared rectangular area of focus B can be referred to as the rectangular area of focus B, the shared rectangular area of focus D can be referred to as the rectangular area of focus D, and the shared rectangular area of focus C can be referred to as the rectangular area of focus C.
204, whether Digital Television (being specially the mobile device of focus in the digital television browser that is integrated in the Digital Television) is overlapping to some extent according to the rectangular area of determining in the Focal Point Shift instruction determining step 203 that receives in the step 201, if, then execution in step 205, if not, execution in step 206 then.
By Fig. 7 b as can be known, the rectangular area of the rectangular area of focus A and focus B overlaps, and the rectangular area of focus D then comprises the rectangular area of focus C fully, referring to the i.e. diagonal line hatches part among the figure of the overlapping region 1 among the figure and overlapping region 2().If focus A is initial focus, then focus B can be called the overlapping focus of focus A, and still, focus B also not exclusively comprises focus A; In like manner, if focus C is initial focus, can claim that then focus D is the overlapping focus of focus C, and focus D comprises focus C fully.
For example, take the Focal Point Shift direction of Focal Point Shift instruction indication as " left ", and initial focus is that C is example, and this moment then, Digital Television determines that the rectangular area of the rectangular area of focus C and focus D is overlapping to some extent, therefore, and direct execution in step 205.
205, Digital Television (being specially the mobile device of focus in the digital television browser that is integrated in the Digital Television) is cut apart overlapping rectangular area according to the Focal Point Shift instruction that receives in the step 201, and the rectangular area after will cutting apart is as focus area.
For example, if the Focal Point Shift direction of Focal Point Shift instruction indication be " left ", and initial focus is C, and then at this moment, Digital Television can be obtained first the coordinate (x of initial focus (being focus C)
0, y
0), the coordinate (x of overlapping focus (being focus D)
1, y
1), the wide w of the shared rectangular area (being the rectangular area of focus C) of initial focus
0With high h
0, and the wide w of the shared rectangular area (being the rectangular area of focus D) of overlapping focus
1With high h
1, and calculate wide dx and the high dy of overlapping region (being overlapping region 2).
Because the Focal Point Shift direction of Focal Point Shift instruction indication be " left ", and focus D comprises focus C fully, and therefore, Digital Television calculating is updated to " y with the high dy of overlapping region
1+ h
1-y
0" further, if because y
1<y
0, therefore, with the high h of overlapping focus
1Be revised as " h
1-dy ".
After the coordinate that process is above-mentioned and the high modification, variation has occured in cutting apart between the rectangular area of the rectangular area of focus C and focus D, and namely amended parameters is:
The coordinate of focus C is (x
0, y
0), the height of focus C is h
0, the wide of focus C is w
0
The coordinate of focus D is (x
1, y
1), the height of focus C is " h
1-dy ", the wide of focus C is w
1
The wide of overlapping region is dx, and high dy is " y
1+ h
1-y
0".
For example, specifically can be referring to Fig. 7 c, this figure is the focus area of each focus after cutting apart: the focus area of the focus area of focus A, the focus area of focus B, focus C and the focus area of focus D.
206, Digital Television will not have overlapping rectangular area directly as focus area, namely need not to cut apart.
207, Digital Television according to the Focal Point Shift instruction according to the focus area moving focal point.
For example, if the Focal Point Shift direction of Focal Point Shift instruction indication is " left ", and initial focus is focus C, and then Digital Television can move to focus the focus area of focus D from the focus area of focus C.
It should be noted that, the movement of focus can be unidirectional, also can circulate, such as, if Focal Point Shift is unidirectional, because the left side of the focus area of focus D does not have other focus area, so can not continue to be moved to the left; And if Focal Point Shift circulates, then Focal Point Shift arrives after the focus area of focus D, if continue to receive after the Focal Point Shift instruction that is moved to the left of user's triggering, focus will move to from the focus area of focus D the focus area of focus A, by that analogy, do not repeat them here.
As seen, the loopy moving mode seems more flexible for the single-way moving mode, is convenient to user's operation, is conducive to improve the user and experiences.
It should be noted that, abovely only describe as " left " as example take the moving direction of Focal Point Shift instruction indication focus, should be understood that, the direction of Focal Point Shift can also be other directions, and its implementation does not similarly repeat them here.
In addition, also it should be noted that, when the initial opening page, will relate to the location of first focus, in order to realize quick location, can make index of reference locate first focus; For example, behind page open, browser can be given first focal point settings focus index value, general, minimum value is on the upper left side of the page, subsequently, system simulation sends a Tab button to browser, like this, browser will automatically on the value of the minimum in focus location, namely navigate on the first focus.
As from the foregoing, the present embodiment is after receiving the Focal Point Shift instruction, if determine that the shared rectangular area of focus is overlapping to some extent, then overlapping rectangular area is cut apart, and the rectangular area after will cutting apart is as focus area, in order to carry out the movement of focus, thereby can avoid the generation of the situation that overlapping focus is skipped when carrying out Focal Point Shift, so that overlapping focus can be chosen to, improved accuracy and the flexibility of Focal Point Shift; And, when carrying out Focal Point Shift, adopted the mode of loopy moving, when having avoided in the prior art single-way moving, need the situation that repeatedly movement could be from last Focal Point Shift to first focus, the flexibility that has greatly improved Focal Point Shift, user-friendly, be conducive to improve the user and experience.
Embodiment three,
In order to implement above method, the embodiment of the invention also provides the mobile device of focus in a kind of digital television browser, as shown in Figure 8, the mobile device of focus can comprise acquiring unit 301, determining unit 302, judging unit 303, cutting unit 304 and mobile unit 305 in this digital television browser;
Acquiring unit 301 when being used for receiving the Focal Point Shift instruction, obtains all focuses in the current visible page in the digital television browser;
Wherein, the moving direction of Focal Point Shift instruction indication focus, such as, upwards, downwards, to the left or to the right, etc.This Focal Point Shift instruction can be triggered by the button on remote controller or the Digital Television by the user, and concrete triggering mode can referring to prior art, not repeat them here.
Determining unit 302 is used for determining the shared rectangular area of each focus;
Judging unit 303 is used for according to Focal Point Shift instruction and determines whether described rectangular area is overlapping to some extent;
Wherein, determine whether overlapping to some extent method specifically can referring to prior art, not repeat them here in the rectangular area.
Cutting unit 304, be used for when judging unit 303 determines that the rectangular area is overlapping to some extent, according to the Focal Point Shift instruction overlapping rectangular area is cut apart, rectangular area after will cutting apart is as focus area, determine that at judging unit 303 rectangular areas do not have will not have overlapping rectangular area as focus area when overlapping;
Optionally, wherein, determining unit 302 can comprise that focus determines that subelement, pixel are obtained subelement and subelement is determined in the zone, and is as follows:
Focus is determined subelement, is used for determining current need focus to be processed in all focuses (being all focuses in the current visible page of digital television browser that gets access to of acquiring unit 301);
Pixel is obtained subelement, and for the coordinate figure of the pixel on the profile that obtains current need focus to be processed, wherein, the coordinate figure of this pixel comprises transverse axis coordinate figure and ordinate of orthogonal axes value;
Subelement is determined in the zone, with wide as the rectangular area of the difference of maximum transverse axis coordinate figure and minimum transverse axis coordinate figure, with the difference of maximum ordinate of orthogonal axes value and the minimum ordinate of orthogonal axes value height as the rectangular area, determine this current shared rectangular area of focus of processing of needing.
According to aforesaid way, can obtain the shared rectangular area of each focus.
Wherein, cutting unit 304 can comprise that obtaining subelement, computation subunit, first processes subelement, second and process subelement, the 3rd and process subelement and the and manage subelement everywhere, and is as follows:
Obtain subelement, be used for obtaining the height and width of the shared rectangular area of the height and width of the shared rectangular area of the coordinate of the coordinate of initial focus, overlapping focus, initial focus and overlapping focus, wherein, the described overlapping focus of the embodiment of the invention refers to the focus overlapping with initial focus;
Computation subunit is used for calculating the height and width of overlapping region;
First processes subelement, be used for making progress in Focal Point Shift instruction indication Focal Point Shift direction, and when overlapping focus comprises initial focus, with the high of the ordinate of overlapping focus and overlapping focus and, subtract again the ordinate of initial focus, the first numerical value that obtains is the first numerical value with the Gao Gengxin of overlapping region; The ordinate of determining overlapping focus is during less than the ordinate of initial focus, is the high poor of the height of overlapping focus and overlapping region with the Gao Gengxin of overlapping focus, with the rectangular area of the overlapping focus after upgrading as focus area;
Second processes subelement, it is downward being used in described Focal Point Shift instruction indication Focal Point Shift direction, and when overlapping focus comprises initial focus, with the high of the ordinate of initial focus and initial focus and, loss of weight is folded the ordinate of focus again, the second value that obtains is second value with the Gao Gengxin of overlapping region; Determine the high of the ordinate of overlapping focus and overlapping focus and greater than the high of the ordinate of initial focus and initial focus and the time, be the high poor of the height of overlapping focus and overlapping region with the Gao Gengxin of overlapping focus, and with the ordinate of overlapping focus be updated to the high of the ordinate of overlapping focus and overlapping region and, with the rectangular area of the overlapping focus after upgrading as focus area;
The 3rd processes subelement, being used in described Focal Point Shift instruction indication Focal Point Shift direction is left, and when overlapping focus comprises initial focus, with the wide of the abscissa of overlapping focus and overlapping focus and, subtract again the abscissa of initial focus, the third value that obtains is with the wide third value that is updated to of overlapping region; The abscissa of determining overlapping focus is during less than the abscissa of initial focus, overlapping focus wide is updated to wide and overlapping region wide poor of overlapping focus, with the rectangular area of the overlapping focus after upgrading as focus area;
Manages subelement everywhere, being used in described Focal Point Shift instruction indication Focal Point Shift direction is to the right, and when overlapping focus comprises initial focus, with the wide of the abscissa of initial focus and initial focus and, loss of weight is folded the abscissa of focus again, the 4th numerical value that obtains is with wide the 4th numerical value that is updated to of overlapping region; Determine the wide of the abscissa of overlapping focus and overlapping focus and greater than the wide of the abscissa of initial focus and initial focus and the time, overlapping focus wide is updated to wide and overlapping region wide poor of overlapping focus, with the abscissa of overlapping focus change to the wide of the abscissa of initial focus and initial focus and, with the rectangular area of the overlapping focus after upgrading as focus area.
For example, if the coordinate of initial focus is (x
0, y
0), the coordinate of overlapping focus is (x
1, y
1), the wide and height of the rectangular area that initial focus is shared is respectively w
0And h
0, the wide and height of the rectangular area that overlapping focus is shared is respectively w
1And h
1, the wide and height of overlapping region is respectively dx and dy, then specifically can be as follows:
(1) if Focal Point Shift instruction indication Focal Point Shift direction makes progress, and overlapping focus comprises initial focus, and then the high dy with the overlapping region is updated to " y
1+ h
1-y
0"; If y
1<y
0, then with the high h of overlapping focus
1Be revised as " h
1-dy ".
(2) if Focal Point Shift instruction indication Focal Point Shift direction is downward, and overlapping focus comprises initial focus, and then the high dy with the overlapping region is updated to " y
0+ h
0-y
1"; If y
1+ h
1Y
0+ h
0, then with the high h of overlapping focus
1Be updated to " h
1-dy ", and with the ordinate y of overlapping focus
1Be updated to y
1+ dy.
(3) if Focal Point Shift instruction indication Focal Point Shift direction is left, and overlapping focus comprises initial focus, and then the wide dx with the overlapping region is updated to " x
1+ w
1-x
0"; If x
1<x
0, then with the wide w of overlapping focus
1Be revised as " w
1-dx ".
(4) if Focal Point Shift instruction indication Focal Point Shift direction is to the right, and overlapping focus comprises initial focus, and then the wide dx with the overlapping region is updated to " x
0+ w
0-x
1"; If x
1+ w
1X
0+ w
0, then with the wide w of overlapping focus
1Be updated to " w
1-dy ", and with the abscissa x of overlapping focus
1Be updated to x
0+ w0.
Wherein, mobile unit 305 sons are when carrying out Focal Point Shift, and the movement of focus can be unidirectional, also can circulate, that is, optional, mobile unit 305 can comprise the first mover unit, the second mover unit, the 3rd mover unit and the 4th mover unit, and is as follows:
The first mover unit, be used for making progress in Focal Point Shift instruction indication Focal Point Shift direction, and when the top of initial focus does not have other focus area in current visible page, according to each focus of coordinate Calculation of each focus of aliging with described initial focus and the distance of described initial focus, determine that the initial focus of distance focus farthest is goal-focus, focus is moved to the focus area of goal-focus from the focus area of initial focus;
The second mover unit, it is downward being used in Focal Point Shift instruction indication Focal Point Shift direction, and when the below of initial focus does not have other focus area in current visible page, according to each focus of coordinate Calculation of each focus of aliging with described initial focus and the distance of described initial focus, determine that the initial focus of distance focus farthest is goal-focus, focus is moved to the focus area of goal-focus from the focus area of initial focus;
The 3rd mover unit, being used in Focal Point Shift instruction indication Focal Point Shift direction is left, and when the left of initial focus does not have other focus area in current visible page, according to each focus of coordinate Calculation of each focus of aliging with described initial focus and the distance of described initial focus, determine that the initial focus of distance focus farthest is goal-focus, focus is moved to the focus area of goal-focus from the focus area of initial focus;
The 4th mover unit, being used in Focal Point Shift instruction indication Focal Point Shift direction is to the right, and when initial focus right-hand do not have other focus area in current visible page, according to each focus of coordinate Calculation of each focus of aliging with described initial focus and the distance of described initial focus, determine that the initial focus of distance focus farthest is goal-focus, focus is moved to the focus area of goal-focus from the focus area of initial focus.
Wherein, goal-focus and initial focus can complete matchings, perhaps, and also can section aligned; Such as, referring to Fig. 5 a, Fig. 5 b and Fig. 5 c, wherein, in Fig. 5 a, focus A and focus B complete matching, focus A and focus C be complete matching also; And in Fig. 5 b, focus A and focus B are section aligned, and focus A and focus C are section aligned also, and in Fig. 5 c, focus A and focus B be not for lining up, and focus A and focus C do not line up yet, etc.
The mobile device of focus specifically can be integrated in the Digital Television in this digital television browser.
During implementation, above unit can be used as independently entity realization, also can carry out combination in any, realizes that as same or several entities the implementation of above unit can referring to the embodiment of the method for front, not repeat them here.
As from the foregoing, the acquiring unit 301 of the mobile device of focus is after receiving the Focal Point Shift instruction in the digital television browser of the present embodiment, can determine whether the shared rectangular area of focus is overlapping to some extent by judging unit 303, if have overlapping, then cut apart by 304 pairs of overlapping rectangular areas of cutting unit, and the rectangular area after will cutting apart is as focus area, so that mobile unit 305 carries out the movement of focus, thereby can avoid the generation of the situation that overlapping focus is skipped when carrying out Focal Point Shift, so that overlapping focus can be chosen to, improved accuracy and the flexibility of Focal Point Shift; And, when carrying out Focal Point Shift, adopted the mode of loopy moving, when having avoided in the prior art single-way moving, need the situation that repeatedly movement could be from last Focal Point Shift to first focus, the flexibility that has greatly improved Focal Point Shift, user-friendly, be conducive to improve the user and experience.
Embodiment four,
Accordingly, the embodiment of the invention also provides a kind of Digital Television, comprises the mobile device of focus in any digital television browser that the embodiment of the invention provides, wherein, the mobile device of focus specifically can referring to embodiment three, not repeat them here in this digital television browser.For example, can be as follows:
The mobile device of focus in the digital television browser when being used for receiving the Focal Point Shift instruction, obtains all focuses in the current visible page in the digital television browser; Determine the rectangular area that each focus is shared, determine according to described Focal Point Shift instruction whether these rectangular areas are overlapping to some extent; If these rectangular areas are overlapping to some extent, then according to the Focal Point Shift instruction overlapping rectangular area to be cut apart, the rectangular area after will cutting apart is as focus area; If it is overlapping that these rectangular areas do not have, then will there be overlapping rectangular area as focus area; According to the Focal Point Shift instruction according to the focus area moving focal point.
This Digital Television can realize the beneficial effect of the mobile device of focus in the digital television browser that the embodiment of the invention provides equally, and the embodiment referring to the front does not repeat them here.
One of ordinary skill in the art will appreciate that all or part of step in the whole bag of tricks of above-described embodiment is to come the relevant hardware of instruction finish by program, this program can be stored in the computer-readable recording medium, storage medium can comprise: read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), disk or CD etc.
Moving method, device and the Digital Television of focus are described in detail in above a kind of digital television browser that the embodiment of the invention is provided, used specific case herein principle of the present invention and execution mode are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for those skilled in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.
Claims (10)
1. the moving method of focus in the digital television browser is characterized in that, comprising:
When receiving the Focal Point Shift instruction, obtain all focuses in the current visible page in the digital television browser;
Determine the rectangular area that each focus is shared;
Determine according to described Focal Point Shift instruction whether described rectangular area is overlapping to some extent;
If described rectangular area is overlapping to some extent, then according to described Focal Point Shift instruction overlapping rectangular area to be cut apart, the rectangular area after will cutting apart is as focus area;
If it is overlapping that described rectangular area does not have, then will there be overlapping rectangular area as focus area;
According to the Focal Point Shift instruction according to the focus area moving focal point.
2. method according to claim 1 is characterized in that, described definite shared rectangular area of each focus comprises:
In described all focuses, determine current need focus to be processed;
Obtain the coordinate figure of the pixel on the profile of described current need focus to be processed, described coordinate figure comprises transverse axis coordinate figure and ordinate of orthogonal axes value;
With wide as the rectangular area of the difference of maximum transverse axis coordinate figure and minimum transverse axis coordinate figure, with the difference of maximum ordinate of orthogonal axes value and the minimum ordinate of orthogonal axes value height as the rectangular area, determine the shared rectangular area of described current need focus to be processed.
3. method according to claim 1 is characterized in that, describedly according to described Focal Point Shift instruction overlapping rectangular area is cut apart, and the rectangular area after will cutting apart comprises as focus area:
Obtain the height and width of the shared rectangular area of the height and width of the shared rectangular area of the coordinate of the coordinate of initial focus, overlapping focus, initial focus and overlapping focus, described overlapping focus is the focus overlapping with initial focus;
Calculate the height and width of overlapping region;
If described Focal Point Shift instruction indication Focal Point Shift direction makes progress, and overlapping focus comprises initial focus, then with the high of the ordinate of overlapping focus and overlapping focus and, subtract again the ordinate of initial focus, the first numerical value that obtains is the first numerical value with the Gao Gengxin of overlapping region; The ordinate of determining overlapping focus is during less than the ordinate of initial focus, is the high poor of the height of overlapping focus and overlapping region with the Gao Gengxin of overlapping focus, with the rectangular area of the overlapping focus after upgrading as focus area;
If described Focal Point Shift instruction indication Focal Point Shift direction is downward, and overlapping focus comprises initial focus, then with the high of the ordinate of initial focus and initial focus and, the ordinate of the folded focus of loss of weight again, the second value that obtains is second value with the Gao Gengxin of overlapping region; Determine the high of the ordinate of overlapping focus and overlapping focus and greater than the high of the ordinate of initial focus and initial focus and the time, be the high poor of the height of overlapping focus and overlapping region with the Gao Gengxin of overlapping focus, and with the ordinate of overlapping focus be updated to the high of the ordinate of overlapping focus and overlapping region and, with the rectangular area of the overlapping focus after upgrading as focus area;
If described Focal Point Shift instruction indication Focal Point Shift direction is left, and overlapping focus comprises initial focus, then with the wide of the abscissa of overlapping focus and overlapping focus and, subtract again the abscissa of initial focus, the third value that obtains is with the wide third value that is updated to of overlapping region; The abscissa of determining overlapping focus is during less than the abscissa of initial focus, overlapping focus wide is updated to wide and overlapping region wide poor of overlapping focus, with the rectangular area of the overlapping focus after upgrading as focus area;
If described Focal Point Shift instruction indication Focal Point Shift direction is to the right, and overlapping focus comprises initial focus, then with the wide of the abscissa of initial focus and initial focus and, the abscissa of the folded focus of loss of weight again, the 4th numerical value that obtains is with wide the 4th numerical value that is updated to of overlapping region; Determine the wide of the abscissa of overlapping focus and overlapping focus and greater than the wide of the abscissa of initial focus and initial focus and the time, overlapping focus wide is updated to wide and overlapping region wide poor of overlapping focus, with the abscissa of overlapping focus change to the wide of the abscissa of initial focus and initial focus and, with the rectangular area of the overlapping focus after upgrading as focus area.
4. each described method in 3 according to claim 1 is characterized in that, described according to the Focal Point Shift instruction according to the focus area moving focal point, comprising:
If described Focal Point Shift instruction indication Focal Point Shift direction makes progress, and the top of initial focus does not have other focus area in current visible page, then according to each focus of coordinate Calculation of each focus of aliging with described initial focus and the distance of described initial focus, determine that the initial focus of distance focus farthest is goal-focus, focus is moved to the focus area of goal-focus from the focus area of initial focus;
If described Focal Point Shift instruction indication Focal Point Shift direction is downward, and the below of initial focus does not have other focus area in current visible page, then according to each focus of coordinate Calculation of each focus of aliging with described initial focus and the distance of described initial focus, determine that the initial focus of distance focus farthest is goal-focus, focus is moved to the focus area of goal-focus from the focus area of initial focus;
If described Focal Point Shift instruction indication Focal Point Shift direction is left, and the left of initial focus does not have other focus area in current visible page, then according to each focus of coordinate Calculation of each focus of aliging with described initial focus and the distance of described initial focus, determine that the initial focus of distance focus farthest is goal-focus, focus is moved to the focus area of goal-focus from the focus area of initial focus;
If described Focal Point Shift instruction indication Focal Point Shift direction is to the right, and the right-hand focus area that in current visible page, does not have other of initial focus, then according to each focus of coordinate Calculation of each focus of aliging with described initial focus and the distance of described initial focus, determine that the initial focus of distance focus farthest is goal-focus, focus is moved to the focus area of goal-focus from the focus area of initial focus.
5. method according to claim 4 is characterized in that,
Described goal-focus and initial focus complete matching or section aligned.
6. the mobile device of focus in the digital television browser is characterized in that, comprising:
Acquiring unit when being used for receiving the Focal Point Shift instruction, obtains all focuses in the current visible page in the digital television browser;
Determining unit is used for determining the shared rectangular area of each focus;
Judging unit is used for determining according to described Focal Point Shift instruction whether described rectangular area is overlapping to some extent;
Cutting unit, be used for when judging unit determines that described rectangular area is overlapping to some extent, according to described Focal Point Shift instruction overlapping rectangular area is cut apart, rectangular area after will cutting apart is as focus area, determine that at judging unit described rectangular area does not have will not have overlapping rectangular area as focus area when overlapping;
Mobile unit is used for according to the Focal Point Shift instruction according to the focus area moving focal point.
7. the mobile device of focus in the digital television browser according to claim 6 is characterized in that, described determining unit comprises that focus determines that subelement, pixel are obtained subelement and subelement is determined in the zone;
Focus is determined subelement, is used for determining current need focus to be processed in described all focuses;
Pixel is obtained subelement, and for the coordinate figure of the pixel on the profile that obtains described current need focus to be processed, described coordinate figure comprises transverse axis coordinate figure and ordinate of orthogonal axes value;
Subelement is determined in the zone, with wide as the rectangular area of the difference of maximum transverse axis coordinate figure and minimum transverse axis coordinate figure, with the difference of maximum ordinate of orthogonal axes value and the minimum ordinate of orthogonal axes value height as the rectangular area, determine the shared rectangular area of described current need focus to be processed.
8. the mobile device of focus in the digital television browser according to claim 6, it is characterized in that, described cutting unit comprises that obtaining subelement, computation subunit, first processes subelement, second and process subelement, the 3rd and process subelement and the and manage subelement everywhere;
Obtain subelement, be used for obtaining the height and width of the shared rectangular area of the height and width of the shared rectangular area of the coordinate of the coordinate of initial focus, overlapping focus, initial focus and overlapping focus, described overlapping focus is the focus overlapping with initial focus;
Computation subunit is used for calculating the height and width of overlapping region;
First processes subelement, be used for making progress in described Focal Point Shift instruction indication Focal Point Shift direction, and when overlapping focus comprises initial focus, with the high of the ordinate of overlapping focus and overlapping focus and, subtract again the ordinate of initial focus, the first numerical value that obtains is the first numerical value with the Gao Gengxin of overlapping region; The ordinate of determining overlapping focus is during less than the ordinate of initial focus, is the high poor of the height of overlapping focus and overlapping region with the Gao Gengxin of overlapping focus, with the rectangular area of the overlapping focus after upgrading as focus area;
Second processes subelement, it is downward being used in described Focal Point Shift instruction indication Focal Point Shift direction, and when overlapping focus comprises initial focus, with the high of the ordinate of initial focus and initial focus and, loss of weight is folded the ordinate of focus again, the second value that obtains is second value with the Gao Gengxin of overlapping region; Determine the high of the ordinate of overlapping focus and overlapping focus and greater than the high of the ordinate of initial focus and initial focus and the time, be the high poor of the height of overlapping focus and overlapping region with the Gao Gengxin of overlapping focus, and with the ordinate of overlapping focus be updated to the high of the ordinate of overlapping focus and overlapping region and, with the rectangular area of the overlapping focus after upgrading as focus area;
The 3rd processes subelement, being used in described Focal Point Shift instruction indication Focal Point Shift direction is left, and when overlapping focus comprises initial focus, with the wide of the abscissa of overlapping focus and overlapping focus and, subtract again the abscissa of initial focus, the third value that obtains is with the wide third value that is updated to of overlapping region; The abscissa of determining overlapping focus is during less than the abscissa of initial focus, overlapping focus wide is updated to wide and overlapping region wide poor of overlapping focus, with the rectangular area of the overlapping focus after upgrading as focus area;
Manages subelement everywhere, being used in described Focal Point Shift instruction indication Focal Point Shift direction is to the right, and when overlapping focus comprises initial focus, with the wide of the abscissa of initial focus and initial focus and, loss of weight is folded the abscissa of focus again, the 4th numerical value that obtains is with wide the 4th numerical value that is updated to of overlapping region; Determine the wide of the abscissa of overlapping focus and overlapping focus and greater than the wide of the abscissa of initial focus and initial focus and the time, overlapping focus wide is updated to wide and overlapping region wide poor of overlapping focus, with the abscissa of overlapping focus change to the wide of the abscissa of initial focus and initial focus and, with the rectangular area of the overlapping focus after upgrading as focus area.
9. the mobile device of focus to 8 each described digital television browsers according to claim 6 is characterized in that, described mobile unit comprises the first mover unit, the second mover unit, the 3rd mover unit and the 4th mover unit;
The first mover unit, be used for making progress in described Focal Point Shift instruction indication Focal Point Shift direction, and when the top of initial focus does not have other focus area in current visible page, according to each focus of coordinate Calculation of each focus of aliging with described initial focus and the distance of described initial focus, determine that the initial focus of distance focus farthest is goal-focus, focus is moved to the focus area of goal-focus from the focus area of initial focus;
The second mover unit, it is downward being used in described Focal Point Shift instruction indication Focal Point Shift direction, and when the below of initial focus does not have other focus area in current visible page, according to each focus of coordinate Calculation of each focus of aliging with described initial focus and the distance of described initial focus, determine that the initial focus of distance focus farthest is goal-focus, focus is moved to the focus area of goal-focus from the focus area of initial focus;
The 3rd mover unit, being used in described Focal Point Shift instruction indication Focal Point Shift direction is left, and when the left of initial focus does not have other focus area in current visible page, according to each focus of coordinate Calculation of each focus of aliging with described initial focus and the distance of described initial focus, determine that the initial focus of distance focus farthest is goal-focus, focus is moved to the focus area of goal-focus from the focus area of initial focus;
The 4th mover unit, being used in described Focal Point Shift instruction indication Focal Point Shift direction is to the right, and when initial focus right-hand do not have other focus area in current visible page, according to each focus of coordinate Calculation of each focus of aliging with described initial focus and the distance of described initial focus, determine that the initial focus of distance focus farthest is goal-focus, focus is moved to the focus area of goal-focus from the focus area of initial focus.
10. a Digital Television is characterized in that, comprises in the claim 6 to 9 mobile device of focus in each described digital television browser.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210311638.8A CN102905194B (en) | 2012-08-29 | 2012-08-29 | Method and device for moving focal points in digital television browser, and digital television |
HK13106526.5A HK1179088A1 (en) | 2012-08-29 | 2013-06-04 | Method, device and digital television for moving a focus in a digital television browser |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210311638.8A CN102905194B (en) | 2012-08-29 | 2012-08-29 | Method and device for moving focal points in digital television browser, and digital television |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102905194A true CN102905194A (en) | 2013-01-30 |
CN102905194B CN102905194B (en) | 2014-11-19 |
Family
ID=47577199
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210311638.8A Active CN102905194B (en) | 2012-08-29 | 2012-08-29 | Method and device for moving focal points in digital television browser, and digital television |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN102905194B (en) |
HK (1) | HK1179088A1 (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105739938A (en) * | 2016-03-04 | 2016-07-06 | 深圳市茁壮网络股份有限公司 | Focus picture displaying method and device |
CN106454475A (en) * | 2015-08-05 | 2017-02-22 | 博雅网络游戏开发(深圳)有限公司 | Method and device for moving target interaction element |
CN107273072A (en) * | 2016-04-07 | 2017-10-20 | 阿里巴巴集团控股有限公司 | Image display method, device and electronic equipment |
CN107835450A (en) * | 2017-10-26 | 2018-03-23 | 深圳市雷鸟信息科技有限公司 | Focus display method, display device, and computer-readable storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1461433A (en) * | 2000-09-18 | 2003-12-10 | 国际商业机器公司 | Method, system and computer program for managing views at computer display |
CN1760841A (en) * | 2004-10-15 | 2006-04-19 | 微软公司 | System and method for making user interface elements visible |
US20070130525A1 (en) * | 2005-12-07 | 2007-06-07 | 3Dlabs Inc., Ltd. | Methods for manipulating web pages |
CN101059756A (en) * | 2007-05-16 | 2007-10-24 | 珠海金山软件股份有限公司 | Device and method for user operating sheltered area |
US20120159318A1 (en) * | 2010-12-15 | 2012-06-21 | Microsoft Corporation | Full screen view reading and editing user interface |
-
2012
- 2012-08-29 CN CN201210311638.8A patent/CN102905194B/en active Active
-
2013
- 2013-06-04 HK HK13106526.5A patent/HK1179088A1/en unknown
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1461433A (en) * | 2000-09-18 | 2003-12-10 | 国际商业机器公司 | Method, system and computer program for managing views at computer display |
CN1760841A (en) * | 2004-10-15 | 2006-04-19 | 微软公司 | System and method for making user interface elements visible |
US20070130525A1 (en) * | 2005-12-07 | 2007-06-07 | 3Dlabs Inc., Ltd. | Methods for manipulating web pages |
CN101059756A (en) * | 2007-05-16 | 2007-10-24 | 珠海金山软件股份有限公司 | Device and method for user operating sheltered area |
US20120159318A1 (en) * | 2010-12-15 | 2012-06-21 | Microsoft Corporation | Full screen view reading and editing user interface |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106454475A (en) * | 2015-08-05 | 2017-02-22 | 博雅网络游戏开发(深圳)有限公司 | Method and device for moving target interaction element |
CN105739938A (en) * | 2016-03-04 | 2016-07-06 | 深圳市茁壮网络股份有限公司 | Focus picture displaying method and device |
CN105739938B (en) * | 2016-03-04 | 2018-07-24 | 深圳市茁壮网络股份有限公司 | A kind of focus image display method and device |
CN107273072A (en) * | 2016-04-07 | 2017-10-20 | 阿里巴巴集团控股有限公司 | Image display method, device and electronic equipment |
CN107273072B (en) * | 2016-04-07 | 2020-09-04 | 阿里巴巴集团控股有限公司 | Picture display method and device and electronic equipment |
CN107835450A (en) * | 2017-10-26 | 2018-03-23 | 深圳市雷鸟信息科技有限公司 | Focus display method, display device, and computer-readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN102905194B (en) | 2014-11-19 |
HK1179088A1 (en) | 2013-09-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103051841B (en) | The control method of time of exposure and device | |
AU2013222958B2 (en) | Method and apparatus for object size adjustment on a screen | |
CN103546818B (en) | The focus control method of the list display interface of intelligent television and device | |
CN102637198B (en) | Realization method and device of webpage content display, browser and mobile terminal | |
US20150074573A1 (en) | Information display device, information display method and information display program | |
CN105843480A (en) | Desktop icon adjustment method and apparatus | |
CN102905194B (en) | Method and device for moving focal points in digital television browser, and digital television | |
CN106658139B (en) | Focus control method and device | |
US20190286310A1 (en) | Widget Area Adjustment Method and Apparatus | |
CN112099686A (en) | Icon display control method and device and electronic equipment | |
CN105812945A (en) | Information input method, device and smart terminal | |
KR20200142065A (en) | Global special effects conversion method, conversion device, terminal equipment and storage medium | |
CN104915053B (en) | The location determining method and device of a kind of interface control | |
CN105573485A (en) | Display content adjustment method and terminal | |
JP2014211720A (en) | Display apparatus and display control program | |
WO2016042834A1 (en) | Method for enlarging content in split screen, information processing device and control method and control program therefor | |
CN105630595A (en) | Information processing method and electronic equipment | |
CN105867800A (en) | Display region adjustment method and apparatus | |
US20140317549A1 (en) | Method for Controlling Touchscreen by Using Virtual Trackball | |
CN105094586A (en) | Display window adjustment method and electronic device | |
CN103236042A (en) | Self-adaptive picture processing method and device | |
CN113268687A (en) | Method and device for determining element rendering position and storage medium | |
CN106126057B (en) | Screen capture method and device and terminal equipment | |
CN102567524A (en) | Method and device for realizing three-dimensional rotation browsing | |
KR20140132938A (en) | Method for displaying web page and device thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
REG | Reference to a national code |
Ref country code: HK Ref legal event code: DE Ref document number: 1179088 Country of ref document: HK |
|
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
REG | Reference to a national code |
Ref country code: HK Ref legal event code: GR Ref document number: 1179088 Country of ref document: HK |