CN104462419A - Optimization method and device of sizes of display items in display control - Google Patents

Optimization method and device of sizes of display items in display control Download PDF

Info

Publication number
CN104462419A
CN104462419A CN201410770834.0A CN201410770834A CN104462419A CN 104462419 A CN104462419 A CN 104462419A CN 201410770834 A CN201410770834 A CN 201410770834A CN 104462419 A CN104462419 A CN 104462419A
Authority
CN
China
Prior art keywords
displayed entries
area ratio
group
displayed
display control
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410770834.0A
Other languages
Chinese (zh)
Other versions
CN104462419B (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.)
Beijing Gridsum Technology Co Ltd
Original Assignee
Beijing Gridsum Technology Co 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 Beijing Gridsum Technology Co Ltd filed Critical Beijing Gridsum Technology Co Ltd
Priority to CN201410770834.0A priority Critical patent/CN104462419B/en
Publication of CN104462419A publication Critical patent/CN104462419A/en
Application granted granted Critical
Publication of CN104462419B publication Critical patent/CN104462419B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9577Optimising the visualization of content, e.g. distillation of HTML documents

Abstract

The invention discloses an optimization method and device of sizes of display items in a display control. The method includes: acquiring area ratios of display item sets in the display control, with the area ratios being ratios of the areas of the display item sets to the total display area of the display control and including an area ratio of the first display item set, an area ratio of the second display item set and an area ratio of the third display item set; comparing a size relationship among the area ratios of the first, second and third display item sets to obtain a comparison result; according to the comparison result, optimizing display condition of the display items in the display control. By the use of the optimization method and device, the problem of the relevant arts that the sizes of the display items displayed in the display control are unreasonable is solved.

Description

