The arrangement display methods and device of graphical interfaces
Technical field
The present invention relates to computer realms, in particular to the arrangement display methods and device of a kind of graphical interfaces.
Background technology
In daily software development process, application developer often after being developed to software function, also wants
Exploitation is designed to front end display interface.In the exploitation debugging stage, not only the reliability of software function is tested, also
The compatibility and aesthetics of front-end interface are verified.
For application developer, the work of designing and developing of front end display interface often can not be handy, very
Difficulty also takes into account aesthetics while ensureing front end display interface compatibility.Every time after being finished to functional development, also to spend
Take the exploitation that a large amount of time and efforts repeats front end display interface, causes the waste of application developer's resource.
Further, if when multiple developers develop the same software, it is difficult to which unified each program is opened
Send out the consistency for the front end display interface that staff development comes out.
For designer, intention the result is that various, from intention generate to final engineering drawing presentation all
It is to need by a large amount of scale conversion and setting.There is a large amount of customization in the design simultaneously and the design of individual character diversification is general
It reads, increases the workload of designer in multi-platform design in this way.For consultant, need largely seek advice from result
The drawing tasks for being converted to the figure being easily understood, the workload for handling graphical interfaces are very huge.User is used with regard to interface
For, it is desirable to learning cost and the implementation cost for making the operation interface with oneself individual character are all very high.
It is needed for each using user for designer in the prior art, technical staff, consultant and interface
The problem of front-end interface carries out overlapping development, and caused development efficiency is low, waste of manpower resource not yet proposes effective solution at present
Certainly scheme.
Invention content
The main purpose of the present invention is to provide the arrangement display methods and device of a kind of graphical interfaces, to solve existing skill
Designer, technical staff, consultant and interface need to carry out repeating to open for each front-end interface using user in art
The problem of hair, caused development efficiency is low, waste of manpower resource.
To achieve the goals above, one side according to the ... of the embodiment of the present invention provides a kind of arrangement of graphical interfaces
Display methods.This method includes:Read the screen resolution of screen;Graphical interfaces is divided according to screen resolution, it is raw
At arrangement grid;Obtaining needs data content collection to be shown;According to data content collection, acquisition is matched with data content collection
Square composite arrange template, wherein square composite arrangement template, will be different size of for being characterized in graphical interfaces
Square icon is combined into rectangle icon set by scheduled icon arrangement, and the arrangement display methods shown, row
Row grid is used to characterize the base unit for calculating each square icon length of side in square composite arrangement template;By data
Properties collection is arranged template according to square composite and is arranged in the form of rectangle icon set to data content, and rectangle is generated
Display unit;Rectangular display unit is carried out arrangement according to scheduled unit arrangement template to show.
To achieve the goals above, another aspect according to the ... of the embodiment of the present invention provides a kind of arrangement of graphical interfaces
Display device, the device include:Read module, the screen resolution for reading screen;First generation module, for according to screen
Curtain resolution ratio divides graphical interfaces, generates arrangement grid;First acquisition module is needed for obtaining in data to be shown
Hold set;Second acquisition module, for according to data content collection, obtaining and being arranged with the matched square composite of data content collection
Row template, wherein square composite arrangement template is for being characterized in graphical interfaces, by different size of square icon by pre-
Fixed icon arrangement is combined into rectangle icon set, and the arrangement display methods shown, and arrangement grid is for characterizing
Base unit in square composite arrangement template for calculating each square icon length of side;Second generation module, being used for will
Data content collection is arranged template according to square composite and is arranged in the form of rectangle icon set to data content, is generated
Rectangular display unit;Display module is shown for rectangular display unit to be carried out arrangement according to scheduled unit arrangement template.
According to inventive embodiments, by the screen resolution for reading screen;Graphical interfaces is carried out according to screen resolution
It divides, generates arrangement grid;Obtaining needs data content collection to be shown;According to data content collection, acquisition and data content
The square composite of sets match arranges template, wherein square composite arrangement template, will not for being characterized in graphical interfaces
Square icon with size is combined into rectangle icon set by scheduled icon arrangement, and the arrangement shown is shown
Method, arrangement grid are used to characterize in square composite arrangement template for calculating the substantially single of each square icon length of side
Position;Data content collection is arranged template according to square composite to arrange in the form of rectangle icon set data content
Row generate rectangular display unit;Rectangular display unit is carried out arrangement according to scheduled unit arrangement template to show, is solved existing
There are designer in technology, technical staff, consultant and interface to need to carry out weight for each front-end interface using user
The problem of multiple exploitation, caused development efficiency is low, waste of manpower resource.The data content shown as needed is realized to give birth to automatically
At the effect with the matched graphical interfaces of data content.
Description of the drawings
The attached drawing constituted part of this application is used to provide further understanding of the present invention, schematic reality of the invention
Example and its explanation are applied for explaining the present invention, is not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart of the arrangement display methods of according to embodiments of the present invention one graphical interfaces;
Fig. 2 is the structural schematic diagram of the arrangement display device of according to embodiments of the present invention two graphical interfaces;And
Fig. 3 is the structural schematic diagram of the arrangement display device of according to embodiments of the present invention two preferred graphical interfaces.
Specific implementation mode
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase
Mutually combination.The present invention will be described in detail below with reference to the accompanying drawings and embodiments.
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention
Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only
The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people
The every other embodiment that member is obtained without making creative work should all belong to the model that the present invention protects
It encloses.
It should be noted that term " first " in description and claims of this specification and above-mentioned attached drawing, "
Two " etc. be for distinguishing similar object, without being used to describe specific sequence or precedence.It should be appreciated that using in this way
Data can be interchanged in the appropriate case, so as to the embodiment of the present invention described herein.In addition, term " comprising " and " tool
Have " and their any deformation, it is intended that cover it is non-exclusive include, for example, containing series of steps or unit
Process, method, system, product or equipment those of are not necessarily limited to clearly to list step or unit, but may include without clear
It is listing to Chu or for these processes, method, product or equipment intrinsic other steps or unit.
Embodiment 1
An embodiment of the present invention provides a kind of arrangement display methods of graphical interfaces.
Fig. 1 is the flow chart of the arrangement display methods of graphical interfaces according to the ... of the embodiment of the present invention.As shown in Figure 1, the party
Method includes that steps are as follows:
Step S11 reads the screen resolution of screen.
Specifically, S11, acquisition are currently used in the screen resolution of the screen of display graphical interfaces through the above steps.
Step S13 divides graphical interfaces according to screen resolution, generates arrangement grid.
Specifically, S13 is carried out graphical interfaces with web form according to the screen resolution of screen through the above steps
It divides.Graphical interfaces is divided into several square areas at predefined intervals, obtains use corresponding with screen resolution
In the arrangement grid of arrangement icon.
In practical application, common screen resolution and screen proportion only have several.It can be previously according to screen
Resolution ratio setting it is corresponding with screen resolution arrange mesh generation scheme, differentiated in various screens with improving graphical interfaces
Good display effect can be obtained on the screen of rate.
Step S15, obtaining needs data content collection to be shown.
Specifically, S15, acquisition need the data content collection shown by graphical interfaces through the above steps, lead to
The data content for needing content quantity to be shown, and shown can be determined by crossing data content collection.
Step S17 is obtained according to data content collection and is arranged template with the matched square composite of data content collection,
Wherein, different size of square icon is pressed scheduled figure by square composite arrangement template for being characterized in graphical interfaces
The arrangement display methods that mark arrangement mode is combined into rectangle icon set, and is shown, arrangement grid is for characterizing square
Base unit in assembled arrangement template for calculating each square icon length of side.
Specifically, S17 through the above steps, by pre-set square composite arrangement template with by data content collection
Determining need content quantity to be shown is matched, and obtains arranging template with the matched square composite of data content collection.
Wherein, the arrangement mode of square composite template, firstly, it is necessary to determine the pros for determining initial position on arrangement grid
The position of shape icon.Then, around square icon, at least one square icon is arranged.Square icon is used for
Data content in display data content set.The quantity and data of the square icon in template are arranged by square composite
Data content in properties collection is matched, and obtains arranging template with the matched square composite of data content collection.It is square
The length of side of each square icon in shape assembled arrangement template is set as arranging the integral multiple of the base unit of grid, therefore needs
Base unit by arranging grid is calculated square composite and arranges in template, and each icon is specific in display interface
Display location and size.
In practical application, the content quantity that can be shown as needed pre-sets different square composite rows
Row template.With for providing different display modes the case where needing the content-data to different number to show, to real
Now preferably display effect.
Data content collection is arranged template to data content with rectangle icon set by step S19 according to square composite
Form arranged, generate rectangular display unit.
Specifically, above-mentioned steps S19 arranges the data in data content according to the square composite obtained through overmatching
Row generate the rectangular display unit being made of the square icon of multiple and different sizes.
Rectangular display unit is carried out arrangement according to scheduled unit arrangement template and shown by step S21.
Specifically, above-mentioned steps S21, the data in data content are shown with the rectangle that square composite arrangement template is constituted
Show unit.When the rectangular display unit of generation is greater than or equal to two, because of the number of the data content in data content collection
Amount is different, so the shapes and sizes of the display unit corresponding to different data properties collection are also different.According to display unit
The length of side is arranged and is shown to each display unit.
In practical application, and list can be set in advance in by the way that the ratio of each display unit length of side is calculated
Length of side ratio in identical permutation template is matched, and each display unit is carried out arrangement according to matching result and is shown.Also may be used
To pre-set fixed display unit size and position of display unit in unit arrangement template, by the display list of each generation
Member carries out arrangement by uniform zoom, according to pre-set template arrangement mode and shows.Certainly, unit arrangement template can also
The quantity of the rectangular display unit shown as needed is arranged multiple units and arranges template, to reach better real effect.
S11, first according to the screen resolution of different screen, carries out graphical interfaces to step S21 through the above steps
It divides, is divided into the arrangement grid for arranging icon corresponding with screen resolution.Then, by pre-set square group
It closes arrangement template to be matched with the attribute information of data content collection, obtains the square composite suitable for data content collection
Template is arranged, finally, by each need data content to be shown in data content collection according to the arrangement grid of division, is generated
Rectangular display unit.According to the length of side of each rectangular display unit, rectangular display unit is arranged into template according to scheduled unit
It is shown.
In practical application, it is only necessary to determine the data content shown in graphical interfaces, we by application developer
Method can arrange template according to a set of applicable square composite of screen resolution and need content obtaining to be shown of screen.
Data content is generated into rectangular display unit in the form of at least two square icons.When there is multiple rectangular display units,
Also further arrangement can be carried out to each rectangular display unit to show.
In summary, the present invention solves designer, technical staff, consultant and interface in the prior art and uses
User needs to carry out overlapping development for the problem that each front-end interface, and caused development efficiency is low, waste of manpower resource, realizes
The data content of display as needed automatically generates the effect with the matched graphical interfaces of data content.
Preferably, in the above embodiments of the present application, rectangular display unit is arranged into mould according to scheduled unit in step S21
Plate carries out arranging the step of showing:
Step S211 determines the element number of rectangular display unit.
Step S213 is obtained and is arranged template with the matched pre-set unit of element number.
Rectangular display unit is carried out arrangement according to unit arrangement template and shown by step S215.
Specifically, S211 to step S215, the rectangular display unit for being directed to generation are more than or wait through the above steps
In two situations, can be obtained pre-set with element number phase according to the element number for holding display unit of generation
Same unit arranges template, by each rectangular display unit, carries out arrangement according to the arrangement mode in unit arrangement template and shows.
Preferably, in the above embodiments of the present application, graphical interfaces is divided according to screen resolution in step S13,
It generates in arrangement grid, step may include:
Step S131 determines the base unit a for dividing graphical interfaces according to screen resolution.
Step S133 divides graphical interfaces according to base unit a, graphical interfaces is divided into and is made of square
Arrangement grid, wherein the square length of side be base unit a.
Specifically, above-mentioned steps S131 to step S133, is confirmed by screen resolution and is suitable for current screen resolution ratio
For dividing the base unit a of graphical interfaces.Carry out horizontal and vertical draw respectively according to base unit a to graphical interfaces
Point, graphical interfaces is divided into the arrangement grid being made of the square that the length of side is a.Base unit is determined according to screen resolution
The specific steps of a can be:Lateral, longitudinal pixel number of screen is determined according to resolution ratio, and then according to lateral, longitudinal pixel number
Graphical interfaces is divided, several squares that the length of side is a pixel are laterally obtained, it is a pixel longitudinally to obtain the length of side
Several squares of point.
In practical application, each square icon can be determined by the arrangement grid divided to graphical interfaces
Position.In the design process to square etc. than arrangement template, it is only necessary to determine each icon is opposite in arranging grid
Position need not design each icon in individual indicating template or adjusting template for each screen resolution again
Absolute position in screen.
Preferably, in the above embodiments of the present application, data content collection includes at least:Data content and with data content pair
The preset icon attribute answered obtains and the matched square composite of data content collection in step S17 according to data content collection
It arranges in template, step may include:
Step S171 determines the quantity for the data content that data content collection includes according to data content collection.
Step S173, the number of icons that the quantity of data content is arranged to template definition with square composite match,
It obtains arranging template with the matched square composite of data content collection.
Step S175, by the preset icon attribute of data content respectively with square composite arrange template in each icon
Corresponding preset icon attribute is matched, and display location of the data content in square composite arranges template is obtained.
Specifically, S171 to step S175 through the above steps, the data content collection got is analyzed, is obtained
The quantity for the data content for including in data content collection.The aobvious of the square icon of template definition is arranged by square composite
Registration amount is matched with the quantity for the data content that data content collection is included, and is determined matched just with data content collection
Square combination arranges template.The icon attribute of data curriculum offering and the square composite will be arranged in advance in data content collection
Each location drawing target attribute is matched in row template, so that it is determined that each data content is in square in data content collection
Display location in assembled arrangement template.Wherein, the advance icon attribute to data curriculum offering in data content collection can
Be application developer in the process of development, to the data content when showing particular/special requirement, the icon attribute of setting
Value.
In practical application, the content quantity for including in data content collection is random, it is difficult to be directed to each case
Design a set of exclusive square composite arrangement template.So can be every when square composite arrangement template is arranged
A square composite arrangement template-setup one is applicable in the applicable section of content quantity, to expand the applicable model of each template
It encloses.
With, by four need data contents to be shown, and preset icon attribute is pre-set in data content collection
It is illustrated for the preset icon length of side.Determine that the quantity of the data content in data content collection is four first.Then it obtains
It is applicable in the square composite arrangement template that section includes four.Finally, according to pre-set default figure in preset icon attribute
The length of side that the target length of side and square composite arrange the square icon in template is matched, obtain the preset icon length of side with just
Square combination arranges the matching result on square icon side in template.Certainly, preset icon attribute can also be data content
Display priority etc..
Preferably, in the above embodiments of the present application, before the screen resolution that step S11 reads screen, method is also wrapped
It includes:
Step S10, setting square composite arrange template, and square composite arrangement template is for determining data content collection
In content-data display location and square composite icon for displays content data icon sizes.
Specifically, S10 pre-sets different square groups for content quantity to be shown is needed through the above steps
Close arrangement template.The display location of each icon and the display size of each icon are defined in square composite arrangement template.
Preferably, in the above embodiments of the present application, in step S10 setting square composite arrangement template, step can be with
Including:
Step S101 sets the icon spacing between square icon as a.
Step S103 is set in square icon for defining the square initial graph target length of side of initial position as a*
N, wherein n is positive integer.
Step S105 sets square icon for the length of side of the display icon of the square of display data content as a*
N ', wherein n ' is positive integer.
Step S107 sets square icon according to the initial graph target length of side, the length of side and icon spacing of display icon
Arrangement position.
Specifically, S101 to step S107 through the above steps, the step of arranging template to setting square composite, carries out
Explanation.First, the icon spacing between square icon is set to a, wherein a is base unit, and a is opposite with screen resolution
It answers.Then, it is determined that position and the size of initial rectangular icon in graphical interfaces.According to the position of initial square icon and
Size sets several square icons, these squares successively in the horizontal direction and longitudinal direction of initial square icon
The length of side all be a integral multiple.Finally, according to above-mentioned initial graph target size and wide histogram target size, setting is each
Wide histogram target relative position.
In practical application, by setting the length of side to this method of base unit a, stencil design people can be facilitated
Member positions the position of each icon in template, without in order to ensure that icon is shown on the screen of different screen resolutions
Accuracy, it is thus necessary to determine that in the specific coordinate value of each onscreen icons.
Embodiment 2
The embodiment of the present invention additionally provides a kind of arrangement display device of graphical interfaces, as shown in Fig. 2, the device can wrap
It includes:Read module 31, the first generation module 33, the first acquisition module 35, the second acquisition module 37, the second generation module 39 and aobvious
Show module 41.
Wherein, read module 31, the screen resolution for reading screen.
Specifically, by above-mentioned read module 31, the screen resolution for the screen for being currently used in display graphical interfaces is obtained.
First generation module 33 generates arrangement grid for being divided to graphical interfaces according to screen resolution.
Specifically, by above-mentioned first generation module 33, according to the screen resolution of screen, to graphical interfaces with net-shaped
Formula is divided.Graphical interfaces is divided into several square areas at predefined intervals, is obtained and screen resolution pair
The arrangement grid for arranging icon answered.
In practical application, common screen resolution and screen proportion only have several.It can be previously according to screen
Resolution ratio setting it is corresponding with screen resolution arrange mesh generation scheme, differentiated in various screens with improving graphical interfaces
Good display effect can be obtained on the screen of rate.
First acquisition module 35 needs data content collection to be shown for obtaining.
Specifically, by above-mentioned first acquisition module 35, the data content for needing to be shown by graphical interfaces is obtained
Set, can be determined by data content collection needs content quantity to be shown, and the data content shown.
Second acquisition module 37, for according to data content collection, obtaining and the matched square group of data content collection
Close arrangement template, wherein square composite arrangement template is for being characterized in graphical interfaces, by different size of square icon
The arrangement display methods for being combined into rectangle icon set by scheduled icon arrangement, and being shown, arrangement grid are used for
Base unit in characterization square composite arrangement template for calculating each square icon length of side.
Specifically, by above-mentioned second acquisition module 37, by pre-set square composite arrangement template and by data
The need content quantity to be shown that properties collection determines is matched, and obtains arranging with the matched square composite of data content collection
Row template.Wherein, the arrangement mode of square composite template, firstly, it is necessary to be determined on arrangement grid for determining initial bit
The position for the square icon set.Then, around square icon, at least one square icon is arranged.Square
Icon is used for the data content in display data content set.The number of the square icon in template is arranged by square composite
Amount is matched with the data content in data content collection, obtains arranging mould with the matched square composite of data content collection
Plate.The length of side of each square icon in square composite arrangement template is set as arranging the integer of the base unit of grid
Times, therefore need to be calculated in square composite arrangement template by arranging the base unit of grid, each icon is on display circle
It is particularly shown position and size in face.
In practical application, the content quantity that can be shown as needed pre-sets different square composite rows
Row template.With for providing different display modes the case where needing the content-data to different number to show, to real
Now preferably display effect.
Second generation module 39, for data content collection to be arranged template to data content with square according to square composite
The form of shape icon set is arranged, and rectangular display unit is generated.
Specifically, the data in data content are obtained just according to through overmatching by above-mentioned second generation module 39
Square combination arranges, and generates the rectangular display unit being made of the square icon of multiple and different sizes.
Display module 41 is shown for rectangular display unit to be carried out arrangement according to scheduled unit arrangement template.
Specifically, by above-mentioned display module 41, the data in data content are constituted with square composite arrangement template
Rectangular display unit.When the rectangular display unit of generation is greater than or equal to two, because of the data in data content collection
The quantity of content is different, so the shapes and sizes of the display unit corresponding to different data properties collection are also different.According to aobvious
The length of side for showing unit is arranged and is shown to each display unit.Certainly, unit arrangement template can also be shown as needed
The quantity of rectangular display unit multiple units be set arrange templates, have reached better real effect.
In practical application, and list can be set in advance in by the way that the ratio of each display unit length of side is calculated
Length of side ratio in identical permutation template is matched, and each display unit is carried out arrangement according to matching result and is shown.Also may be used
To pre-set fixed display unit size and position of display unit in unit arrangement template, by the display list of each generation
Member carries out arrangement by uniform zoom, according to pre-set template arrangement mode and shows.
Pass through above-mentioned read module 31, the first generation module 33, the first acquisition module 35, the second acquisition module 37, second
Generation module 39 and display module 41 divide graphical interfaces first according to the screen resolution of different screen, are divided into
The arrangement grid for arranging icon corresponding with screen resolution.Then, pre-set square composite is arranged into template
It is matched with the attribute information of data content collection, obtains the square composite arrangement template suitable for data content collection,
Finally, each need data content to be shown in data content collection is generated rectangle and shown according to the arrangement grid of division
Unit.According to the length of side of each rectangular display unit, rectangular display unit is shown according to scheduled unit arrangement template.
In practical application, it is only necessary to determine the data content shown in graphical interfaces, we by application developer
Method can arrange template according to a set of applicable square composite of screen resolution and need content obtaining to be shown of screen.
Data content is generated into rectangular display unit in the form of at least two square icons.When there is multiple rectangular display units,
Also further arrangement can be carried out to each rectangular display unit to show.
In summary, the present invention solves designer, technical staff, consultant and interface in the prior art and uses
User needs to carry out overlapping development for the problem that each front-end interface, and caused development efficiency is low, waste of manpower resource, realizes
The data content of display as needed automatically generates the effect with the matched graphical interfaces of data content.
Preferably, in the above embodiments of the present application, above-mentioned display module 41 includes:First sub- determining module 411, sub- acquisition
Module 413 and sub- display module 415.
Wherein, the first sub- determining module 411, the element number for determining rectangular display unit.
Sub-acquisition module 413 arranges template for obtaining with the matched pre-set unit of element number.
Sub- display module 415 is shown for rectangular display unit to be carried out arrangement according to unit arrangement template.
Specifically, by the above-mentioned first sub- determining module 411, sub-acquisition module 413 and sub- display module 415, it is directed to
The rectangular display unit of generation is more than or equal to two situations, can be according to the unit number for holding display unit of generation
Amount obtains pre-set unit arrangement template identical with element number and arranges each rectangular display unit according to unit
Arrangement mode in template carries out arrangement and shows.
Further, following steps can be executed by above-mentioned first generation module 33:
First, according to screen resolution, the base unit a for dividing graphical interfaces is determined.Then, according to base unit
A divides graphical interfaces, and graphical interfaces is divided by the arrangement grid that forms of square, wherein the square length of side is
Base unit a.
Specifically, in above-mentioned steps, confirmed suitable for current screen resolution ratio for dividing by screen resolution
The base unit a of graphical interfaces.Horizontal and vertical division is carried out respectively according to base unit a to graphical interfaces, by figure circle
Face is divided into the arrangement grid being made of the square that the length of side is a.
In practical application, each square icon can be determined by the arrangement grid divided to graphical interfaces
Position.In the design process to square etc. than arrangement template, it is only necessary to determine each icon is opposite in arranging grid
Position need not design each icon in individual indicating template or adjusting template for each screen resolution again
Absolute position in screen.Determine that the specific steps of base unit a can be according to screen resolution:It is determined according to resolution ratio
Lateral, longitudinal pixel number of screen, and then graphical interfaces is divided according to lateral, longitudinal pixel number, laterally obtain the length of side
For several squares of a pixel, several squares that the length of side is a pixel are longitudinally obtained.
Preferably, in the above embodiments of the present application, above-mentioned second acquisition module 37 includes:Second sub- determining module 371,
One sub- matching module 373 and the second sub- matching module 375.
Wherein, the second sub- determining module 371, for according to data content collection, determining the number that data content collection includes
According to the quantity of content, wherein data content collection includes at least:Data content and preset icon category corresponding with data content
Property.
First sub- matching module 373, the icon for the quantity of data content and square composite to be arranged to template definition
Quantity is matched, and obtains arranging template with the matched square composite of data content collection.
Second sub- matching module 375, for the preset icon attribute of data content to be arranged mould with square composite respectively
Preset icon attribute corresponding with each icon is matched in plate, obtains data content in square composite arranges template
Display location.
Specifically, passing through the above-mentioned second sub- determining module 371, the first sub- matching module 373 and the second sub- matching module
375, the data content collection got is analyzed, the quantity of data content for including in data content collection is obtained.It is logical
Cross the data content that the display number of the square icon of square composite arrangement template definition is included with data content collection
Quantity matched, determine and arrange template with the matched square composite of data content collection.It will be pre- in data content collection
First each location drawing target attribute in template is arranged with the square composite to the icon attribute of data curriculum offering to match,
So that it is determined that display location of each data content in square composite arranges template in data content collection.Wherein, data
The advance icon attribute to data curriculum offering in properties collection can be application developer in the process of development, to this
When showing particular/special requirement of data content, the icon attribute value of setting.
In practical application, the content quantity for including in data content collection is random, it is difficult to be directed to each case
Design a set of exclusive square composite arrangement template.So can be every when square composite arrangement template is arranged
A square composite arrangement template-setup one is applicable in the applicable section of content quantity, to expand the applicable model of each template
It encloses.
With, by four need data contents to be shown, and preset icon attribute is pre-set in data content collection
It is illustrated for the preset icon length of side.Determine that the quantity of the data content in data content collection is four first.Then it obtains
It is applicable in the square composite arrangement template that section includes four.Finally, according to pre-set default figure in preset icon attribute
The length of side that the target length of side and square composite arrange the square icon in template is matched, determine the preset icon length of side with just
Square combination arranges the matching result on square icon side in template.Certainly, preset icon attribute can also be data content
Display priority etc..
Preferably, in the above embodiments of the present application, as shown in figure 3, device can also include:Setting module 30.
Wherein, setting module 30 arrange template for setting square composite, and square composite arrangement template is for determining
The icon of the display location of content-data in data content collection and square composite icon for displays content data is big
It is small.
Specifically, by above-mentioned setting module 30, for content quantity to be shown is needed, different squares is pre-set
Assembled arrangement template.The display of display location and each icon that each icon is defined in square composite arrangement template is big
It is small.
Further, may include by the step of setting template of above-mentioned setting module 30:
First, the icon spacing between square icon is set as a.Then, it sets initial for defining in square icon
The initial graph target length of side of the square of position is a*n, wherein n is positive integer.Further, square icon is set for showing
Show that the length of side of the display icon of the square of data content is a*n ', wherein n ' is positive integer.Finally, according to initial graph target
The length of side, the length of side and icon spacing for showing icon set the arrangement position of square icon.
Specifically, through the above steps, the step of setting square composite arrangement template, is illustrated.It first, will just
Icon spacing between square icon is set as a, wherein a is base unit, and a is corresponding with screen resolution.Then, it is determined that
The position of initial rectangular icon in graphical interfaces and size.According to the position of initial square icon and size, initially just
The horizontal direction and longitudinal direction of square icon set several square icons successively, and the length of side of these squares is all a's
Integral multiple.Finally, according to above-mentioned initial graph target size and wide histogram target size, each wide histogram target is set
Relative position.
In practical application, by setting the length of side to this method of base unit a, stencil design people can be facilitated
Member positions the position of each icon in template, without in order to ensure that icon is shown on the screen of different screen resolutions
Accuracy, it is thus necessary to determine that in the specific coordinate value of each onscreen icons.
Embodiment of the method for simple description, therefore is all expressed as a series of combination of actions, but art technology
Personnel should know that the present invention is not limited by the described action sequence, because according to the present invention, certain steps can adopt
With other sequences or it is carried out at the same time.Secondly, those skilled in the art should also know that, embodiment described in this description is equal
Belong to preferred embodiment, involved action and module are not necessarily essential to the invention.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment
Point, it may refer to the associated description of other embodiment.
In several embodiments provided herein, it should be understood that disclosed device, it can be by another way
It realizes.For example, the apparatus embodiments described above are merely exemplary, for example, the unit division, it is only a kind of
Division of logic function, formula that in actual implementation, there may be another division manner, such as multiple units or component can combine or can
To be integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual
Coupling, direct-coupling or communication connection can be by some interfaces, the INDIRECT COUPLING or communication connection of device or unit,
Can be electrical or other forms.
The unit illustrated as separating component may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, you can be located at a place, or may be distributed over multiple
In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme
's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also
It is that each unit physically exists alone, it can also be during two or more units be integrated in one unit.Above-mentioned integrated list
The form that hardware had both may be used in member is realized, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can be stored in a computer read/write memory medium.Based on this understanding, technical scheme of the present invention is substantially
The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words
It embodies, which is stored in a storage medium, including some instructions are used so that a computer
Equipment (can be personal computer, mobile terminal, server or network equipment etc.) executes side described in each embodiment of the present invention
The all or part of step of method.And storage medium above-mentioned includes:USB flash disk, read-only memory (ROM, Read-Only Memory),
Random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disc or CD etc. are various to be stored
The medium of program code.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field
For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, any made by repair
Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.