CN102905194B - 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 PDF

Info

Publication number
CN102905194B
CN102905194B CN201210311638.8A CN201210311638A CN102905194B CN 102905194 B CN102905194 B CN 102905194B CN 201210311638 A CN201210311638 A CN 201210311638A CN 102905194 B CN102905194 B CN 102905194B
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.)
Active
Application number
CN201210311638.8A
Other languages
Chinese (zh)
Other versions
CN102905194A (en
Inventor
徐佳宏
王国凡
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Ipanel TV Inc
Original Assignee
Shenzhen Ipanel TV Inc
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shenzhen Ipanel TV Inc filed Critical Shenzhen Ipanel TV Inc
Priority to CN201210311638.8A priority Critical patent/CN102905194B/en
Publication of CN102905194A publication Critical patent/CN102905194A/en
Priority to HK13106526.5A priority patent/HK1179088A1/en
Application granted granted Critical
Publication of CN102905194B publication Critical patent/CN102905194B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)

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

The moving method of focus, device and Digital Television in digital television browser
Technical field
The present invention relates to communication technical field, be specifically related to moving method, device and the terminal of focus in 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, user can browse HTML (HTML, the Hypertext Markup Language) page by digital television browser, and by the option on the page being selected to realize the operation to Digital Television.Wherein, user mainly can select the option on the page by two kinds of approach, and a kind of is by the button on digital television devices, and another kind is to pass through remote controller; User is often by the button on a digital television devices or often by the button on a remote controller, can regard user's input as, digital television devices, after receiving user's input, can be inputted and determines the position of current focus and operate accordingly according to user.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 to be positioned at the control of this position 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 html page, may there be a plurality of focuses, the layout of the plurality of focus 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 is while being overlapping, if focusing moves, system only can be identified in this overlapping focus, causes other overlapping focuses to be chosen to.
Summary of the invention
The embodiment of the present 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, and this overlapping focus can be chosen to.
A moving method for focus in digital television browser, comprising:
While receiving Focal Point Shift instruction, obtain all focuses in current visible page in digital television browser;
Determine the rectangular area that each focus is shared;
According to described Focal Point Shift instruction, determine that whether described rectangular area is overlapping to some extent;
If described rectangular area is overlapping to some extent, according to described Focal Point Shift instruction, overlapping rectangular area to be cut apart, the rectangular area after cutting apart is as focus area;
If it is overlapping that described rectangular area does not have, will there is no overlapping rectangular area as focus area;
According to Focal Point Shift instruction according to 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; The coordinate figure that obtains 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; Using wide as rectangular area of the difference of maximum transverse axis coordinate figure and minimum transverse axis coordinate figure, using the difference of maximum ordinate of orthogonal axes value and minimum ordinate of orthogonal axes value as the height of 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 cutting apart, as focus area, specifically can comprise:
Obtain the coordinate of initial focus, the height and width of the rectangular area that the height and width of the rectangular area that the coordinate of overlapping focus, initial focus are shared and overlapping focus are shared, 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, by the high of the ordinate of overlapping focus and overlapping focus and, then subtract the ordinate of initial focus, the first numerical value obtaining is the first numerical value by the Gao Gengxin of overlapping region; When the ordinate of determining overlapping focus is less than the ordinate of initial focus, the height that is overlapping focus by the Gao Gengxin of overlapping focus and overlapping region high poor, the rectangular area of the overlapping focus after upgrading is as focus area;
If described Focal Point Shift instruction indication Focal Point Shift direction is downward, and overlapping focus comprises initial focus, by the high of the ordinate of initial focus and initial focus and, then the ordinate of the folded focus of loss of weight, the second value obtaining is second value by the Gao Gengxin of overlapping region; Determine the high of the ordinate high and that be greater than initial focus of the ordinate of overlapping focus and overlapping focus and initial focus and time, the height that is overlapping focus by the Gao Gengxin of overlapping focus and overlapping region high poor, and by the ordinate of overlapping focus be updated to the high of the ordinate of overlapping focus and overlapping region and, the rectangular area of the overlapping focus after upgrading is as focus area;
If described Focal Point Shift instruction indication Focal Point Shift direction is left, and overlapping focus comprises initial focus, by the wide of the abscissa of overlapping focus and overlapping focus and, then subtract the abscissa of initial focus, the third value obtaining, by the wide third value that is updated to of overlapping region; When the abscissa of determining overlapping focus is less than the abscissa of initial focus, overlapping focus wide is updated to wide and overlapping region wide poor of overlapping focus, the rectangular area of the overlapping focus after upgrading is as focus area;
If described Focal Point Shift instruction indication Focal Point Shift direction is to the right, and overlapping focus comprises initial focus, by the wide of the abscissa of initial focus and initial focus and, then the abscissa of the folded focus of loss of weight, the 4th numerical value obtaining, by wide the 4th numerical value that is updated to of overlapping region; Determine the wide of the abscissa wide and that be greater than initial focus of the abscissa of overlapping focus and overlapping focus and initial focus and time, overlapping focus wide is updated to wide and overlapping region wide poor of overlapping focus, by the abscissa of overlapping focus change to the wide of the abscissa of initial focus and initial focus and, the rectangular area of the overlapping focus after upgrading is as focus area.
Optionally, wherein, described according to Focal Point Shift instruction according to 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, according to the coordinate of each focus of aliging with described initial focus, calculate the distance of each focus and described initial focus, determine that the initial focus of distance focus is farthest 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, according to the coordinate of each focus of aliging with described initial focus, calculate the distance of each focus and described initial focus, determine that the initial focus of distance focus is farthest 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, according to the coordinate of each focus of aliging with described initial focus, calculate the distance of each focus and described initial focus, determine that the initial focus of distance focus is farthest 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 initial focus right-hand do not have other focus area in current visible page, according to the coordinate of each focus of aliging with described initial focus, calculate the distance of each focus and described initial focus, determine that the initial focus of distance focus is farthest 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 present 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 receiving Focal Point Shift instruction, obtains all focuses in current visible page in digital television browser;
Determining unit, for determining the shared rectangular area of each focus;
Judging unit, for determining that according to described Focal Point Shift instruction whether described rectangular area is overlapping to some extent;
Cutting unit, 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 cutting apart is as focus area, at judging unit, determine that described rectangular area does not have when overlapping, will there is no overlapping rectangular area as focus area;
Mobile unit, for according to Focal Point Shift instruction according to 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 region;
Focus is determined subelement, for determining current need focus to be processed in described all focuses;
Pixel is obtained subelement, and for obtaining 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;
Subelement is determined in region, using wide as rectangular area of the difference of maximum transverse axis coordinate figure and minimum transverse axis coordinate figure, using the difference of maximum ordinate of orthogonal axes value and minimum ordinate of orthogonal axes value as the height of 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 4th and process subelement;
Obtain subelement, for obtaining the coordinate of initial focus,, the height and width of the shared rectangular area of the height and width of the shared rectangular area of the coordinate of overlapping focus, initial focus and overlapping focus, described overlapping focus is the focus overlapping with initial focus;
Computation subunit, for calculating the height and width of overlapping region;
First processes subelement, for making progress in described Focal Point Shift instruction indication Focal Point Shift direction, and when overlapping focus comprises initial focus, by the high of the ordinate of overlapping focus and overlapping focus and, subtract again the ordinate of initial focus, the first numerical value obtaining is the first numerical value by the Gao Gengxin of overlapping region; When the ordinate of determining overlapping focus is less than the ordinate of initial focus, the height that is overlapping focus by the Gao Gengxin of overlapping focus and overlapping region high poor, the rectangular area of the overlapping focus after upgrading is as focus area;
Second processes subelement, for indicating Focal Point Shift direction in described Focal Point Shift instruction, be downward, and when overlapping focus comprises initial focus, by 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 obtaining is second value by the Gao Gengxin of overlapping region; Determine the high of the ordinate high and that be greater than initial focus of the ordinate of overlapping focus and overlapping focus and initial focus and time, the height that is overlapping focus by the Gao Gengxin of overlapping focus and overlapping region high poor, and by the ordinate of overlapping focus be updated to the high of the ordinate of overlapping focus and overlapping region and, the rectangular area of the overlapping focus after upgrading is as focus area;
The 3rd processes subelement, for indicating Focal Point Shift direction in described Focal Point Shift instruction, be left, and when overlapping focus comprises initial focus, by the wide of the abscissa of overlapping focus and overlapping focus and, subtract again the abscissa of initial focus, the third value obtaining, by the wide third value that is updated to of overlapping region; When the abscissa of determining overlapping focus is less than the abscissa of initial focus, overlapping focus wide is updated to wide and overlapping region wide poor of overlapping focus, the rectangular area of the overlapping focus after upgrading is as focus area;
The 4th processes subelement, for indicating Focal Point Shift direction in described Focal Point Shift instruction, be to the right, and when overlapping focus comprises initial focus, by 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 obtaining, by wide the 4th numerical value that is updated to of overlapping region; Determine the wide of the abscissa wide and that be greater than initial focus of the abscissa of overlapping focus and overlapping focus and initial focus and time, overlapping focus wide is updated to wide and overlapping region wide poor of overlapping focus, by the abscissa of overlapping focus change to the wide of the abscissa of initial focus and initial focus and, the rectangular area of the overlapping focus after upgrading is 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, 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 the coordinate of each focus of aliging with described initial focus, calculate the distance of each focus and described initial focus, determine that the initial focus of distance focus is farthest goal-focus, focus is moved to the focus area of goal-focus from the focus area of initial focus;
The second mover unit, for indicating Focal Point Shift direction in described Focal Point Shift instruction, be downward, and when the below of initial focus does not have other focus area in current visible page, according to the coordinate of each focus of aliging with described initial focus, calculate the distance of each focus and described initial focus, determine that the initial focus of distance focus is farthest goal-focus, focus is moved to the focus area of goal-focus from the focus area of initial focus;
The 3rd mover unit, for indicating Focal Point Shift direction in described Focal Point Shift instruction, be left, and when the left of initial focus does not have other focus area in current visible page, according to the coordinate of each focus of aliging with described initial focus, calculate the distance of each focus and described initial focus, determine that the initial focus of distance focus is farthest goal-focus, focus is moved to the focus area of goal-focus from the focus area of initial focus;
The 4th mover unit, for indicating Focal Point Shift direction in described Focal Point Shift instruction, be to the right, and when initial focus right-hand do not have other focus area in current visible page, according to the coordinate of each focus of aliging with described initial focus, calculate the distance of each focus and described initial focus, determine that the initial focus of distance focus is farthest 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 present 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 present invention provides.
The embodiment of the present invention is after receiving Focal Point Shift instruction, if determine that the shared rectangular area of focus is overlapping to some extent, overlapping rectangular area is cut apart, and the rectangular area after cutting apart is as focus area, 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, overlapping focus can be chosen to, improve accuracy and the flexibility of Focal Point Shift.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing of required use during embodiment is described is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those skilled in the art, do not paying under the prerequisite of 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 present invention;
Fig. 2 is the schematic diagram of current visible page in the embodiment of the present 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 present invention;
Fig. 5 b is the schematic diagram of focus section alignment in the embodiment of the present invention;
Fig. 5 c is the schematic diagram that in the embodiment of the present invention, focus does not line up;
Fig. 6 is another flow chart of the moving method of focus in the digital television browser that provides of the embodiment of the present invention;
Fig. 7 a is the scene schematic diagram of focus in the current visible page that provides of the embodiment of the present 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 present 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 present 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 present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those skilled in the art, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the present invention provides moving method, device and the Digital Television of focus in a kind of digital television browser.Below be elaborated respectively.
Embodiment mono-,
The present embodiment is described the angle of the mobile device of focus from digital television browser, and in this digital television browser, the mobile device of focus specifically can be integrated in Digital Television.
A moving method for focus in digital television browser, comprising: while receiving Focal Point Shift instruction, obtain all focuses in current visible page in digital television browser; Determine the rectangular area that each focus is shared; According to this Focal Point Shift instruction, determine that whether described rectangular area is overlapping to some extent; If this rectangular area is overlapping to some extent, according to this Focal Point Shift instruction, overlapping rectangular area to be cut apart, the rectangular area after cutting apart is as focus area; If it is overlapping that this rectangular area does not have, will there is no overlapping rectangular area as focus area; According to Focal Point Shift instruction according to focus area moving focal point.
As shown in Figure 1, idiographic flow can be as follows:
While 101, receiving Focal Point Shift instruction, obtain all focuses in current visible page in 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 in remote controller or Digital Television by user, and concrete triggering mode can, referring to prior art, not repeat them here.
In addition, as shown in Figure 2, the current page being presented in digital television browser that in digital television browser, current visible page refers to is (likely large than screen because of actual pages, so screen cannot all show actual pages), such as, focus A and B are located in current visible page, and focus C is not positioned at current visible page.This current visible page can determine by the following methods:
First, need to determine the size of screen, wherein, the size of screen is set in advance by user, such as 1280x720 pixel, etc.Secondly, if screen has rolling, how many pixels of having determined screen scroll, obtain the absolute coordinate of screen area, and then relatively 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,, meet 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:
First, in all focuses, determine current need focus to be processed, secondly, the coordinate figure that obtains 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, using wide as rectangular area of the difference of maximum transverse axis coordinate figure and minimum transverse axis coordinate figure, using the difference of maximum ordinate of orthogonal axes value and minimum ordinate of orthogonal axes value as the height of 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 " another predetermined value greatly, this another predetermined value also can arrange according to the demand of practical application, etc.
103, whether overlapping to some extent according to rectangular area definite in the Focal Point Shift instruction determining step 102 receiving in step 101, if so, perform step 104, if not, perform step 105.
Wherein, determine that the whether overlapping to some extent method in rectangular area specifically can, referring to prior art, not repeat them here.
If when in 104 steps 102, definite rectangular area is overlapping to some extent, overlapping rectangular area is cut apart according to the Focal Point Shift instruction receiving in step 101, the rectangular area after cutting apart is as focus area; For example, specifically can be as follows:
First, obtain the coordinate of initial focus, the height and width of the rectangular area that the height and width of the rectangular area that the coordinate of overlapping focus, initial focus are shared and overlapping focus are shared, and calculate the height and width of overlapping region; Wherein, the overlapping focus described in the embodiment of the present 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, by the high of the ordinate of overlapping focus and overlapping focus and, then subtract the ordinate of initial focus, the first numerical value obtaining is the first numerical value by the Gao Gengxin of overlapping region; When the ordinate of determining overlapping focus is less than the ordinate of initial focus, the height that is overlapping focus by the Gao Gengxin of overlapping focus and overlapping region high poor, the rectangular area of the overlapping focus after upgrading is 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, specifically can be as follows:
If Focal Point Shift instruction indication Focal Point Shift direction makes progress, and overlapping focus comprises initial focus, the high dy of overlapping region is updated to " y 1+ h 1-y 0"; If y 1<y 0, by 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, by the high of the ordinate of initial focus and initial focus and, then the ordinate of the folded focus of loss of weight, the second value obtaining is second value by the Gao Gengxin of overlapping region; Determine the high of the ordinate high and that be greater than initial focus of the ordinate of overlapping focus and overlapping focus and initial focus and time, the height that is overlapping focus by the Gao Gengxin of overlapping focus and overlapping region high poor, and by the ordinate of overlapping focus be updated to the high of the ordinate of overlapping focus and overlapping region and, the rectangular area of the overlapping focus after upgrading is 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 w respectively 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, a wide and high position for overlapping region is respectively dx and dy, specifically can be as follows:
If Focal Point Shift instruction indication Focal Point Shift direction is downward, and overlapping focus comprises initial focus, the high dy of overlapping region is updated to " y 0+ h 0-y 1"; If y 1+ h 1>y 0+ h 0, by the high h of overlapping focus 1be updated to " h 1-dy ", and by 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, by the wide of the abscissa of overlapping focus and overlapping focus and, then subtract the abscissa of initial focus, the third value obtaining, by the wide third value that is updated to of overlapping region; When the abscissa of determining overlapping focus is less than the abscissa of initial focus, overlapping focus wide is updated to wide and overlapping region wide poor of overlapping focus, the rectangular area of the overlapping focus after upgrading is 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 w respectively 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, a wide and high position for overlapping region is respectively dx and dy, specifically can be as follows:
If Focal Point Shift instruction indication Focal Point Shift direction is left, and overlapping focus comprises initial focus, the wide dx of overlapping region is updated to " x 1+ w 1-x 0"; If x 1<x 0, by 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, by the wide of the abscissa of initial focus and initial focus and, then the abscissa of the folded focus of loss of weight, the 4th numerical value obtaining, by wide the 4th numerical value that is updated to of overlapping region; Determine the wide of the abscissa wide and that be greater than initial focus of the abscissa of overlapping focus and overlapping focus and initial focus and time, overlapping focus wide is updated to wide and overlapping region wide poor of overlapping focus, by the abscissa of overlapping focus change to the wide of the abscissa of initial focus and initial focus and, the rectangular area of the overlapping focus after upgrading is 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 w respectively 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, a wide and high position for overlapping region is respectively dx and dy, 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, the wide dx of overlapping region is updated to " x 0+ w 0-x 1"; If x 1+ w 1>x 0+ w 0, by the wide w of overlapping focus 1be updated to w 1-dx, and by 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 and can carry out the region of Focal Point Shift (function is equivalent to focus, just focus may be an irregular region, and focus area is generally a regular region), be the position that cursor can be activated, if this focus area is selected, operation that can be to its corresponding control.
If definite rectangular area does not have overlappingly in 105 steps 102, will there is no overlapping rectangular area as focus area.
106, according to Focal Point Shift instruction according to 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, the Focal Point Shift that Fig. 3 a is horizontal direction (take is left example), the Focal Point Shift that Fig. 3 b is vertical direction (take is downwards example); In order to improve the flexibility of Focal Point Shift, user is operated more convenient, the movement of focus also can circulate, such as, referring to Fig. 4 a and Fig. 4 b, wherein, the Focal Point Shift that Fig. 4 a is horizontal direction, the Focal Point Shift that Fig. 4 b is 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, according to the coordinate of each focus of aliging with this initial focus, calculate the distance of each focus and this initial focus, determine that the initial focus of distance focus is farthest 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, according to the coordinate of each focus of aliging with this initial focus, calculate the distance of each focus and this initial focus, determine that the initial focus of distance focus is farthest 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, according to the coordinate of each focus of aliging with this initial focus, calculate the distance of each focus and this initial focus, determine that the initial focus of distance focus is farthest 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 initial focus right-hand do not have other focus area in current visible page, according to the coordinate of each focus of aliging with this initial focus, calculate the distance of each focus and this initial focus, determine that the initial focus of distance focus is farthest 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, or, 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, focus A and focus C are also section aligned, and in Fig. 5 c, focus A and focus B are for not lining up, and focus A and focus C do not line up yet, etc.
As from the foregoing, the present embodiment is after receiving Focal Point Shift instruction, if determine that the shared rectangular area of focus is overlapping to some extent, overlapping rectangular area is cut apart, and the rectangular area after cutting apart is as focus area, 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, overlapping focus can be chosen to, improve accuracy and the flexibility of Focal Point Shift.
Embodiment bis-,
According to the described method of embodiment mono-, below will be described in further detail for example.
In the present embodiment, by take the mobile device of focus in this digital television browser, specifically can be integrated in Digital Television as example describes.
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 being integrated in Digital Television) receives 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, by take the moving direction of this Focal Point Shift instruction indication focus, as " left " as example, describe.This Focal Point Shift instruction can be triggered by the button in remote controller or Digital Television by 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 being integrated in Digital Television) is obtained all focuses in current visible page in digital television browser.
For example, as shown in Figure 7a, in digital television browser, in current visible page, include four objects, be respectively clock, photograph, perfume and map, wherein, the irregular area that square frame comprises is by focus to be processed, for convenience, at this, clock is called to 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 being integrated in 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 being integrated in Digital Television) is overlapping to some extent according to rectangular area definite in the Focal Point Shift instruction determining step 203 receiving in step 201, if, perform step 205, if not, perform step 206.
From Fig. 7 b, the rectangular area of the rectangular area of focus A and focus B partly overlaps, and the rectangular area of focus D comprises the rectangular area of focus C completely, referring to the i.e. diagonal line hatches part in figure of the overlapping region 1 in figure and overlapping region 2().If focus A is initial focus, 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 focus D is the overlapping focus of focus C, and focus D comprises focus C completely.
For example, the Focal Point Shift direction of the Focal Point Shift instruction of take indication is " left ", and initial focus is that C is example, now, Digital Television determine the rectangular area of focus C and the rectangular area of focus D overlapping to some extent, therefore, directly perform step 205.
205, Digital Television (being specially the mobile device of focus in the digital television browser being integrated in Digital Television) is cut apart overlapping rectangular area according to the Focal Point Shift instruction receiving in step 201, and the rectangular area after cutting apart is as focus area.
For example, if the Focal Point Shift direction of Focal Point Shift instruction indication is " left ", and initial focus is C, and now, Digital Television can first be obtained 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 completely, and therefore, Digital Television calculating is updated to " y by the high dy of overlapping region 1+ h 1-y 0" further, if due to y 1<y 0, therefore, by the high h of overlapping focus 1be revised as " h 1-dy ".
After the coordinate that process is above-mentioned and high modification, there is variation in cutting apart between the rectangular area of focus C and the rectangular area of focus D, and 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, without cutting apart.
207, Digital Television according to Focal Point Shift instruction according to 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 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, after Focal Point Shift arrives the focus area of focus D, if after continuing to receive the Focal Point Shift instruction being 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.
Visible, loopy moving mode, for single-way moving mode, seems more flexible, is convenient to user's operation, is conducive to improve user and experiences.
It should be noted that, above moving direction of only take Focal Point Shift instruction indication focus describes as " left " as example, should be understood that, the direction of Focal Point Shift can also be other directions, and its implementation similarly, does not 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, after page open, browser can first be given 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 in the minimum value in focus location, navigate in first focus.
As from the foregoing, the present embodiment is after receiving Focal Point Shift instruction, if determine that the shared rectangular area of focus is overlapping to some extent, overlapping rectangular area is cut apart, and the rectangular area after cutting apart is as focus area, 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, overlapping focus can be chosen to, improve accuracy and the flexibility of Focal Point Shift; And, when carrying out Focal Point Shift, adopted the mode of loopy moving, while having avoided in prior art single-way moving, 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 user and experience.
Embodiment tri-,
In order to implement above method, the embodiment of the present invention also provides the mobile device of focus in a kind of digital television browser, as shown in Figure 8, in this digital television browser, the mobile device of focus can comprise acquiring unit 301, determining unit 302, judging unit 303, cutting unit 304 and mobile unit 305;
Acquiring unit 301, when receiving Focal Point Shift instruction, obtains all focuses in current visible page in 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 in remote controller or Digital Television by user, and concrete triggering mode can, referring to prior art, not repeat them here.
Determining unit 302, for determining the shared rectangular area of each focus;
Judging unit 303, for according to Focal Point Shift instruction determine that whether described rectangular area overlapping to some extent;
Wherein, determine that the whether overlapping to some extent method in rectangular area specifically can, referring to prior art, not repeat them here.
Cutting unit 304, for when judging unit 303 determines that rectangular area is overlapping to some extent, according to Focal Point Shift instruction, overlapping rectangular area is cut apart, rectangular area after cutting apart is as focus area, at judging unit 303, determine that rectangular area does not have when overlapping, will there is no overlapping rectangular area as focus area;
Mobile unit 305, for according to Focal Point Shift instruction according to focus area moving focal point.
Optionally, wherein, determining unit 302 can comprise that focus determines that subelement, pixel are obtained subelement and subelement is determined in region, as follows:
Focus is determined subelement, for determine current need focus to be processed in all focuses (being all focuses in the current visible page of digital television browser that gets of acquiring unit 301);
Pixel is obtained subelement, and for obtaining the coordinate figure of the pixel on the profile of 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 region, using wide as rectangular area of the difference of maximum transverse axis coordinate figure and minimum transverse axis coordinate figure, using the difference of maximum ordinate of orthogonal axes value and minimum ordinate of orthogonal axes value as the height of 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 4th and process subelement, as follows:
Obtain subelement, for obtaining the coordinate of initial focus, the height and width of the shared rectangular area of the height and width of the shared rectangular area of the coordinate of overlapping focus, initial focus and overlapping focus, wherein, the overlapping focus described in the embodiment of the present invention refers to the focus overlapping with initial focus;
Computation subunit, for calculating the height and width of overlapping region;
First processes subelement, for making progress in Focal Point Shift instruction indication Focal Point Shift direction, and when overlapping focus comprises initial focus, by the high of the ordinate of overlapping focus and overlapping focus and, subtract again the ordinate of initial focus, the first numerical value obtaining is the first numerical value by the Gao Gengxin of overlapping region; When the ordinate of determining overlapping focus is less than the ordinate of initial focus, the height that is overlapping focus by the Gao Gengxin of overlapping focus and overlapping region high poor, the rectangular area of the overlapping focus after upgrading is as focus area;
Second processes subelement, for indicating Focal Point Shift direction in described Focal Point Shift instruction, be downward, and when overlapping focus comprises initial focus, by 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 obtaining is second value by the Gao Gengxin of overlapping region; Determine the high of the ordinate high and that be greater than initial focus of the ordinate of overlapping focus and overlapping focus and initial focus and time, the height that is overlapping focus by the Gao Gengxin of overlapping focus and overlapping region high poor, and by the ordinate of overlapping focus be updated to the high of the ordinate of overlapping focus and overlapping region and, the rectangular area of the overlapping focus after upgrading is as focus area;
The 3rd processes subelement, for indicating Focal Point Shift direction in described Focal Point Shift instruction, be left, and when overlapping focus comprises initial focus, by the wide of the abscissa of overlapping focus and overlapping focus and, subtract again the abscissa of initial focus, the third value obtaining, by the wide third value that is updated to of overlapping region; When the abscissa of determining overlapping focus is less than the abscissa of initial focus, overlapping focus wide is updated to wide and overlapping region wide poor of overlapping focus, the rectangular area of the overlapping focus after upgrading is as focus area;
The 4th processes subelement, for indicating Focal Point Shift direction in described Focal Point Shift instruction, be to the right, and when overlapping focus comprises initial focus, by 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 obtaining, by wide the 4th numerical value that is updated to of overlapping region; Determine the wide of the abscissa wide and that be greater than initial focus of the abscissa of overlapping focus and overlapping focus and initial focus and time, overlapping focus wide is updated to wide and overlapping region wide poor of overlapping focus, by the abscissa of overlapping focus change to the wide of the abscissa of initial focus and initial focus and, the rectangular area of the overlapping focus after upgrading is 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, specifically can be as follows:
(1) if Focal Point Shift instruction indication Focal Point Shift direction makes progress, and overlapping focus comprises initial focus, the high dy of overlapping region is updated to " y 1+ h 1-y 0"; If y 1<y 0, by 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, the high dy of overlapping region is updated to " y 0+ h 0-y 1"; If y 1+ h 1>y 0+ h 0, by the high h of overlapping focus 1be updated to " h 1-dy ", and by 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, the wide dx of overlapping region is updated to " x 1+ w 1-x 0"; If x 1<x 0, by 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, the wide dx of overlapping region is updated to " x 0+ w 0-x 1"; If x 1+ w 1>x 0+ w 0, by the wide w of overlapping focus 1be updated to " w 1-dy ", and by 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, as follows:
The first mover unit, 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 the coordinate of each focus of aliging with described initial focus, calculate the distance of each focus and described initial focus, determine that the initial focus of distance focus is farthest goal-focus, focus is moved to the focus area of goal-focus from the focus area of initial focus;
The second mover unit, for indicating Focal Point Shift direction in Focal Point Shift instruction, be downward, and when the below of initial focus does not have other focus area in current visible page, according to the coordinate of each focus of aliging with described initial focus, calculate the distance of each focus and described initial focus, determine that the initial focus of distance focus is farthest goal-focus, focus is moved to the focus area of goal-focus from the focus area of initial focus;
The 3rd mover unit, for indicating Focal Point Shift direction in Focal Point Shift instruction, be left, and when the left of initial focus does not have other focus area in current visible page, according to the coordinate of each focus of aliging with described initial focus, calculate the distance of each focus and described initial focus, determine that the initial focus of distance focus is farthest goal-focus, focus is moved to the focus area of goal-focus from the focus area of initial focus;
The 4th mover unit, for indicating Focal Point Shift direction in Focal Point Shift instruction, be to the right, and when initial focus right-hand do not have other focus area in current visible page, according to the coordinate of each focus of aliging with described initial focus, calculate the distance of each focus and described initial focus, determine that the initial focus of distance focus is farthest 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, or, 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, focus A and focus C are also section aligned, and in Fig. 5 c, focus A and focus B are for not lining up, and focus A and focus C do not line up yet, etc.
In this digital television browser, the mobile device of focus specifically can be integrated in Digital Television.
During concrete enforcement, above unit can be used as independently entity and realizes, and also can carry out combination in any, as same or several entities, realizes, and the concrete enforcement of above unit, can, referring to embodiment of the method above, not repeat them here.
As from the foregoing, in the digital television browser of the present embodiment, the acquiring unit 301 of the mobile device of focus is after receiving Focal Point Shift instruction, can determine that whether the shared rectangular area of focus is overlapping to some extent by judging unit 303, if have overlapping, by 304 pairs of overlapping rectangular areas of cutting unit, cut apart, and the rectangular area after 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, overlapping focus can be chosen to, accuracy and the flexibility of Focal Point Shift have been improved, and, when carrying out Focal Point Shift, adopted the mode of loopy moving, while having avoided in prior art single-way moving, 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 user and experience.
Embodiment tetra-,
Accordingly, the embodiment of the present invention also provides a kind of Digital Television, comprises the mobile device of focus in any digital television browser that the embodiment of the present invention provides, wherein, in this digital television browser, the mobile device of focus specifically can, referring to embodiment tri-, not repeat them here.For example, can be as follows:
The mobile device of focus in digital television browser, when receiving Focal Point Shift instruction, obtains all focuses in current visible page in digital television browser; Determine the rectangular area that each focus is shared, according to described Focal Point Shift instruction, determine that whether these rectangular areas are overlapping to some extent; If these rectangular areas are overlapping to some extent, according to Focal Point Shift instruction, overlapping rectangular area to be cut apart, the rectangular area after cutting apart is as focus area; If it is overlapping that these rectangular areas do not have, will there is no overlapping rectangular area as focus area; According to Focal Point Shift instruction according to 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 present invention provides equally, and the embodiment referring to above, 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 hardware that instruction is relevant to complete by program, this program can be stored in a 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.
In a kind of the digital television browser above embodiment of the present invention being provided, moving method, device and the Digital Television of focus are described in detail, applied specific case herein principle of the present invention and execution mode are set forth, the explanation of above embodiment is just for helping to understand method of the present invention and core concept thereof; , 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 meanwhile.