For showing optimization method and the device of displayed entries size in control
Technical field
The present invention relates to internet arena, in particular to a kind of optimization method for showing displayed entries size in control and device.
Background technology
Web page browsing amount (Page view, referred to as PV), normally weighs the leading indicator of an Internet news channel or website or even an Internet news.Web page browsing number evaluates one of the most frequently used index of website traffic, in order to show the PV of website intuitively, being presented at of quantity imagery of browsing of website can be shown on control.
Such as, TreeMap is the display control that a kind of size by data footprint area embodies the Value of data content, all uses this control in current a lot of application.Such as, the hierarchical structure displaying etc. of popular keyword displaying, file.The mode display data that this control utilizes the grid size shared by each Item to be directly proportional to total Value, can cheer and brightly be illustrated in each Item in whole TreeMap.Such as, the Item that Value is larger, more can be partial to the upper left corner of whole TreeMap viewing area; The Item that Value is less, more can be partial to the lower right corner of whole TreeMap viewing area.
But, in TreeMap, when the Value of some Item is much larger than other Item, whole view can be caused to show unsightly; And when the displaying block of some Item is too small, can cause intuitively arriving this Item; And when all Item Value all relatively time, Item in whole TreeMap figure can be caused to show indifference.Like this, because the Value size in TreeMap between Items is too unbalanced or too equilibrium, the Item display that result in TreeMap is unreasonable.
For the irrational problem of the size showing the displayed entries shown in control in correlation technique, at present effective solution is not yet proposed.
Summary of the invention
Fundamental purpose of the present invention is to provide a kind of optimization method for showing displayed entries size in control and device, to solve the unreasonable problem of size of displayed entries in display control.
To achieve these goals, according to an aspect of the present invention, a kind of optimization method showing displayed entries size in control is provided.The method comprises: the area ratio obtaining the displayed entries group in display control, the area ratio of displayed entries group is the ratio that the area of displayed entries group accounts for total display area of display control, comprising: the area ratio of the area ratio of the first displayed entries group, the area ratio of the second displayed entries group and the 3rd displayed entries group; Relatively the area ratio of display first entry group, the magnitude relationship between the area ratio showing second entry group and the area ratio of the 3rd displayed entries group, obtain comparative result; And optimize the display situation of displayed entries in display control according to comparative result.
Further, the area ratio of the area ratio of the first displayed entries group, the area ratio of the second displayed entries group and the 3rd displayed entries group can be determined in the following manner: obtain displayed entries all in display control; According to the size of the area ratio of each displayed entries in displayed entries all in display control, all displayed entries in display control are sorted, obtain displayed entries sequence; Area ratio in displayed entries sequence is come the area ratio A of area ratio sum as the first displayed entries group of all displayed entries of front M name; Area ratio in displayed entries sequence is come the area ratio B of area ratio sum as the second displayed entries group of all displayed entries of rear N name; And area ratio in displayed entries sequence is come the area ratio C of area ratio sum as the 3rd displayed entries group of all displayed entries of rear L name, wherein, S=M+N, L < N, S represent the sum of displayed entries in display control.
Further, optimize the display situation of displayed entries in display control according to comparative result can comprise: during at A > B, according to the area ratio of each displayed entries in the sine function adjustment display control preset, obtain the first adjustment result; According to the display situation of each displayed entries of the first adjustment result optimizing in display control, when B > A > C, according to the area ratio of each displayed entries in the median adjustment display control preset, obtain the second adjustment result; According to the display situation of each displayed entries of the second adjustment result optimizing in display control, when C > A, according to the area ratio of each displayed entries in the cosine function adjustment display control preset, obtain the 3rd adjustment result; According to the display situation of each displayed entries of the 3rd adjustment result optimizing in display control.
Further, the sine function preset, the median preset and the cosine function preset can be determined in the following manner: obtain the maximal value that presets and the minimum value that presets and obtain the maximal value of displayed entries area ratio and the minimum value of displayed entries area ratio; According to the maximal value preset and the minimum value that presets and the maximal value of displayed entries area ratio and the minimum value determination intermediate value of displayed entries area ratio; The sine function preset, the median preset and the cosine function preset is determined according to intermediate value, wherein, by following formula determination intermediate value: MidValue=Min+ (Max-Min)/(MaxItem-MinItem) * ItemValue, wherein, MidValue represents intermediate value, ItemValue represents the area ratio before displayed entries optimization, Max represents the maximal value preset, Min represents the minimum value preset, MaxItem represents the maximal value of displayed entries area ratio, the minimum value of MinItem displayed entries area ratio.
Further, the sine function preset, the median preset and the cosine function preset: Value=MidValue can be determined by following formula; Value=Sin (2*MidValue/ (PI*Max)); Value=cos ((2*MidValue)/(PI*Max)+1)+1; Wherein, Value represent displayed entries optimize after area ratio.
To achieve these goals, according to a further aspect in the invention, a kind of optimization device for showing displayed entries size in control is provided.This device comprises: acquiring unit, for obtaining the area ratio of the displayed entries group in display control, the area ratio of displayed entries group is the ratio that the area of displayed entries group accounts for total display area of display control, comprising: the area ratio of the area ratio of the first displayed entries group, the area ratio of the second displayed entries group and the 3rd displayed entries group; Comparing unit, for comparing the area ratio of display first entry group, the magnitude relationship between the area ratio showing second entry group and the area ratio of the 3rd displayed entries group, obtains comparative result; And optimization unit, for optimizing the display situation of displayed entries in display control according to comparative result.
Further, optimization device can also comprise: the first determining unit, for determining the area ratio of the area ratio of the first displayed entries group, the area ratio of the second displayed entries group and the 3rd displayed entries group in the following manner, first determining unit comprises: the first acquisition module, for obtaining displayed entries all in display control; Order module, sorts to all displayed entries in display control for the size according to the area ratio of each displayed entries in displayed entries all in display control, obtains displayed entries sequence; First determination module, for coming the area ratio A of area ratio sum as the first displayed entries group of all displayed entries of front M name using area ratio in displayed entries sequence; Second determination module, for coming the area ratio B of area ratio sum as the second displayed entries group of all displayed entries of rear N name using area ratio in displayed entries sequence; And the 3rd determination module, for area ratio in displayed entries sequence being come the area ratio C of area ratio sum as the 3rd displayed entries group of all displayed entries of rear L name, wherein, S=M+N, L < N, S represent the sum of displayed entries in display control.
Further, optimizing unit can comprise: the first adjusting module, for when A > B, according to the area ratio of each displayed entries in the sine function adjustment display control preset, obtains the first adjustment result; First optimizes module, for showing the display situation in control according to each displayed entries of the first adjustment result optimizing, second adjusting module, for when B > A > C, according to the area ratio of each displayed entries in the median adjustment display control preset, obtain the second adjustment result; Second optimizes module, for showing the display situation in control according to each displayed entries of the second adjustment result optimizing, 3rd adjusting module, for when C > A, according to the area ratio of each displayed entries in the cosine function adjustment display control preset, obtain the 3rd adjustment result; 3rd optimizes module, for showing the display situation in control according to each displayed entries of the 3rd adjustment result optimizing.
Further, optimization device can also comprise: the second determining unit, for determining the sine function preset, the median preset and the cosine function preset in the following manner, second determining unit comprises: the second acquisition module, for obtaining the maximal value preset and the minimum value preset and obtaining the maximal value of displayed entries area ratio and the minimum value of displayed entries area ratio, 4th determination module, for according to the maximal value that presets and the minimum value preset and the maximal value of displayed entries area ratio and the minimum value determination intermediate value of displayed entries area ratio, 5th determination module, for the sine function determining to preset according to intermediate value, the median preset and the cosine function preset, wherein, by following formula determination intermediate value: MidValue=Min+ (Max-Min)/(MaxItem-MinItem) * ItemValue, wherein, MidValue represents intermediate value, ItemValue represents the area ratio before displayed entries optimization, Max represents the maximal value preset, Min represents the minimum value preset, MaxItem represents the maximal value of displayed entries area ratio, the minimum value of MinItem displayed entries area ratio.
Further, the 5th determination module is also for the sine function determining to preset by following formula, the median preset and the cosine function preset: Value=MidValue; Value=Sin (2*MidValue/ (PI*Max)); Value=cos ((2*MidValue)/(PI*Max)+1)+1; Wherein, Value represent displayed entries optimize after area ratio.
Pass through the present invention, adopt the area ratio of the displayed entries group obtained in display control, the area ratio of displayed entries group is the ratio that the area of displayed entries group accounts for total display area of display control, comprising: the area ratio of the area ratio of the first displayed entries group, the area ratio of the second displayed entries group and the 3rd displayed entries group; Relatively the area ratio of display first entry group, the magnitude relationship between the area ratio showing second entry group and the area ratio of the 3rd displayed entries group, obtain comparative result; And optimize the display situation of displayed entries in display control according to comparative result, solve the irrational problem of size of displayed entries in display control, and then reach the effect of the size reasonable making displayed entries in display control.
Accompanying drawing explanation
The accompanying drawing forming a application's part is used to provide a further understanding of the present invention, and schematic description and description of the present invention, for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the process flow diagram of the optimization method for showing displayed entries size in control according to the embodiment of the present invention; And
Fig. 2 is the schematic diagram of the optimization device for showing displayed entries size in control according to the embodiment of the present invention.
Embodiment
It should be noted that, when not conflicting, the embodiment in the application and the feature in embodiment can combine mutually.Below with reference to the accompanying drawings and describe the present invention in detail in conjunction with the embodiments.
The application's scheme is understood better in order to make those skilled in the art person, below in conjunction with the accompanying drawing in the embodiment of the present application, technical scheme in the embodiment of the present application is clearly and completely described, obviously, described embodiment is only the embodiment of the application's part, instead of whole embodiments.Based on the embodiment in the application, those of ordinary skill in the art are not making the every other embodiment obtained under creative work prerequisite, all should belong to the scope of the application's protection.
It should be noted that, term " first ", " second " etc. in the instructions of the application and claims and above-mentioned accompanying drawing are for distinguishing similar object, and need not be used for describing specific order or precedence.Should be appreciated that the data used like this can be exchanged, in the appropriate case so that the embodiment of the application described herein.In addition, term " comprises " and " having " and their any distortion, intention is to cover not exclusive comprising, such as, contain those steps or unit that the process of series of steps or unit, method, system, product or equipment is not necessarily limited to clearly list, but can comprise clearly do not list or for intrinsic other step of these processes, method, product or equipment or unit.
According to embodiments of the invention, provide a kind of optimization method for showing displayed entries size in control, this optimization method being used for showing displayed entries size in control shows for the image conversion of data processing content.This may operate in computer-processing equipment for the optimization method showing displayed entries size in control.
Fig. 1 is the process flow diagram of the optimization method for showing displayed entries size in control according to the embodiment of the present invention.As shown in Figure 1, the method comprises following step S102 to step S106:
Step S102, obtains the area ratio of the displayed entries group in display control.
Wherein, the area ratio of displayed entries group is the ratio that the area of displayed entries group accounts for total display area of display control, comprising: the area ratio of the area ratio of the first displayed entries group, the area ratio of the second displayed entries group and the 3rd displayed entries group.
It should be noted that, in embodiments of the present invention, display control can be the control of various ways, and such as, it can be TreeMap control.The present invention is elaborated below for TreeMap control.
During enforcement, the first displayed entries group can be the Item group in TreeMap control, and the second displayed entries group can be the 2nd Item group in TreeMap control, and the 3rd displayed entries group can be the 3rd Item group in TreeMap control.Accordingly, the area ratio of displayed entries group can be the area of Item group in TreeMap control and the ratio of the area of TreeMap display interface.
It should be noted that, in each Item group, one or more Item can be comprised.In TreeMap control, each Item can be shown by the mode of displaying block, like this, not only can show the size of the Value corresponding to each Item intuitively, but also can show the difference between the Value corresponding to each bar Item intuitively.Such as, when Item represents website, Value corresponding to Item can be then web page browsing amount, like this, namely the size of the displaying block of the Item shown in TreeMap control represents the number of web page browsing amount, wherein, like this, the displaying block of Item is larger, then illustrate that the pageview of the webpage of the website represented by Item is larger.
Step S104, compares the area ratio of display first entry group, the magnitude relationship between the area ratio showing second entry group and the area ratio of the 3rd displayed entries group, obtains comparative result.
Step S106, optimizes the display situation of displayed entries in TreeMap according to comparative result.
Particularly, respectively by the size of the displaying block of an Item group, the 2nd Item group and the 3rd Item group, the magnitude relationship between them can be compared, obtain comparative result, and according to comparative result, optimize the display situation of each Item in TreeMap control.
Such as, when the displaying block of Item excessive or too small time, can adjust according to above-mentioned optimal way the ratio that each Item accounts for all Item, thus the displaying block trend making each Item is evenly, and on the stepped display interface being presented at TreeMap control.In like manner, when difference between the displaying block of each Item is less, also can adjust according to above-mentioned optimal way the ratio that each Item accounts for all Item, thus the difference between the displaying block amplifying each Item, and on the stepped display interface being presented at TreeMap control.
Pass through the embodiment of the present invention, due to comparative result can be obtained by the magnitude relationship between the area ratio of more each bar Item, and the display situation of displaying block in TreeMap of each bar Item is optimized according to comparative result, reach and make the size of displayed entries in display control be tending towards the effect rationalized, and then reach and make the displaying block of each Item distributing equilibrium and effect attractive in appearance in TreeMap control.
Preferably, in embodiments of the present invention, the area ratio of the area ratio of the first displayed entries group, the area ratio of the second displayed entries group and the 3rd displayed entries group can be determined in the following manner:
S2, obtains displayed entries all in display control.
S4, sorts to all displayed entries in display control according to the size of the area ratio of each displayed entries in displayed entries all in display control, obtains displayed entries sequence.
S6, comes the area ratio A of area ratio sum as the first displayed entries group of all displayed entries of front M name using area ratio in displayed entries sequence.
S8, comes the area ratio B of area ratio sum as the second displayed entries group of all displayed entries of rear N name using area ratio in displayed entries sequence.
S10, comes the area ratio C of area ratio sum as the 3rd displayed entries group of all displayed entries of rear L name using area ratio in displayed entries sequence.Wherein, S=M+N, L < N, S represents the sum of Item in TreeMap.
Particularly, the displaying block of all Item can be sorted according to order from big to small or from small to large.Such as, sort according to the displaying block of order from big to small by all Item, obtain a sequence of the displaying block of Item.Suppose in this sequence, there are 100 Item, then according to above-mentioned embodiment, such as, the size of displaying block comes all Item of first 25 in this sequence area ratio can be added and obtain area ratio A, the area ratio size of displaying block being come rear 75 all Item is added and obtains area ratio B, and the area ratio addition size of displaying block being come rear 50 all Item obtains area ratio C.
Preferably, in embodiments of the present invention, optimize the display situation of displayed entries in display control according to comparative result and can comprise following several situation:
Situation 1: when A > B, according to the area ratio of each displayed entries in the sine function adjustment display control preset, obtains the first adjustment result; According to the display situation of the first adjustment each displayed entries of result optimizing in TreeMap.
When A > B, then show the skewness weighing apparatus of the Value of each Item in Items, also, excessive or too small Value may be there is.Now, if show the displaying block of Item in TreeMap according to the technical scheme in correlation technique, then there will be uneven display effect, also, it is excessive that some displaying block can show, and it is too small that some displaying block then can show.And adopt the present invention, then can adjust the size of the displaying block of Item according to above-mentioned sine function, thus reduce the display difference between each displaying block, reach the object avoiding displaying block excessive or too small.
Situation 2: when B > A > C, according to the area ratio of each displayed entries in the median adjustment display control preset, obtains the second adjustment result; According to the display situation of the second adjustment each displayed entries of result optimizing in TreeMap.
When B > A > C, then show that the distribution of the Value of each Item in Items is more balanced, now, when showing each Item with TreeMap, the size of the displaying block of each Item can steppedly distribute, and therefore shows better appearance.In this case, can be left intact, or, can will adjust the Value of each Item according to median.
Situation 3: when C > A, according to the area ratio of each displayed entries in the cosine function adjustment display control preset, obtains the 3rd adjustment result; According to the display situation of the 3rd adjustment each displayed entries of result optimizing in TreeMap.
When C > A, then show the Value value of each Item in Items all relatively, also, the difference between the Value value of each Item.Now, if show the displaying block of Item in TreeMap according to the technical scheme in correlation technique, then there will be the situation that the difference between displaying block is not easily discovered.And adopt the present invention, then can adjust the size of the displaying block of Item according to above-mentioned cosine function, thus increase the display difference between each displaying block, reach and avoid the difference between displaying block not easily to discover object.
Preferably, in embodiments of the present invention, the sine function preset, the median preset and the cosine function preset can be determined in the following manner:
S12, obtains the maximal value that presets and the minimum value that presets and obtains the maximal value of displayed entries area ratio and the minimum value of displayed entries area ratio.
The maximal value Max preset and minimum M in can be all empirical value, and the minimum value of the maximal value of displayed entries area ratio and displayed entries area ratio is the MinItem of MaxItem and Value of Value in each Item of actual displayed in TreeMap.
S14, according to the maximal value preset and the minimum value that presets and the maximal value of displayed entries area ratio and the minimum value determination intermediate value of displayed entries area ratio.
Wherein, can by following formula determination intermediate value: MidValue=Min+ (Max-Min)/(MaxItem-MinItem) * ItemValue.MidValue represents intermediate value, ItemValue represents the area ratio before displayed entries optimization, and Max represents the maximal value preset, and Min represents the minimum value preset, MaxItem represents the maximal value of displayed entries area ratio, the minimum value of MinItem displayed entries area ratio.
S16, determines the sine function preset, the median preset and the cosine function preset according to intermediate value.
Preferably, in embodiments of the present invention, the sine function preset, the median preset and the cosine function preset: Value=MidValue can be determined by following formula; Value=Sin (2*MidValue/ (PI*Max)); Value=cos ((2*MidValue)/(PI*Max)+1)+1; Wherein, Value represent displayed entries optimize after area ratio.
It should be noted that, can perform in the computer system of such as one group of computer executable instructions in the step shown in the process flow diagram of accompanying drawing, and, although show logical order in flow charts, but in some cases, can be different from the step shown or described by order execution herein.
According to embodiments of the invention, provide a kind of optimization device for showing displayed entries size in control, this optimization device being used for showing displayed entries size in control shows for the image conversion of data processing content.It should be noted that, what the embodiment of the present invention provided can performing for the optimization device showing displayed entries size in control by the embodiment of the present invention for the optimization method showing displayed entries size in control, the embodiment of the present invention also may be used for for the optimization device showing displayed entries size in control the optimization method for showing displayed entries size in control performing the embodiment of the present invention.
Fig. 2 is the schematic diagram of the optimization device for showing displayed entries size in control according to the embodiment of the present invention.As shown in Figure 2, this device comprises: acquiring unit 10, comparing unit 20 and optimization unit 30.
Acquiring unit 10 is for obtaining the area ratio of the displayed entries group in display control.Wherein, the area ratio of displayed entries group is the ratio that the area of displayed entries group accounts for total display area of display control, comprising: the area ratio of the area ratio of the first displayed entries group, the area ratio of the second displayed entries group and the 3rd displayed entries group.
It should be noted that, in embodiments of the present invention, display control can be the control of various ways, and such as, it can be TreeMap control.The present invention is elaborated below for TreeMap control.
During enforcement, the first displayed entries group can be the Item group in TreeMap control, and the second displayed entries group can be the 2nd Item group in TreeMap control, and the 3rd displayed entries group can be the 3rd Item group in TreeMap control.Accordingly, the area ratio of displayed entries group can be the area of Item group in TreeMap control and the ratio of the area of TreeMap display interface.
It should be noted that, in each Item group, one or more Item can be comprised.In TreeMap control, each Item can be shown by the mode of displaying block, like this, not only can show the size of the Value corresponding to each Item intuitively, but also can show the difference between the Value corresponding to each bar Item intuitively.Such as, when Item represents website, Value corresponding to Item can be then web page browsing amount, like this, namely the size of the displaying block of the Item shown in TreeMap control represents the number of web page browsing amount, wherein, like this, the displaying block of Item is larger, then illustrate that the pageview of the webpage of the website represented by Item is larger.
Comparing unit 20, for comparing the area ratio of display first entry group, the magnitude relationship between the area ratio showing second entry group and the area ratio of the 3rd displayed entries group, obtains comparative result.Optimize unit 30 for optimizing the display situation of displayed entries in TreeMap according to comparative result.
Particularly, respectively by the size of the displaying block of an Item group, the 2nd Item group and the 3rd Item group, the magnitude relationship between them can be compared, obtain comparative result, and according to comparative result, optimize the display situation of each Item in TreeMap control.
Such as, when the displaying block of Item excessive or too small time, can adjust according to above-mentioned optimal way the ratio that each Item accounts for all Item, thus the displaying block trend making each Item is evenly, and on the stepped display interface being presented at TreeMap control.In like manner, when difference between the displaying block of each Item is less, also can adjust according to above-mentioned optimal way the ratio that each Item accounts for all Item, thus the difference between the displaying block amplifying each Item, and on the stepped display interface being presented at TreeMap control.
Pass through the embodiment of the present invention, due to comparative result can be obtained by the magnitude relationship between the area ratio of more each bar Item, and the display situation of displaying block in TreeMap of each bar Item is optimized according to comparative result, reach and make the size of displayed entries in display control be tending towards the effect rationalized, and then reach and make the displaying block of each Item distributing equilibrium and effect attractive in appearance in TreeMap control.
Preferably, in embodiments of the present invention, aforementioned optimization device can also comprise: the first determining unit.First determining unit is used for the area ratio determining the area ratio of the first displayed entries group, the area ratio of the second displayed entries group and the 3rd displayed entries group in the following manner, and aforementioned first determining unit can comprise: the first acquisition module, order module, the first determination module and the 3rd determination module.First acquisition module is for obtaining displayed entries all in display control; Order module is used for sorting to all displayed entries in display control according to the size of the area ratio of each displayed entries in displayed entries all in display control, obtains displayed entries sequence.First determination module is used for the area ratio A of area ratio sum as the first displayed entries group area ratio in displayed entries sequence being come all displayed entries of front M name.The area ratio sum that second determination module is used for area ratio in displayed entries sequence to come all displayed entries of rear N name is used for area ratio in displayed entries sequence to come the area ratio C of area ratio sum as the 3rd displayed entries group of all displayed entries of rear L name as area ratio B the 3rd determination module of the second displayed entries group.Wherein, S=M+N, L < N, S represents the sum of Item in TreeMap.
Particularly, the displaying block of all Item can be sorted according to order from big to small or from small to large.Such as, sort according to the displaying block of order from big to small by all Item, obtain a sequence of the displaying block of Item.Suppose in this sequence, there are 100 Item, then according to above-mentioned embodiment, such as, the size of displaying block comes all Item of first 25 in this sequence area ratio can be added and obtain area ratio A, the area ratio size of displaying block being come rear 75 all Item is added and obtains area ratio B, and the area ratio addition size of displaying block being come rear 50 all Item obtains area ratio C.
Preferably, in embodiments of the present invention, aforementioned optimization unit can comprise: the first adjusting module, the second adjusting module and the 3rd adjusting module.
First adjusting module is used for when A > B, according to the area ratio of each displayed entries in the sine function adjustment display control preset, obtains the first adjustment result; First optimizes module, for adjusting the display situation of each displayed entries of result optimizing in TreeMap according to first.When A > B, then show the skewness weighing apparatus of the Value of each Item in Items, also, excessive or too small Value may be there is.Now, if show the displaying block of Item in TreeMap according to the technical scheme in correlation technique, then there will be uneven display effect, also, it is excessive that some displaying block can show, and it is too small that some displaying block then can show.And adopt the present invention, then can adjust the size of the displaying block of Item according to above-mentioned sine function, thus reduce the display difference between each displaying block, reach the object avoiding displaying block excessive or too small.
Second adjusting module is used for when B > A > C, according to the area ratio of each displayed entries in the median adjustment display control preset, obtains the second adjustment result; Second optimizes module, for adjusting the display situation of each displayed entries of result optimizing in TreeMap according to second.When B > A > C, then show that the distribution of the Value of each Item in Items is more balanced, now, when showing each Item with TreeMap, the size of the displaying block of each Item can steppedly distribute, and therefore shows better appearance.In this case, can be left intact, or, can will adjust the Value of each Item according to median.
3rd adjusting module is used for when C > A, according to the area ratio of each displayed entries in the cosine function adjustment display control preset, obtains the 3rd adjustment result; 3rd optimizes module, for adjusting the display situation of each displayed entries of result optimizing in TreeMap according to the 3rd.When C > A, then show the Value value of each Item in Items all relatively, also, the difference between the Value value of each Item.Now, if show the displaying block of Item in TreeMap according to the technical scheme in correlation technique, then there will be the situation that the difference between displaying block is not easily discovered.And adopt the present invention, then can adjust the size of the displaying block of Item according to above-mentioned cosine function, thus increase the display difference between each displaying block, reach and avoid the difference between displaying block not easily to discover object.
Preferably, in embodiments of the present invention, aforementioned optimization device can also comprise: the second determining unit.Second determining unit, for determining the sine function preset, the median preset and the cosine function preset in the following manner, the second determining unit comprises: the second acquisition module, the 4th determination module and the 5th determination module.Second acquisition module is for obtaining the maximal value preset and the minimum value preset and obtaining the maximal value of displayed entries area ratio and the minimum value of displayed entries area ratio.The maximal value Max preset and minimum M in can be all empirical value.And the minimum value of the maximal value of displayed entries area ratio and displayed entries area ratio is the MinItem of MaxItem and Value of Value in each Item of actual displayed in TreeMap.4th determination module is used for according to the maximal value that presets and the minimum value preset and the maximal value of displayed entries area ratio and the minimum value determination intermediate value of displayed entries area ratio.Wherein, can by following formula determination intermediate value: MidValue=Min+ (Max-Min)/(MaxItem-MinItem) * ItemValue.MidValue represents intermediate value, ItemValue represents the area ratio before displayed entries optimization, and Max represents the maximal value preset, and Min represents the minimum value preset, MaxItem represents the maximal value of displayed entries area ratio, the minimum value of MinItem displayed entries area ratio.5th determination module is used for determining the sine function preset, the median preset and the cosine function preset according to intermediate value.
Preferably, in embodiments of the present invention, aforementioned 5th determination module is also for the sine function determining to preset by following formula, the median preset and the cosine function preset: Value=MidValue; Value=Sin (2*MidValue/ (PI*Max)); Value=cos ((2*MidValue)/(PI*Max)+1)+1; Wherein, Value represent displayed entries optimize after area ratio.
Obviously, those skilled in the art should be understood that, above-mentioned of the present invention each module or each step can realize with general calculation element, they can concentrate on single calculation element, or be distributed on network that multiple calculation element forms, alternatively, they can realize with the executable program code of calculation element, thus, they can be stored and be performed by calculation element in the storage device, or they are made into each integrated circuit modules respectively, or the multiple module in them or step are made into single integrated circuit module to realize.Like this, the present invention is not restricted to any specific hardware and software combination.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. for showing an optimization method for displayed entries size in control, it is characterized in that, comprising:
Obtain the area ratio of the displayed entries group in display control, the area ratio of described displayed entries group is the ratio that the area of displayed entries group accounts for total display area of display control, comprising: the area ratio of the area ratio of the first displayed entries group, the area ratio of the second displayed entries group and the 3rd displayed entries group;
The area ratio of more described display first entry group, magnitude relationship between the area ratio of described display second entry group and the area ratio of described 3rd displayed entries group, obtain comparative result; And
The display situation of displayed entries in described display control is optimized according to described comparative result.
2. the optimization method for showing displayed entries size in control according to claim 1, it is characterized in that, determine the area ratio of the area ratio of described first displayed entries group, described second displayed entries group and the area ratio of described 3rd displayed entries group in the following manner:
Obtain displayed entries all in described display control;
According to the size of the area ratio of each displayed entries in displayed entries all in described display control, all displayed entries in described display control are sorted, obtain displayed entries sequence;
Area ratio in described displayed entries sequence is come the area ratio A of area ratio sum as described first displayed entries group of all displayed entries of front M name;
Area ratio in described displayed entries sequence is come the area ratio B of area ratio sum as described second displayed entries group of all displayed entries of rear N name; And
Area ratio in described displayed entries sequence is come the area ratio C of area ratio sum as described 3rd displayed entries group of all displayed entries of rear L name,
Wherein, S=M+N, L < N, S represent the sum of displayed entries in described display control.
3. the optimization method for showing displayed entries size in control according to claim 2, is characterized in that, optimizes the display situation of displayed entries in described display control comprise according to described comparative result:
When A > B, adjust the area ratio of each displayed entries in described display control according to the sine function preset, obtain the first adjustment result; According to the display situation of the described first adjustment each displayed entries of result optimizing in described display control,
When B > A > C, adjust the area ratio of each displayed entries in described display control according to the median preset, obtain the second adjustment result; According to the display situation of the described second adjustment each displayed entries of result optimizing in described display control,
When C > A, adjust the area ratio of each displayed entries in described display control according to the cosine function preset, obtain the 3rd adjustment result; According to the display situation of the described 3rd adjustment each displayed entries of result optimizing in described display control.
4. the optimization method for showing displayed entries size in control according to claim 3, is characterized in that, the sine function preset described in determining in the following manner, described in the median that presets and the described cosine function preset:
Obtain the maximal value that presets and the minimum value that presets and obtain the maximal value of displayed entries area ratio and the minimum value of displayed entries area ratio;
According to the described maximal value that presets and the described minimum value that presets and the maximal value of described displayed entries area ratio and the minimum value determination intermediate value of described displayed entries area ratio;
The sine function preset described in determining according to described intermediate value, described in the median that presets and the described cosine function preset,
Wherein, described intermediate value is determined by following formula:
MidValue=Min+(Max-Min)/(MaxItem-MinItem)*ItemValue,
Wherein, MidValue represents intermediate value, ItemValue represents the area ratio before displayed entries optimization, the maximal value preset described in Max represents, the minimum value preset described in Min represents, MaxItem represents the maximal value of described displayed entries area ratio, the minimum value of displayed entries area ratio described in MinItem.
5. the optimization method for showing displayed entries size in control according to claim 4, is characterized in that, the sine function preset described in being determined by following formula, described in the median that presets and the described cosine function preset:
Value=MidValue;
Value=Sin(2*MidValue/(PI*Max));
Value=cos((2*MidValue)/(PI*Max)+1)+1;
Wherein, Value represent displayed entries optimize after area ratio.
6. for showing an optimization device for displayed entries size in control, it is characterized in that, comprising:
Acquiring unit, for obtaining the area ratio of the displayed entries group in display control, the area ratio of described displayed entries group is the ratio that the area of displayed entries group accounts for total display area of display control, comprising: the area ratio of the area ratio of the first displayed entries group, the area ratio of the second displayed entries group and the 3rd displayed entries group;
Comparing unit, for the area ratio of more described display first entry group, magnitude relationship between the area ratio of described display second entry group and the area ratio of described 3rd displayed entries group, obtains comparative result; And
Optimize unit, for optimizing the display situation of displayed entries in described display control according to described comparative result.
7. the optimization device for showing displayed entries size in control according to claim 6, it is characterized in that, described optimization device also comprises: the first determining unit, for determining the area ratio of the area ratio of described first displayed entries group, the area ratio of described second displayed entries group and described 3rd displayed entries group in the following manner, described first determining unit comprises:
First acquisition module, for obtaining displayed entries all in described display control;
Order module, sorts to all displayed entries in described display control for the size according to the area ratio of each displayed entries in displayed entries all in described display control, obtains displayed entries sequence;
First determination module, for coming the area ratio A of area ratio sum as described first displayed entries group of all displayed entries of front M name using area ratio in described displayed entries sequence;
Second determination module, for coming the area ratio B of area ratio sum as described second displayed entries group of all displayed entries of rear N name using area ratio in described displayed entries sequence; And
3rd determination module, for area ratio in described displayed entries sequence being come the area ratio C of area ratio sum as described 3rd displayed entries group of all displayed entries of rear L name,
Wherein, S=M+N, L < N, S represent the sum of displayed entries in described display control.
8. the optimization device for showing displayed entries size in control according to claim 7, is characterized in that, described optimization unit comprises:
First adjusting module, for when A > B, adjusts the area ratio of each displayed entries in described display control, obtains the first adjustment result according to the sine function preset; First optimizes module, for adjusting the display situation of each displayed entries of result optimizing in described display control according to described first,
Second adjusting module, for when B > A > C, adjusts the area ratio of each displayed entries in described display control, obtains the second adjustment result according to the median preset; Second optimizes module, for adjusting the display situation of each displayed entries of result optimizing in described display control according to described second,
3rd adjusting module, for when C > A, adjusts the area ratio of each displayed entries in described display control according to the cosine function preset, obtain the 3rd adjustment result; 3rd optimizes module, for adjusting the display situation of each displayed entries of result optimizing in described display control according to the described 3rd.
9. the optimization device for showing displayed entries size in control according to claim 8, it is characterized in that, described optimization device also comprises: the second determining unit, for preset described in determining in the following manner sine function, described in the median that presets and the described cosine function preset, described second determining unit comprises:
Second acquisition module, for obtaining the maximal value preset and the minimum value preset and obtaining the maximal value of displayed entries area ratio and the minimum value of displayed entries area ratio;
4th determination module, for the maximal value that presets described in basis and the described minimum value that presets and the maximal value of described displayed entries area ratio and the minimum value determination intermediate value of described displayed entries area ratio;
5th determination module, for preset described in determining according to described intermediate value sine function, described in the median that presets and the described cosine function preset,
Wherein, described intermediate value is determined by following formula:
MidValue=Min+(Max-Min)/(MaxItem-MinItem)*ItemValue,
Wherein, MidValue represents intermediate value, ItemValue represents the area ratio before displayed entries optimization, the maximal value preset described in Max represents, the minimum value preset described in Min represents, MaxItem represents the maximal value of described displayed entries area ratio, the minimum value of displayed entries area ratio described in MinItem.
10. the optimization device for showing displayed entries size in control according to claim 9, it is characterized in that, described 5th determination module also for preset described in being determined by following formula sine function, described in the median that presets and the described cosine function preset:
Value=MidValue;
Value=Sin(2*MidValue/(PI*Max));
Value=cos((2*MidValue)/(PI*Max)+1)+1;
Wherein, Value represent displayed entries optimize after area ratio.
CN201410770834.0A 2014-12-11 2014-12-11 For showing the optimization method and device of displayed entries size in control Active CN104462419B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410770834.0A CN104462419B (en) 2014-12-11 2014-12-11 For showing the optimization method and device of displayed entries size in control

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410770834.0A CN104462419B (en) 2014-12-11 2014-12-11 For showing the optimization method and device of displayed entries size in control

