CN102103456B - Method and device for showing elements in window - Google Patents

Method and device for showing elements in window Download PDF

Info

Publication number
CN102103456B
CN102103456B CN200910242879XA CN200910242879A CN102103456B CN 102103456 B CN102103456 B CN 102103456B CN 200910242879X A CN200910242879X A CN 200910242879XA CN 200910242879 A CN200910242879 A CN 200910242879A CN 102103456 B CN102103456 B CN 102103456B
Authority
CN
China
Prior art keywords
window
target window
scaling
size
divergent
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
CN200910242879XA
Other languages
Chinese (zh)
Other versions
CN102103456A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN200910242879XA priority Critical patent/CN102103456B/en
Priority to US13/259,601 priority patent/US9069437B2/en
Priority to PCT/CN2010/002091 priority patent/WO2011072497A1/en
Publication of CN102103456A publication Critical patent/CN102103456A/en
Application granted granted Critical
Publication of CN102103456B publication Critical patent/CN102103456B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a method and a device for showing elements in a window. The method comprises the following steps of: when a target window is zoomed, detecting the size of the zoomed target window; determining the display types of the elements in the zoomed target window by using the correspondence between the preset size of the window and the display types of the elements; and showing the elements of the target window according to the determined display types of the elements. By the method and the device, the possibility of showing more information to a user by using the window is provided and the improvement on the utilization ratio of the window is facilitated, so that the utilization ratio of a resource is effectively ensured.

Description