Claims (8)

1. a moving method for focus in digital television browser, is characterized in that, comprising:
While receiving Focal Point Shift instruction, obtain all focuses in current visible page in digital television browser;
Determine the rectangular area that each focus is shared;
According to described Focal Point Shift instruction, determine that whether described rectangular area is overlapping to some extent;
If described rectangular area is overlapping to some extent, according to described Focal Point Shift instruction, overlapping rectangular area to be cut apart, the rectangular area after cutting apart is as focus area;
If it is overlapping that described rectangular area does not have, will there is no overlapping rectangular area as focus area;
According to Focal Point Shift instruction according to focus area moving focal point;
Describedly according to described Focal Point Shift instruction, overlapping rectangular area is cut apart, the rectangular area after cutting apart further comprises as focus area step:
Obtain the coordinate of initial focus, the height and width of the rectangular area that the height and width of the rectangular area that the coordinate of overlapping focus, initial focus are shared and overlapping focus are shared, 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, by the high of the ordinate of overlapping focus and overlapping focus and, then subtract the ordinate of initial focus, the first numerical value obtaining is the first numerical value by the Gao Gengxin of overlapping region; When the ordinate of determining overlapping focus is less than the ordinate of initial focus, the height that is overlapping focus by the Gao Gengxin of overlapping focus and overlapping region high poor, the rectangular area of the overlapping focus after upgrading is as focus area;
If described Focal Point Shift instruction indication Focal Point Shift direction is downward, and overlapping focus comprises initial focus, by the high of the ordinate of initial focus and initial focus and, then the ordinate of the folded focus of loss of weight, the second value obtaining is second value by the Gao Gengxin of overlapping region; Determine the high of the ordinate high and that be greater than initial focus of the ordinate of overlapping focus and overlapping focus and initial focus and time, the height that is overlapping focus by the Gao Gengxin of overlapping focus and overlapping region high poor, and by the ordinate of overlapping focus be updated to the high of the ordinate of overlapping focus and overlapping region and, the rectangular area of the overlapping focus after upgrading is as focus area;
If described Focal Point Shift instruction indication Focal Point Shift direction is left, and overlapping focus comprises initial focus, by the wide of the abscissa of overlapping focus and overlapping focus and, then subtract the abscissa of initial focus, the third value obtaining, by the wide third value that is updated to of overlapping region; When the abscissa of determining overlapping focus is less than the abscissa of initial focus, overlapping focus wide is updated to wide and overlapping region wide poor of overlapping focus, the rectangular area of the overlapping focus after upgrading is as focus area;
If described Focal Point Shift instruction indication Focal Point Shift direction is to the right, and overlapping focus comprises initial focus, by the wide of the abscissa of initial focus and initial focus and, then the abscissa of the folded focus of loss of weight, the 4th numerical value obtaining, by wide the 4th numerical value that is updated to of overlapping region; Determine the wide of the abscissa wide and that be greater than initial focus of the abscissa of overlapping focus and overlapping focus and initial focus and time, overlapping focus wide is updated to wide and overlapping region wide poor of overlapping focus, by the abscissa of overlapping focus change to the wide of the abscissa of initial focus and initial focus and, the rectangular area of the overlapping focus after upgrading is as focus area.
2. method according to claim 1, is characterized in that, the shared rectangular area of described definite each focus, comprising:
In described all focuses, determine current need focus to be processed;
The coordinate figure that obtains 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;
Using wide as rectangular area of the difference of maximum transverse axis coordinate figure and minimum transverse axis coordinate figure, using the difference of maximum ordinate of orthogonal axes value and minimum ordinate of orthogonal axes value as the height of rectangular area, determine the shared rectangular area of described current need focus to be processed.
3. method according to claim 1 and 2, is characterized in that, described according to Focal Point Shift instruction according to 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, according to the coordinate of each focus of aliging with described initial focus, calculate the distance of each focus and described initial focus, determine that the initial focus of distance focus is farthest 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, according to the coordinate of each focus of aliging with described initial focus, calculate the distance of each focus and described initial focus, determine that the initial focus of distance focus is farthest 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, according to the coordinate of each focus of aliging with described initial focus, calculate the distance of each focus and described initial focus, determine that the initial focus of distance focus is farthest 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 initial focus right-hand do not have other focus area in current visible page, according to the coordinate of each focus of aliging with described initial focus, calculate the distance of each focus and described initial focus, determine that the initial focus of distance focus is farthest goal-focus, focus is moved to the focus area of goal-focus from the focus area of initial focus.
4. method according to claim 3, is characterized in that,
Described goal-focus and initial focus complete matching or section aligned.
5. a mobile device for focus in digital television browser, is characterized in that, comprising:
Acquiring unit, when receiving Focal Point Shift instruction, obtains all focuses in current visible page in digital television browser;
Determining unit, for determining the shared rectangular area of each focus;
Judging unit, for determining that according to described Focal Point Shift instruction whether described rectangular area is overlapping to some extent;
Cutting unit, 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 cutting apart is as focus area, at judging unit, determine that described rectangular area does not have when overlapping, will there is no overlapping rectangular area as focus area;
Mobile unit, for according to Focal Point Shift instruction according to focus area moving focal point;
Described cutting unit further comprises:
Described cutting unit comprises that obtaining subelement, computation subunit, first processes subelement, second and process subelement, the 3rd and process subelement and the 4th and process subelement;
Obtain subelement, for obtaining the coordinate of initial focus,, the height and width of the shared rectangular area of the height and width of the shared rectangular area of the coordinate of overlapping focus, initial focus and overlapping focus, described overlapping focus is the focus overlapping with initial focus;
Computation subunit, for calculating the height and width of overlapping region;
First processes subelement, for making progress in described Focal Point Shift instruction indication Focal Point Shift direction, and when overlapping focus comprises initial focus, by the high of the ordinate of overlapping focus and overlapping focus and, subtract again the ordinate of initial focus, the first numerical value obtaining is the first numerical value by the Gao Gengxin of overlapping region; When the ordinate of determining overlapping focus is less than the ordinate of initial focus, the height that is overlapping focus by the Gao Gengxin of overlapping focus and overlapping region high poor, the rectangular area of the overlapping focus after upgrading is as focus area;
Second processes subelement, for indicating Focal Point Shift direction in described Focal Point Shift instruction, be downward, and when overlapping focus comprises initial focus, by 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 obtaining is second value by the Gao Gengxin of overlapping region; Determine the high of the ordinate high and that be greater than initial focus of the ordinate of overlapping focus and overlapping focus and initial focus and time, the height that is overlapping focus by the Gao Gengxin of overlapping focus and overlapping region high poor, and by the ordinate of overlapping focus be updated to the high of the ordinate of overlapping focus and overlapping region and, the rectangular area of the overlapping focus after upgrading is as focus area;
The 3rd processes subelement, for indicating Focal Point Shift direction in described Focal Point Shift instruction, be left, and when overlapping focus comprises initial focus, by the wide of the abscissa of overlapping focus and overlapping focus and, subtract again the abscissa of initial focus, the third value obtaining, by the wide third value that is updated to of overlapping region; When the abscissa of determining overlapping focus is less than the abscissa of initial focus, overlapping focus wide is updated to wide and overlapping region wide poor of overlapping focus, the rectangular area of the overlapping focus after upgrading is as focus area;
The 4th processes subelement, for indicating Focal Point Shift direction in described Focal Point Shift instruction, be to the right, and when overlapping focus comprises initial focus, by 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 obtaining, by wide the 4th numerical value that is updated to of overlapping region; Determine the wide of the abscissa wide and that be greater than initial focus of the abscissa of overlapping focus and overlapping focus and initial focus and time, overlapping focus wide is updated to wide and overlapping region wide poor of overlapping focus, by the abscissa of overlapping focus change to the wide of the abscissa of initial focus and initial focus and, the rectangular area of the overlapping focus after upgrading is as focus area.
6. the mobile device of focus in digital television browser according to claim 5, is characterized in that, described determining unit comprises that focus determines that subelement, pixel are obtained subelement and subelement is determined in region;
Focus is determined subelement, for determining current need focus to be processed in described all focuses;
Pixel is obtained subelement, and for obtaining 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;
Subelement is determined in region, using wide as rectangular area of the difference of maximum transverse axis coordinate figure and minimum transverse axis coordinate figure, using the difference of maximum ordinate of orthogonal axes value and minimum ordinate of orthogonal axes value as the height of rectangular area, determine the shared rectangular area of described current need focus to be processed.
7. according to the mobile device of focus in the digital television browser described in claim 5 or 6, it 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, 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 the coordinate of each focus of aliging with described initial focus, calculate the distance of each focus and described initial focus, determine that the initial focus of distance focus is farthest goal-focus, focus is moved to the focus area of goal-focus from the focus area of initial focus;
The second mover unit, for indicating Focal Point Shift direction in described Focal Point Shift instruction, be downward, and when the below of initial focus does not have other focus area in current visible page, according to the coordinate of each focus of aliging with described initial focus, calculate the distance of each focus and described initial focus, determine that the initial focus of distance focus is farthest goal-focus, focus is moved to the focus area of goal-focus from the focus area of initial focus;
The 3rd mover unit, for indicating Focal Point Shift direction in described Focal Point Shift instruction, be left, and when the left of initial focus does not have other focus area in current visible page, according to the coordinate of each focus of aliging with described initial focus, calculate the distance of each focus and described initial focus, determine that the initial focus of distance focus is farthest goal-focus, focus is moved to the focus area of goal-focus from the focus area of initial focus;
The 4th mover unit, for indicating Focal Point Shift direction in described Focal Point Shift instruction, be to the right, and when initial focus right-hand do not have other focus area in current visible page, according to the coordinate of each focus of aliging with described initial focus, calculate the distance of each focus and described initial focus, determine that the initial focus of distance focus is farthest goal-focus, focus is moved to the focus area of goal-focus from the focus area of initial focus.
8. a Digital Television, is characterized in that, comprises the mobile device of focus in the digital television browser described in claim 5 or 6.
CN201210311638.8A 2012-08-29 2012-08-29 Method and device for moving focal points in digital television browser, and digital television Active CN102905194B (en)

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 CN102905194A (en) 2013-01-30
CN102905194B true 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)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106454475A (en) * 2015-08-05 2017-02-22 博雅网络游戏开发(深圳)有限公司 Method and device for moving target interaction element
CN105739938B (en) * 2016-03-04 2018-07-24 深圳市茁壮网络股份有限公司 A kind of focus image display method and device
CN107273072B (en) * 2016-04-07 2020-09-04 阿里巴巴集团控股有限公司 Picture display method and device and electronic equipment
CN107835450B (en) * 2017-10-26 2020-12-08 深圳市雷鸟网络传媒有限公司 Focus display method, display device, and computer-readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
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
CN101059756A (en) * 2007-05-16 2007-10-24 珠海金山软件股份有限公司 Device and method for user operating sheltered area

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
SG10201402464XA (en) * 2005-12-07 2014-10-30 3Dlabs Inc Ltd Methods for manipulating web pages
US20120159318A1 (en) * 2010-12-15 2012-06-21 Microsoft Corporation Full screen view reading and editing user interface