Publications (2)

Publication Number Publication Date
CN104462419A true CN104462419A (en) 2015-03-25
CN104462419B CN104462419B (en) 2018-02-02

Family

ID=52908454

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410770834.0A Active CN104462419B (en) 2014-12-11 2014-12-11 For showing the optimization method and device of displayed entries size in control

Country Status (1)

Country Link
CN (1) CN104462419B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110865807A (en) * 2018-08-27 2020-03-06 北京京东金融科技控股有限公司 Active page creation system, method, device and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6456305B1 (en) * 1999-03-18 2002-09-24 Microsoft Corporation Method and system for automatically fitting a graphical display of objects to the dimensions of a display window
CN101382887A (en) * 2008-09-19 2009-03-11 金蝶软件(中国)有限公司 Method and apparatus for regulating interface layout
CN103280208A (en) * 2013-06-07 2013-09-04 珠海金山办公软件有限公司 Method and device for automatically adjusting text display size

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6456305B1 (en) * 1999-03-18 2002-09-24 Microsoft Corporation Method and system for automatically fitting a graphical display of objects to the dimensions of a display window
CN101382887A (en) * 2008-09-19 2009-03-11 金蝶软件(中国)有限公司 Method and apparatus for regulating interface layout
CN103280208A (en) * 2013-06-07 2013-09-04 珠海金山办公软件有限公司 Method and device for automatically adjusting text display size

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
BENJAMIN B.BEDERSON ET AL.: "Ordered and quantum treemaps:Making effective use of 2D space to display hierarchies", 《ACM TRANSACTIONS ON GRAPHOCS(TOG)》 *
毋晓志: "空间优化的图可视化方法研究", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110865807A (en) * 2018-08-27 2020-03-06 北京京东金融科技控股有限公司 Active page creation system, method, device and storage medium