A kind of method and device that represents the element in the window
Technical field
The present invention relates to field of computer technology, particularly relate to a kind of method and device that represents the element in the window.
Background technology
Window is most important part in the user interface of computer system, and it is the visual interface that provides to the user, and by window, the user can view the resource that system provides.Wherein, when the resource that system provides represents, be called the element in the window in window.For system, window is a kind of instrument, and is more to the information that the user provides by window, and the utilization factor of window is just higher, and the resource utilization of system is also just higher.
Can only provide the most basic information to the user in the prior art, for example, when opening certain file, in window, demonstrate content in this document folder in the mode of chart.When the user carried out convergent-divergent to window, by changing the layout of element in window, the viewing area that is implemented in window demonstrated icon as much as possible, referring to Fig. 1.
But, the inventor finds in realizing process of the present invention, although the prior art has been considered the number that changes window viewing area display element by the layout that changes element,, this method can not utilize window to provide more information for the user well.
Summary of the invention
The invention provides a kind of method and device that represents the element in the window, be conducive to improve the utilization factor of window, and then effectively guarantee the utilization factor of resource.
The invention provides following scheme:
A kind of method that represents the element in the window comprises:
When target window generation convergent-divergent, detect the size behind the described target window convergent-divergent;
Utilize the corresponding relation of predefined window size and element display type, determine the display type of the element in the target window behind the described convergent-divergent;
Display type according to described definite element represents the element in the described target window.
Preferably, also comprise:
Detect the scaling of described target window; Utilize the corresponding relation between predefined window scaling and the element scaling, determine the scaling of the element in the described target window; According to the scaling of described definite element, determine the size of element in the described target window;
Described according to described definite display type, the element that represents in the described target window comprises: display type and size according to described definite element represent the element in the described target window.
Preferably, described element scaling is less than described window scaling, and described method also comprises:
According to the size of element in the size of described target window behind the described convergent-divergent and the described target window, determine to represent in the viewing area of described target window the number of element;
Described display type and size according to described definite element, the element that represents in the described target window comprises: display type, size and number according to described definite element represent the element in the described target window.
Preferably, described display type, size and number according to described definite element, the element that represents in the described target window comprises:
When the element number that represents when described target window viewing area behind the described convergent-divergent reduces, the element number that reduces as required, with the rubidium marking of the respective number that represents in the former target window viewing area for hiding attribute.
Preferably, knowing in advance needs all elements that represents in the described target window, set up element index; Described display type, size and number according to described definite element represent the element bag in the described target window:
When the element number that represents when described target window viewing area behind the described convergent-divergent increases, the element number that increases is as required inquired about described element index, taking out the element of respective number, is display properties with the rubidium marking of described taking-up, is presented in described target window viewing area.
Preferably, the described corresponding relation that utilizes between predefined window scaling and the element scaling, determine that the scaling of the element in the described target window also comprises afterwards:
When the scaling of the element of determining according to the scaling of described target window exceeds the threshold value that presets, the scaling of described element is defined as described preset threshold value.
Preferably, in the element in the described target window, comprise image and literal, and described image and described literal be when different levels shows, described scaling according to described definite element, determine that the size of element in the described target window comprises:
Determine the level at described image and described literal place, image layer and character layer are defined as different objects;
Change the size of described image layer object according to the scaling of described definite element, keep the big or small constant of described character layer object.
Preferably, the figure that the edge of described target window or described element is consisted of is as processing object; If described processing object has at least one fillet, then described method also comprises:
According to the scaling of described target window or described element, the non-radius area of described processing object is carried out convergent-divergent;
Know radius and the angle of the fillet of described processing object, according to the scaling of described target window or described element, the radius of described fillet is carried out convergent-divergent, and keep the angle of described fillet constant.
A kind of device that represents the element in the window comprises:
The window size detecting unit is used for when target window generation convergent-divergent, detects the size behind the described target window convergent-divergent;
The display type determining unit is used for utilizing the corresponding relation of predefined window size and element display type, determines the display type of the element in the target window behind the described convergent-divergent;
Represent the unit, be used for according to described definite display type, represent the element in the described target window.
Preferably, also comprise:
The element unit for scaling is for detection of the scaling of described target window; Utilize the corresponding relation between predefined window scaling and the element scaling, determine the scaling of the element in the described target window; According to the scaling of described definite element, determine the size of element in the described target window;
The described unit that represents specifically is used for display type and size according to described definite element, represents the element in the described target window.
Preferably, the figure that the edge of described target window or described element is consisted of is as processing object; If described processing object has at least one fillet, then described device also comprises:
The first unit for scaling is used for the scaling according to described target window or described element, and the non-radius area of described processing object is carried out convergent-divergent;
The second unit for scaling is used for knowing radius and the angle of the fillet of described processing object, according to the scaling of described target window or described element, the radius of described fillet is carried out convergent-divergent, and keep the angle of described fillet constant.
According to specific embodiment provided by the invention, the invention discloses following technique effect:
The present invention can be when target window generation convergent-divergent, detect the size behind the described target window convergent-divergent, then utilize the corresponding relation of predefined window size and element display type, determine the display type of the element in the target window behind the described convergent-divergent, and according to described definite display type, represent the element in the described target window.Therefore, in method provided by the invention, along with the change of window size, the display type of the element that represents in the window also can change, for example, under the assumed initial state, what show in the window is the icon of file, when window is amplified to a certain degree, and the summary infos such as thumbnail that can display file in window, when being amplified to again to a certain degree, the complete information of all right display file etc.Therefore, provide possibility for utilizing window to represent more information to the user, be conducive to improve the utilization factor of window, and then effectively guarantee the utilization factor of resource.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, the below will do to introduce simply to the accompanying drawing of required use among the embodiment, apparently, accompanying drawing in the following describes only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is window convergent-divergent front and back synoptic diagram in the prior art;
Fig. 2 is the process flow diagram of the method that provides of the embodiment of the invention;
Fig. 3 is the process flow diagram of the other method that provides of the embodiment of the invention;
Fig. 4-1,4-2,4-3,4-4 are the situation of change synoptic diagram of element in the window convergent-divergent process in the method that provides of the embodiment of the invention;
Fig. 5-1,5-2 are fillet window convergent-divergent front and back synoptic diagram in the prior art;
Fig. 6-1,6-2 are synoptic diagram before and after the fillet window convergent-divergent in the method that provides of the embodiment of the invention;
Fig. 7 is the synoptic diagram of the device that provides of the embodiment of the invention;
Fig. 8 is the synoptic diagram of another device of providing 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 of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
Embodiment one
Referring to Fig. 2, the method that represents the element in the window that the embodiment of the invention one provides may further comprise the steps:
S201: when target window generation convergent-divergent, detect the size behind the described target window convergent-divergent;
In embodiments of the present invention, window can comprise the window (such as application window, folder window) on the desktop that is created by operating system (such as Windows etc.), perhaps, and the document window that is created by application program etc.For example, specifically can comprise listed files window, preview picture window etc.Wherein, element in the window is some link informations normally, for example, for the window of certain file, the element that shows in this document folder is the sub-folder under this document folder and/or the icon of file normally, can open wherein certain file or certain file by double-clicking wherein certain icon, therefore, be equivalent to play the effect of link.
Window generation convergent-divergent can refer to that the user utilizes mouse, keyboard etc. to pull window, and window is carried out convergent-divergent, perhaps, also can refer to the auto zoom that window occurs under the instruction of some computer program, etc.In a word, as long as when the size of window changes, the embodiment of the invention just can be gone the size after detection window changes.
Wherein, described target window can refer to current any window of opening in user interface, the function that can utilize system to provide is monitored the size of window, and when window generation convergent-divergent, the function that can also utilize system to provide obtains the size behind the window convergent-divergent.Because the shape that consists of of window edge is generally rectangle, therefore, the size of window also is that the size by this rectangle represents that for example, window size can be expressed as 200*120, the length that is equivalent to this window is 200 usually, and wide is 120.
Need to prove, when window generation convergent-divergent, the length of above-mentioned window and wide may be to carry out simultaneously convergent-divergent, and long can be identical with wide zoom direction, also can be not identical, long and wide scaling also be can be identical can difference.For example, can and widely amplify simultaneously or dwindle simultaneously the length of window, the window of original 200*120 be become the window of 240*160 or 180*160; Also the long of window can be amplified, simultaneously the wide of window be dwindled, the window of original 200*120 be become the window of 240*80; The length of window can also be dwindled, simultaneously with the wide amplification of window, the window of original 200*120 be become the window of 180*160, etc., the embodiment of the invention is applicable to above-mentioned various convergent-divergent situation.
S202: utilize the corresponding relation of predefined window size and element display type, determine the display type of the element in the target window behind the described convergent-divergent;
S203: according to described definite display type, represent the element in the described target window.
Wherein, display type can comprise icon information, summary info or complete information etc.Wherein, icon information typically refers to the icon that system demonstrates by default, for file or concrete file, icon style may be different, what can distinguish simply that each link points to by these icon style is file or concrete file, for concrete file, can also distinguish simply the type of file, for example, can distinguish certain file that links sensing is picture, word document or excel form etc.Summary info for example, can refer to the thumbnail of picture for picture file normally for concrete file, for certain word document, and summary that can document etc.Complete information also normally for concrete file, for example, for picture file, can refer to complete picture, perhaps for the word document can the document first page full content etc.
Obviously, for a specific file, when the display type in the window was complete information, the quantity of information that the element that shows by window can offer the user was maximum, because the complete content of this document has all been represented to the user in window; When the display type in the window was summary info, the user also can obtain larger quantity of information, because the user can know what kind of the general content of file is by summary info; When the display type in the window was icon information, the quantity of information that the user obtains was minimum, because the user can only know the type of file, the particular content in each file can't obtain prompting from this window.Certainly, in the window except showing link information, file name information that can also display file, the filename of these files may be by user-defined, therefore, also can point out out some information to the user; But the embodiment of the invention only considers that link information itself can offer user's quantity of information, therefore, file name information can be ignored.
Can find out by above description, in embodiments of the present invention, when the size of target window changes, can change the display type of element wherein, for example, can be by the change of display type, reach following purpose: window is larger, and the quantity of information that the element that then shows can provide is just more.In order to reach this purpose, the embodiment of the invention presets the corresponding relation of window size and element display type, and for example, when preseting size when target window less than 100*100, display type is icon information; When the size of target window greater than 100*100, but during less than 200*200, display type is summary info; When the size of target window during greater than 300*300, display type is complete information.If under the original state, the display type of element is icon information in certain target window, when window amplifies, if detecting the size of target window is 150*180, then the display type of element can be changed into summary info by icon information, the summary info of display file gets final product in this target window; Perhaps, if under the original state, the display type of element is summary info in certain target window, when window dwindles, if detecting the size of target window is 100*80, then the display type of element can be changed into icon information by summary info, the icon information of display file gets final product in this target window.Certainly, the above-mentioned concrete numeral that relates to just illustrates, and during specific implementation, can set according to actual needs, perhaps, also can embody this corresponding relation with other rules, does not do restriction here.
Need to prove, because the convergent-divergent of window may be the continuity action, so that may being continuity, the size of window changes, but the display type of element may be more limited, therefore, along with the continuity variation of window size, the display type of element is done phasic Chang, so that a kind of display type may be corresponding with an interval of window size.
Certainly, except needs preset the corresponding relation of window size and element display type, can also generate in advance summary info corresponding to each element and complete information, and preserve, like this, when the information of certain display type of needs, directly take out and show and get final product.Wherein, specifically how to generate summary info and complete information and belong to those skilled in the art prior art, therefore, repeat no more here.
Embodiment two
As mentioned before, for the link information of a specific file that shows in the window, the variation of display type can affect the quantity of information that this link information can be pointed out.But, although complete information and summary info for icon information, can provide larger quantity of information, owing to need the information of demonstration more, therefore also need accordingly larger display area; If the display size of element is very little, then possibly can't in the display size scope, clearly demonstrate whole information, to such an extent as to can't reach the purpose that the more information amount is provided to the user.
For example, if show the thumbnail of certain picture in window, original purpose is the particular content of prompting user picture, if but thumbnail is too little, then may cause the user can't clearly differentiate to have shown which information in the thumbnail, so that thumbnail has lost original meaning; If the existing picture of the file that shows in the window has again document, if then all adopt the mode of thumbnail to represent, what for which link points to is picture to possibly can't tell, what which link was pointed to is document, has reduced on the contrary the effective rate of utilization of window.Therefore, the effective rate of utilization of window also is embodied on the identification of the element that shows.Be that element not only will show, also should be convenient to the user and clearly tell the element that respectively shows.
Based on above-mentioned consideration, in the embodiment of the invention two, when target window generation convergent-divergent, except changing according to the size of window the display type of element, can also detect the scaling of described target window, utilize the corresponding relation between predefined window scaling and the element scaling, determine the scaling of the element in the described target window, according to the scaling of described definite element, determine the size of element in the described target window.The below at length introduces the step of the method.
Referring to Fig. 3, the method that represents the element in the window that the embodiment of the invention two provides may further comprise the steps:
S301: when target window generation convergent-divergent, detect the size behind the described target window convergent-divergent, and the scaling of described target window;
Wherein, the scaling of target window can utilize the function acquisition that system provides equally.Wherein, because the length of target window and wide convergent-divergent may occur simultaneously, and the direction of convergent-divergent all may be different with ratio, therefore, the scaling of target window is equivalent to comprise two concrete values, one is the scaling of the length of target window, and another is the wide scaling of target window.Be that the aspect describes, in embodiments of the present invention, the scaling of the length of target window be called the horizontal scaling of target window, the wide scaling of target window is called vertical scaling of target window.
For example, if the window of (100*120) is scaled the window of (150*90), then the horizontal scaling of this window is 150/100=1.5, and vertically scaling is 90/120=0.75.
S302: utilize the corresponding relation of predefined window size and element display type, determine the display type of the element in the target window behind the described convergent-divergent;
S303: utilize the corresponding relation between predefined window scaling and the element scaling, determine the scaling of the element in the described target window, according to the scaling of described definite element, determine the size of element in the described target window;
Can realize following purpose by this step: along with the convergent-divergent of window, the size of element also can change, for example, the zoom direction of element can be identical with the zoom direction of window, that is, and and when window amplifies, element also can amplify thereupon, and when window dwindled, element also dwindled thereupon.
In order to reach this purpose, can be at the corresponding relation that presets between window scaling and the element scaling, for example, can represent this corresponding relation by following formula: element scaling=window scaling * 0.8, wherein, element and window class are seemingly, also normally with wide its size that represents of long *, therefore, the element scaling also is also to be divided into horizontal scaling and vertical scaling, in above-mentioned formula, when the equation left side is the horizontal scaling of element, what equation the right was corresponding is the horizontal scaling of window, and when the equation left side was vertical scaling of element, what equation the right was corresponding was vertical scaling of window.Wherein, " 0.8 " in the formula is just in order to illustrate, can change as required other value into, perhaps also can use other formula, can also be according to the different standard of different set of the file type of element directed, scaling computing formula such as picture and movie icon can be different, etc., do not do restriction here.
In a word, when window generation convergent-divergent, after getting access to the scaling of window, can calculate according to above-mentioned formula the scaling of element, and then utilize the initial display size of element before the convergent-divergent, and multiply by the element scaling that calculates, just can obtain the size of element behind the convergent-divergent.
Need to prove that because the convergent-divergent of window may be the continuity action, therefore, the convergent-divergent of element also can be that the convergent-divergent along with window carries out continuously.In addition, step S302 and step S303 can be executed in parallel.
S304: according to described definite display type and size, represent the element in the described target window.
Owing to determined display type and the size of element, therefore, in the target window behind convergent-divergent, come display element to get final product according to the above-mentioned display type of determining and size.
Can find out from this embodiment two, by step S302 and step S303, can realize following purpose: along with the convergent-divergent of window, the size of element is convergent-divergent thereupon, and simultaneously, the display type of element also may change.
For example, what the hypothetical target window showed by default is the icon information of a lot of pictures, when this target window amplifies, the display size of icon also can amplify thereupon, when this target window is amplified to a certain degree, the display type of element can become summary info, at this moment, can demonstrate the thumbnail of picture in this target window; If this target window continues to amplify, then the display size of thumbnail also can amplify thereupon, when this target window is amplified to a certain degree, the display type of element can become complete information, at this moment, can in this target window, demonstrate wherein complete picture, certainly, simultaneously can also in the rest position of this target window viewing area, show the thumbnail information of other pictures.
And for example, what the hypothetical target window showed by default is the thumbnail of a lot of pictures, when this target window dwindles, the display size of thumbnail also can dwindle thereupon, when this target window narrows down to a certain degree, the display type of element can become icon information, at this moment, can demonstrate the icon of picture in this target window.
As seen, by this embodiment two, can reach following effect: when target window amplifies, because element is wherein also amplifying, therefore when this target window is enough large, just can be in this target window can provide display type than multiple data quantity to represent wherein element, therefore, can avoid occurring can't clear resolution owing to the too small user of causing of element display size situation, can guarantee the identification of the element that shows, that is, can be so that summary info, the quantity of information that complete information etc. provide is really used for the user, embodies summary info, the value of complete information.
Opposite, when target window dwindles, because element is wherein also dwindling, therefore when this target window narrows down to a certain degree, for fear of the situation that the user can't clear resolution occurring causing owing to the element display size is too small, just can be in this target window represent wherein element with the display type that less quantity of information is provided.
Certainly, although the display type than large information capacity may need element to have larger display size, but when the element display type in target window became this display type, the information that provides under this display type enough had been provided the display size that just means element; Therefore, after the element display type in the target window had been complete information, if target window is still amplifying, then in fact the display size of element there is no need to have amplified again; Moreover, although the display type of the less quantity of information such as icon information does not need element to have larger display size,, if the display size of element is too little, then also might be so that the user can't clearly recognize icon.Therefore, in embodiments of the present invention, can also set the bound of element convergent-divergent, for example, can set the element minimum and can only narrow down to original 0.2 times, maximum can only be amplified to original 1.5 times.Like this, in the process of carrying out the element convergent-divergent, if the scale down of element has become original 0.2 times, even then window also dwindles continuing, the scale down of element also no longer diminishes, and hold it in original 0.2 times and get final product, on the contrary similar.
Embodiment three
In previous embodiment two, need to preset the corresponding relation between window scaling and the element scaling, when specific implementation, the element scaling can equate with the window scaling, namely carries out equal proportion ground convergent-divergent with window.In this case, when the size of target window changed, the display size of element carried out variation in proportion with it, and therefore, the ratio between the size of target window and the display size of element is constant.Because this ratio affects the layout (comprise between the line number that represents, columns, element distance etc.) of window viewing area to a certain extent, and the number of the window viewing area element that can represent, for example, target window is wide by 100, element is wide by 30, and then every row can show 3 elements; Therefore, in this case, the layout of the viewing area of target window and the element number that represents can not change, also with convergent-divergent before identical.
But because the number of the element that shows in the viewing area of window also is a key factor that affects the window utilization factor, therefore, in this embodiment three, the element scaling can be less than the window scaling, and namely element is slower than the scaling speed of window.Like this, when target window generation convergent-divergent, because the pace of change of the display size of element is slower, meeting so that the ratio between the display size of the size of target window and element change, therefore, in this case, can also along with the variation of the display type of the variation of the variation of target window size, element display size and element, make the layout of each element in the target window viewing area and/or represent number to change thereupon.
Obscure for fear of causing, the below simply introduces the relation between the viewing area of window and window.It is the current content that shows that the content that reality is held in the window may have more than, and generically incites somebody to action, and just as enjoying scenery through window, landscape is infinitely-great, only can only see the part consistent with window size, and this part is exactly the viewing area.Therefore, can say that the zone at the actual content place that can be seen by the user is exactly the viewing area of window in the window.If the content that the content that needs in the window to represent can represent more than its viewing area, then scroll bar can appear in the right side of window and/or downside, can be by dragging scroll bar, change the content that the viewing area of window represents.
During specific implementation, the size of target window behind the convergent-divergent can known, and determined after the display size of element wherein, according to the display size of element in the size of described target window behind the described convergent-divergent and the described target window, determine to represent in the viewing area of described target window the number of element.For example, can be with the size of described target window behind the convergent-divergent display size divided by described element, the merchant of gained gets its integral part, represents the number of element in the viewing area as described target window, certainly, can also change the layout of element in the target window.
Wherein, when the element number that represents when described target window viewing area behind the described convergent-divergent reduces, can be after determining the element number that needs to reduce, with the rubidium marking of the respective number that represents in the former target window viewing area for hiding attribute, like this, these elements will can not be presented in the viewing area of described target window.
When the element number that represents when described target window viewing area behind the described convergent-divergent increased, then after having determined the element number that needs to increase, the element that needs not to be presented in the target window viewing area originally showed.In this case, for the ease of all elements of realizing, can know in advance needing in the described target window representing, set up element index; When needs increase element number, can inquire about described element index, the element that takes out respective number is presented in described target window viewing area and gets final product.For example, in the element index of setting up, have element 1 to No. 20, what represent before the convergent-divergent is 1 to No. 8 element, after window amplifies, determines element of the viewing area more than enough demonstration of energy of window, at this moment, can be display properties with No. 9 rubidium markings according to this element index just, show in this viewing area and get final product.
Certainly, in order to utilize more fully the display space of window viewing area, the place can not a normal size element of complete demonstration also can show one or more reduced elements, to represent also having other element not yet to be demonstrated in this window.Wherein, this element less than normal size can appear dimmed its color, can also its operability be set to and to operate, namely cannot operate this element, perhaps also can say, when operating this element by methods such as clicks, can not jump to the file of this element directed.
In addition, as mentioned before, when representing element in the window, except link information (icon, thumbnail etc.), the title that also can represent element file pointed or file, title normally represents in the mode of literal, therefore, in the process that realizes the embodiment of the invention, when element is carried out convergent-divergent, can only carry out convergent-divergent to link informations such as icon, thumbnails, the size of literal can remain unchanged, just when the layout of window being carried out again, the position that correspondingly changes literal gets final product.
Moreover, when the display type of link information is summary info, also literal may be arranged on the summary info, for example, except image, also may comprise some Word messages in the thumbnail of certain video file.Affect the display effect of thumbnail for fear of the change of literal size, also can keep these literal constant, only image section is wherein carried out convergent-divergent.Certainly, realize this purpose, prerequisite is that the image in the described summary info shows (concrete from described literal at different levels, can be when generating summary info, image is set to different levels from literal), like this, just can keep in the following manner described literal size constant: to determine the level at described image and described literal place, image layer and character layer are defined as different elements; Change the size of described image layer element according to the scaling of described definite element, keep the big or small constant of described character layer element.That is, image layer and character layer can be processed as object independently.Certainly, if variation has occured the layout of element in the window, also can correspondingly change the position of character layer, refer to keep substantially equating to get final product with the relative position of image layer.
The effect that realizes in order to embody better method that the embodiment of the invention three provides compares explanation below by some design sketchs.Referring to Fig. 4-1, it is the content that the target window viewing area shows before the convergent-divergent, this window is divided into 4 viewing areas, the file type difference that the link that represents in each viewing area is pointed, for example, what represent in the viewing area in the upper left corner is the thumbnail of picture file, and what represent in the viewing area in the upper right corner is the thumbnail of audio file, what represent in the viewing area in the lower left corner is the thumbnail of video file, and what represent in the viewing area in the lower right corner is the thumbnail of document files.Referring to Fig. 4-2, it is after the viewing area in this target window upper left corner is amplified, the situation that represents of this viewing area.Referring to Fig. 4-3, its for the viewing area in this target window upper left corner after the basis of Fig. 4-2 is proceeded to amplify, the situation that represents of this viewing area.Referring to Fig. 4-4, it is for after dwindling the viewing area in this target window upper left corner, the situation that represents of this viewing area.
Can find out that in Fig. 4-1, the viewing area has represented the thumbnail of 6 normal size, and 4 reduced thumbnails; Among Fig. 4-2 after this viewing area is amplified, this viewing area has represented the thumbnail of 10 normal size, and 4 reduced thumbnails; And the size of the normal thumbnail that shows is greater than the size of the normal thumbnail that shows among Fig. 4-1 among Fig. 4-2.Wherein, the middle normal thumbnail that shows can be operated, namely can be clicked and start the picture browsing pattern, and the dark-coloured small thumbnails of the right and left shows that just the both sides of viewing area also have the link information of other pictures, but this dark-coloured little picture is not accept user's clicking operation, only have and continue to become large when this viewing area so that after their the normal demonstration, could click.
With the viewing area in this target window upper left corner after the basis of Fig. 4-2 is proceeded to amplify, can find out from Fig. 4-3, demonstrated a complete picture in the viewing area in this upper left corner, simultaneously, below the viewing area, also demonstrated row's thumbnail, simultaneously, the right and left has also respectively shown the small thumbnails of a dead color.
From Fig. 4-1 to Fig. 4-2, arrive again Fig. 4-3, embodied target window in the process of changing from small to big, the situation of change of element wherein.In addition, it can also be seen that from Fig. 4-4 that when the viewing area in this upper left corner dwindled on the basis of Fig. 4-1, the element that shows in this viewing area had become the icon of picture, and the size of icon is less than the size that window dwindles front thumbnail.
In actual applications, can also increase more visual effect by program.For example, for the element that points to files in different types, show style also can be different, as the thumbnail distortion of picture can being shown, for the thumbnail of video adds backlight effect etc.Simultaneously, when the window convergent-divergent or when dragging scroll bar, can also as dwindling when window be so that the element that will represent or disappear is gradual change, be presented in that picture on the limit can diminish gradually along with the extruding of window edge, dimmed last disappearance, etc.
Embodiment four
In aforementioned three embodiment, when window generation convergent-divergent, all be that the element that represents in to window carries out a series of adjustment.In this embodiment four, also considered the generation convergent-divergent after, the aesthetic property of window or element display shape.
In actual applications, the figure that the edge of the elements such as window or thumbnail consists of is generally the rectangle of standard, in this case, and the rectangle that the shape behind window or the element convergent-divergent also can maintain the standard.But, the figure of the edge of some window or element formation may not be the rectangle of standard yet, for example, the edge of some window may be fillet and and on-right angle, the effect of rounded edges allows the user visually feel this window (being aspect description will be called with the window of rounded edges the fillet window in the embodiment of the invention) more attractive in appearance, shown in Fig. 5-1, suppose that it is the fillet window of 120*120, wherein, each fillet is that an angle is the circular arc of 90 degree; But these fillet windows also can bring a problem when carrying out convergent-divergent, that is exactly, if long and wide scaling is unequal, then the shape of fillet can change, so that the shape of convergent-divergent rear hatch becomes no longer attractive in appearance, referring to Fig. 5-2, it is for to the length of the fillet window among Fig. 5-1 and the wide synoptic diagram that carries out behind the non-equal proportion convergent-divergent, this window becomes 200*64 after supposing convergent-divergent, as can be seen from the figure, radius area originally no longer has been the circular arc of 90 degree, and its aesthetic measure has been subject to impact.Equally, for the element in the window similar problem is arranged also, the purpose of this embodiment four just provides a kind of method that addresses this problem.For convenience of description, the below all is introduced as an example of window example, if the figure that the element edge consists of has similar situation, processes getting final product with reference to the method for window.
At first, suppose before the fillet window convergent-divergent that shown in Fig. 5-1, it be the fillet window of 120*120, wherein, each fillet is that an angle is 90 circular arcs of spending; Need to be 200*80 with its size scaling now.In this embodiment four, can be undertaken by following steps:
At first, need to know radius and the angle of described fillet, then, according to the scaling of this window, the non-radius area of this fillet window be carried out convergent-divergent; Again according to the scaling of this window, the radius of described fillet is carried out convergent-divergent, and keep the angle of described fillet constant.Wherein, because the scaling of window may comprise horizontal scaling, and vertical scaling, at the scaling according to described window, when the radius of described fillet was carried out convergent-divergent, the scaling of radius can be identical with horizontal or vertical scaling.After the convergent-divergent, the fillet behind the convergent-divergent and non-radius area are reconfigured together get final product again.The below introduces in further detail.
For the ease of realization, can carry out in accordance with the following methods:
At first, need to carry out following preliminary work: referring to Fig. 6-1, former fillet window is carried out cutting according to the drawn part of dotted line among the figure, obtain 7 zones.Wherein, 1., 3., 5., 7. among the figure is exactly radius area, just is non-radius area 2., 4., 6..Specifically when cutting, because under original state, the fillet at the limit of fillet window and these two ends, limit is tangent, therefore, can at first find the point of contact of each limit and fillet, respectively each point of contact is connected in twos again, and only keep connecting line on level and the vertical direction, just can obtain 7 zones shown in Fig. 6-1.
Above-mentioned preliminary work just can be carried out according to following steps after finishing:
Step 1: when fillet window generation convergent-divergent, know the scaling of fillet window, with non-radius area 2., 4., 6. the scaling according to this window carries out convergent-divergent;
Wherein, the scaling of fillet window refers on the whole, the scaling of fillet window.
Step 2: with horizontal or vertical scaling of described window, be defined as the scaling of the radius of fillet;
Step 3: the radius of fillet is carried out convergent-divergent according to the scaling of determining in the step 2;
Step 4: the regional behind the mobile convergent-divergent, with the regional behind the convergent-divergent according to original position grouping together.
Suppose to be 200*80 behind the convergent-divergent, the effect behind the convergent-divergent that then finally obtains is compared with Fig. 5-2 shown in Fig. 6-2, and obviously, aesthetic property has improved.
In said method, horizontal or vertical scaling of window scaling as radius of corner is still too large if the radius of fillet is exaggerated ground in actual applications, then may affect fillet window aesthetic property on the whole.Therefore, in other embodiments of the invention, can also adopt following methods to control the variation of radius of corner:
If the length of convergent-divergent rear hatch and widely then keep the radius size of four fillets constant all greater than 2 times radius of corner, the position that only changes fillet gets final product; If the length of convergent-divergent rear hatch or wide radius of corner less than 2 times, then the length behind convergent-divergent or wide selection length smaller, the radius of four fillets just all is taken as 1/2nd (also can be 1/2nd beyond other values) of this length smaller's length, at this moment, need to change simultaneously size and the position of four fillets.
That is, in this manner, only have the size that when MIN (long, wide)<2* radius of corner, just can change the radius of 4 fillets, length wherein and the wide length behind the convergent-divergent and wide that refers to, radius of corner refers to the radius of corner before the convergent-divergent.
Radius of corner behind the above convergent-divergent that calculates is designated as r, and the overall length and width of the fillet window behind the convergent-divergent are respectively w and h, and then behind the convergent-divergent, size and the relative position information in 7 zones among Fig. 6-2 can be as shown in table 1.
Table 1
Zone number The X coordinate The Y coordinate The zone is wide The zone is long
0 0 r r
r 0 w-2*r r
w-r 0 r r
0 r w h-2*r
0 h-r r r
r h-r w-2*r r
w-r h-r r r
In addition, can also use other method that radius of corner is carried out convergent-divergent, for example, certain fillet window is being carried out in the process of convergent-divergent, when MIN (length, wide)<just beginning to dwindle radius of corner during L (L be greater than the value of 2* radius of corner), one of the scaling * that the scaling of radius of corner equals fillet window integral body is less than 1 coefficient, and the speed of dwindling of fillet is faster than the speed of dwindling of window integral body like this.
Certainly, except aforementioned several method, the method for other convergent-divergent radius of corner can also be arranged, those skilled in the art can choose as required, enumerate no longer one by one here.
Need to prove, the hypothesis window has four fillets in the above-mentioned example, in actual applications, window may only have one or two or three fillets, for the fillet window of this fillet number less than four, when convergent-divergent, get final product with reference to above-mentioned Zoom method to the fillet window, here repeat no more as space is limited.
Corresponding with the method that represents the element in the window that the embodiment of the invention provides, the embodiment of the invention also provides a kind of device that represents the element in the window, and referring to Fig. 7, this device comprises:
Window size detecting unit 701 is used for when target window generation convergent-divergent, detects the size behind the described target window convergent-divergent;
Display type determining unit 702 is used for utilizing the corresponding relation of predefined window size and element display type, determines the display type of the element in the target window behind the described convergent-divergent;
Represent unit 703, be used for according to described definite display type, represent the element in the described target window.
Because the device that the embodiment of the invention provides can change along with the convergent-divergent of window the display type of element in the window, and the element of different display types can offer user's quantity of information may be different, therefore, provide possibility for utilizing window to represent more information to the user, be conducive to improve the utilization factor of window, and then effectively guarantee the utilization factor of resource.
Because under can the prerequisite of clear demonstration, the required display area of different display types may be different, for example, when the quantity of information that provides is larger, then may need larger display area under certain real type, therefore, in order more clearly to show the element of various display types, simultaneously, avoid the waste of window display area, can also along with the convergent-divergent of window, carry out convergent-divergent to the size of element.At this moment, referring to Fig. 8, this device can also comprise:
Element unit for scaling 704 is for detection of the scaling of described target window; Utilize the corresponding relation between predefined window scaling and the element scaling, determine the scaling of the element in the described target window; According to the scaling of described definite element, determine the size of element in the described target window;
Represent unit 703 and specifically can according to display type and the size of described definite element, represent the element in the described target window.
In actual applications, can also change the element number that the viewing area of window represents, for this reason, can make the element scaling less than the window scaling, and this device can also comprise:
Represent the number determining unit, be used for according to the size of described target window behind the described convergent-divergent and the size of described target window element, determine to represent in the viewing area of described target window the number of element;
Accordingly, represent concrete display type, size and the number that is used for according to described definite element in unit 703, represent the element in the described target window.
Wherein, when the element number that represents when described target window viewing area behind the described convergent-divergent reduces, represent unit 703 and specifically be used for:
The element number that reduces as required, with the rubidium marking of the respective number that represents in the former target window viewing area for hiding attribute.
Need to represent the situation of more element for the ease of reply, can know in advance needs all elements that represents in the described target window, set up element index; When the element number that represents when described target window viewing area behind the described convergent-divergent increases, represent unit 703 and specifically be used for:
The element number that increases is as required inquired about described element index, takes out the element of respective number, is display properties with these rubidium markings, and is presented in described target window viewing area.
It is too large to be exaggerated ground for fear of element, or it is too little to dwindle ground, can preset the threshold value that presets, and corresponding, this device also comprises:
Judging unit is used for when the scaling of the element of determining according to the scaling of described target window exceeds the threshold value that presets, and the scaling of described element is defined as described preset threshold value.
Comprise again literal if namely comprise image in the element, and image and literal be when different levels shows, element unit for scaling 704 can comprise:
Object splits subelement, is used for determining the level at described image and described literal place, and image layer and character layer are defined as different objects;
Convergent-divergent subelement respectively is used for changing according to the scaling of described definite element the size of described image layer object, keeps the big or small constant of described character layer object.
In order to keep the attractive in appearance of convergent-divergent rear hatch or element, the figure that the edge of described target window or described element can be consisted of is as processing object; If described processing object has at least one fillet, then this device can also comprise:
The first unit for scaling is used for the scaling according to described target window or described element, and the non-radius area of described processing object is carried out convergent-divergent;
The second unit for scaling is used for knowing radius and the angle of the fillet of described processing object, according to the scaling of described target window or described element, the radius of described fillet is carried out convergent-divergent, and keep the angle of described fillet constant.
More than to a kind of method and device that represents the element in the window provided by the present invention, be described in detail, used specific case herein principle of the present invention and embodiment 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 one of ordinary skill 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 (11)