Patent Citations (3)

* Cited by examiner, † Cited by third party
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
CN101059756A (en) * 2007-05-16 2007-10-24 珠海金山软件股份有限公司 Device and method for user operating sheltered area

Also Published As

Publication number Publication date
HK1179088A1 (en) 2013-09-19
CN102905194A (en) 2013-01-30

Similar Documents

Publication Publication Date Title
CN105989130B (en) Electronic map methods of exhibiting, device and electronic equipment
JP5472256B2 (en) Vehicle display device and information display system
AU2013222958B2 (en) Method and apparatus for object size adjustment on a screen
CN102905194B (en) Method and device for moving focal points in digital television browser, and digital television
KR101567594B1 (en) Method and apparatus for component display
US20150074573A1 (en) Information display device, information display method and information display program
CN103546818A (en) Method and device for focus control of list display interface of smart television
CN107077296B (en) User terminal device and method for controlling user terminal device
CN106658139B (en) Focus control method and device
CN109753641B (en) Method and device for changing object position, electronic equipment and storage medium
CN104516880A (en) Block-based graphics layout
US20190286310A1 (en) Widget Area Adjustment Method and Apparatus
US10289270B2 (en) Display apparatus and method for displaying highlight thereof
CN110389810A (en) A kind of method, device and equipment for quickly putting UI control on virtual canvas
CN105812945A (en) Information input method, device and smart terminal
CN109324736A (en) The exchange method and device of partial enlargement picture
WO2013136594A1 (en) Plan display device and plan display program
US20200319781A1 (en) Electronic album apparatus, method for operating electronic album apparatus, and operation program
WO2016042834A1 (en) Method for enlarging content in split screen, information processing device and control method and control program therefor
CN104699249A (en) Information processing method and electronic equipment
CN103873760A (en) Focusing point adjusting method and electronic equipment
CN105867800A (en) Display region adjustment method and apparatus
CN109933323A (en) A kind of method and device that user interface is set
CN102567524A (en) Method and device for realizing three-dimensional rotation browsing
CN102708177A (en) Method and device for zooming contents in local browse area in browser

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