Also Published As

Publication number Publication date
CN104462419B (en) 2018-02-02

Similar Documents

Publication Publication Date Title
US10186054B2 (en) Automatic image-based recommendations using a color palette
US10831819B2 (en) Hue-based color naming for an image
US20170084053A1 (en) Color name generation from images and color palettes
US20160104303A1 (en) Image-based color palette generation
US20150379743A1 (en) Image-based color palette generation
CN102707883B (en) The method and apparatus of icon intelligent display
CN105933550A (en) Brightness adjustment method, brightness adjustment device and mobile terminal
CN102073650A (en) Adaptive adjustment method and equipment for webpage
CN104618813A (en) Barrage information processing method, client and service platform
CN101620715A (en) Method and system for publishing intelligent advertisement
CN103617599B (en) A kind of based on grid deformation optimized image Non-uniformed mapping method
CN106202089B (en) Method and equipment for determining picture quality and webpage display
JP5891339B1 (en) Information processing apparatus, information processing method, and information processing program
CN102955794A (en) Method and device for displaying click condition of web page
EP3328041A1 (en) Clothes matching recommendation method and smart terminal
CN101950241A (en) Method and equipment for automatically adjusting visual characteristic of page
CN108170431B (en) Navigation label window color setting method and device
CN106354855A (en) Recommendation method and system
CN106777143A (en) A kind of news Aggreagation method and news Aggreagation server
CN108171568B (en) Garment recommendation method and system based on knowledge base
CN104536964B (en) Network data methods of exhibiting and device
CN104331490B (en) network data processing method and device
CN104462419A (en) Optimization method and device of sizes of display items in display control
CN104461634A (en) Device and method for loading share module on webpage
US9613294B2 (en) Control of computer vision pre-processing based on image matching using structural similarity

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Optimization method and device of sizes of display items in display control

Effective date of registration: 20190531

Granted publication date: 20180202

Pledgee: Shenzhen Black Horse World Investment Consulting Co., Ltd.

Pledgor: Beijing Guoshuang Technology Co.,Ltd.

Registration number: 2019990000503

CP02 Change in the address of a patent holder
CP02 Change in the address of a patent holder

Address after: 100083 No. 401, 4th Floor, Haitai Building, 229 North Fourth Ring Road, Haidian District, Beijing

Patentee after: BEIJING GRIDSUM TECHNOLOGY Co.,Ltd.

Address before: 100086 Beijing city Haidian District Shuangyushu Area No. 76 Zhichun Road cuigongfandian 8 layer A

Patentee before: BEIJING GRIDSUM TECHNOLOGY Co.,Ltd.