1. a method that represents the element in the window is characterized in that, comprising:
When target window generation convergent-divergent, detect the size behind the described target window convergent-divergent;
Utilize the corresponding relation of predefined window size and element display type, determine the display type of the element in the target window behind the described convergent-divergent;
Display type according to described definite element represents the element in the described target window.
2. method according to claim 1 is characterized in that, also comprises:
Detect the scaling of described target window; Utilize the corresponding relation between predefined window scaling and the element scaling, determine the scaling of the element in the described target window; According to the scaling of described definite element, determine the size of element in the described target window;
Described according to described definite display type, the element that represents in the described target window comprises: display type and size according to described definite element represent the element in the described target window.
3. method according to claim 2 is characterized in that, described element scaling is less than described window scaling, and described method also comprises:
According to the size of element in the size of described target window behind the described convergent-divergent and the described target window, determine to represent in the viewing area of described target window the number of element;
Described display type and size according to described definite element, the element that represents in the described target window comprises: display type, size and number according to described definite element represent the element in the described target window.
4. method according to claim 3 is characterized in that, described display type, size and number according to described definite element, and the element that represents in the described target window comprises:
When the element number that represents when described target window viewing area behind the described convergent-divergent reduces, the element number that reduces as required, with the rubidium marking of the respective number that represents in the former target window viewing area for hiding attribute.
5. method according to claim 3 is characterized in that, knowing in advance needs all elements that represents in the described target window, sets up element index; Described display type, size and number according to described definite element, the element that represents in the described target window comprises:
When the element number that represents when described target window viewing area behind the described convergent-divergent increases, the element number that increases is as required inquired about described element index, taking out the element of respective number, is display properties with the rubidium marking of described taking-up, is presented in described target window viewing area.
6. according to claim 2 to 5 each described methods, it is characterized in that the described corresponding relation that utilizes between predefined window scaling and the element scaling determines that the scaling of the element in the described target window also comprises afterwards:
When the scaling of the element of determining according to the scaling of described target window exceeds the threshold value that presets, the scaling of described element is defined as described preset threshold value.
7. according to claim 2 to 5 each described methods, it is characterized in that, in the element in the described target window, comprise image and literal, and when described image and described literal show at different levels, described scaling according to described definite element, determine that the size of element in the described target window comprises:
Determine the level at described image and described literal place, image layer and character layer are defined as different objects;
Change the size of described image layer object according to the scaling of described definite element, keep the big or small constant of described character layer object.
8. according to claim 2 to 5 each described methods, it is characterized in that the figure that the edge of described target window or described element is consisted of is as processing object; If described processing object has at least one fillet, then described method also comprises:
According to the scaling of described target window or described element, the non-radius area of described processing object is carried out convergent-divergent;
Know radius and the angle of the fillet of described processing object, according to the scaling of described target window or described element, the radius of described fillet is carried out convergent-divergent, and keep the angle of described fillet constant.
9. a device that represents the element in the window is characterized in that, comprising:
The window size detecting unit is used for when target window generation convergent-divergent, detects the size behind the described target window convergent-divergent;
The display type determining unit is used for utilizing the corresponding relation of predefined window size and element display type, determines the display type of the element in the target window behind the described convergent-divergent;
Represent the unit, be used for according to described definite display type, represent the element in the described target window.
10. device according to claim 9 is characterized in that, also comprises:
The element unit for scaling is for detection of the scaling of described target window; Utilize the corresponding relation between predefined window scaling and the element scaling, determine the scaling of the element in the described target window; According to the scaling of described definite element, determine the size of element in the described target window;
The described unit that represents specifically is used for display type and size according to described definite element, represents the element in the described target window.
11. device according to claim 10 is characterized in that, the figure that the edge of described target window or described element is consisted of is as processing object; If described processing object has at least one fillet, then described device also comprises:
The first unit for scaling is used for the scaling according to described target window or described element, and the non-radius area of described processing object is carried out convergent-divergent;
The second unit for scaling is used for knowing radius and the angle of the fillet of described processing object, according to the scaling of described target window or described element, the radius of described fillet is carried out convergent-divergent, and keep the angle of described fillet constant.
CN200910242879XA 2009-12-18 2009-12-18 Method and device for showing elements in window Active CN102103456B (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN200910242879XA CN102103456B (en) 2009-12-18 2009-12-18 Method and device for showing elements in window
US13/259,601 US9069437B2 (en) 2009-12-18 2010-12-20 Window management method, apparatus and computing device
PCT/CN2010/002091 WO2011072497A1 (en) 2009-12-18 2010-12-20 Method, device and computing equipment for window management

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910242879XA CN102103456B (en) 2009-12-18 2009-12-18 Method and device for showing elements in window

Publications (2)

Publication Number Publication Date
CN102103456A CN102103456A (en) 2011-06-22
CN102103456B true CN102103456B (en) 2013-01-16

Family

ID=44156269

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910242879XA Active CN102103456B (en) 2009-12-18 2009-12-18 Method and device for showing elements in window

Country Status (1)

Country Link
CN (1) CN102103456B (en)

Families Citing this family (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101948645B1 (en) * 2011-07-11 2019-02-18 삼성전자 주식회사 Method and apparatus for controlling contents using graphic object
CN102890611B (en) * 2011-07-21 2016-03-30 华为技术有限公司 A kind of method and device that file project information is provided based on touching type operation
CN103677494B (en) * 2012-09-07 2016-12-21 华为终端有限公司 A kind of content displaying method, device and equipment
KR20140073398A (en) * 2012-12-06 2014-06-16 삼성전자주식회사 Display apparatus and method for controlling thereof
CN103970436A (en) * 2013-01-25 2014-08-06 人人游戏网络科技发展(上海)有限公司 Method and device for displaying on screen of electronic equipment
CN103745480B (en) * 2014-01-26 2017-02-15 广州博冠信息科技有限公司 Picture rendering method and device
CN106033410B (en) * 2015-03-20 2019-11-26 广州金山移动科技有限公司 A kind of object size method of adjustment
CN104731454A (en) * 2015-03-31 2015-06-24 联想(北京)有限公司 Information processing method and electronic equipment
JP2017033137A (en) * 2015-07-30 2017-02-09 株式会社リコー Information processing system, information processing device, information terminal, and program
CN107436892A (en) * 2016-05-26 2017-12-05 秘密基地数位科技股份有限公司 The display methods of image
US10289292B2 (en) * 2016-06-12 2019-05-14 Apple Inc. Device, method, and graphical user interface for window manipulation and management
JP6759752B2 (en) * 2016-06-23 2020-09-23 カシオ計算機株式会社 Display device, display method and program
CN107688565B (en) * 2016-08-03 2021-09-28 光速视觉(北京)科技有限公司 Information management and display device and method and mobile terminal
CN106792153B (en) * 2016-12-01 2020-07-28 腾讯科技(深圳)有限公司 Video identification processing method and device and computer readable storage medium
CN108154792B (en) * 2016-12-06 2020-12-15 阿里巴巴(中国)有限公司 Graphic character annotation method and device
CN107729111A (en) * 2017-10-27 2018-02-23 上海京颐科技股份有限公司 Nursing information shows method and device, storage medium, terminal
CN109669754A (en) * 2018-12-25 2019-04-23 苏州思必驰信息科技有限公司 The dynamic display method of interactive voice window, voice interactive method and device with telescopic interactive window
CN110162367B (en) * 2019-05-10 2020-11-24 上海莉莉丝科技股份有限公司 Method, system, device and medium for user interface adaptive configuration
CN110659285B (en) * 2019-08-29 2022-12-30 北京华天海峰科技股份有限公司 Test data analysis method and device, computer equipment and storage medium
CN114398121B (en) * 2021-12-21 2024-02-27 北京五八信息技术有限公司 View display method and device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6008809A (en) * 1997-09-22 1999-12-28 International Business Machines Corporation Apparatus and method for viewing multiple windows within a dynamic window
CN1802691A (en) * 2003-04-08 2006-07-12 费弗里特系统公司 A windowing and controlling system thereof comprising a computer device
CN101021765A (en) * 2006-02-14 2007-08-22 三星电子株式会社 Apparatus and method for managing layout of a window

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6008809A (en) * 1997-09-22 1999-12-28 International Business Machines Corporation Apparatus and method for viewing multiple windows within a dynamic window
CN1802691A (en) * 2003-04-08 2006-07-12 费弗里特系统公司 A windowing and controlling system thereof comprising a computer device
CN101021765A (en) * 2006-02-14 2007-08-22 三星电子株式会社 Apparatus and method for managing layout of a window

Also Published As

Publication number Publication date
CN102103456A (en) 2011-06-22

Similar Documents

Publication Publication Date Title
CN102103456B (en) Method and device for showing elements in window
US9069437B2 (en) Window management method, apparatus and computing device
US10768806B2 (en) Information processing device, information processing method, and program for displaying list items and changing hierarchical level of display
US20210286512A1 (en) Information processing device, information processing method, and program
US8681111B2 (en) Information processing device and information processing method
US8878879B2 (en) Apparatus, method and computer readable recording medium for displaying content
JP5069723B2 (en) Screen display range dividing method, screen display range dividing system, and computer program
US8910073B2 (en) Enhancing visual continuity in scrolling operations
EP1973042A1 (en) Method for displaying the document
AU2013222958B2 (en) Method and apparatus for object size adjustment on a screen
US20110074719A1 (en) Gesture detecting method for touch panel
WO2011027611A1 (en) Operation control device, operation control method and computer program
CN109189532B (en) Control bar display method, device, equipment and storage medium of electronic whiteboard
CN102763067A (en) Regulation of navigation speed among displayed items and tilt angle thereof responsive to user applied pressure
EP3557405A1 (en) Display control method and device of flexible display screen
US20110242037A1 (en) Method for controlling a selected object displayed on a screen
CN101661383A (en) Electronic equipment and display control method thereof
CN102053787B (en) Information processing apparatus, image enlargement processing method
CN103383603A (en) Information processing method and electronic equipment
CN101923422A (en) Page display method, electronic device and program product
CN104615764A (en) Display method and electronic equipment
TW201216143A (en) Displaying and adjusting system for webpages and method thereof
CN105353971A (en) Picture display method and picture display device of mobile terminal
CN112860157B (en) Display element adjusting method, device, equipment and storage medium
JP7447494B2 (en) Display device and display control program

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant