Summary of the invention
The invention provides a kind of method and device of dynamic assignment head image information, in order to enrich the display format of large data.
The invention provides a kind of method of dynamic assignment head image information, comprising: the circular seat region being configured for display head image information; Real-time Obtaining is to the head image information of large data; Described head image information is assigned to described circular seat region.
Wherein, Real-time Obtaining to large data head image information after, also comprise: Real-time Obtaining is to the name information of large data.
Wherein, described head image information is assigned to described circular seat region, comprises: according to the size of described head portrait, determine the most multidisplay head portrait number in described circular seat region; Successively the head image information of described number is assigned to described circular seat region.
Wherein, after successively the head image information of described number being assigned to described circular seat region, also comprise: the position coordinate value determining to be assigned to each head portrait on described circular seat region.
Wherein, after determining to be assigned to the position coordinate value of each head portrait on described circular seat region, also comprise: be each head portrait allocation position coordinate figure on circular seat region.
The present invention also provides a kind of device of dynamic assignment head image information, comprising: seat configuration module, for being configured for the circular seat region of display head image information; First acquisition module, for the head image information of Real-time Obtaining to large data; Distribution module, for being assigned to described circular seat region by described head image information.
Wherein, also comprise: the second acquisition module, for the name information of Real-time Obtaining to large data.
Wherein, described distribution module comprises: maximum number determining unit, for the size according to described head portrait, determines the most multidisplay head portrait number in described circular seat region; Allocation units, are assigned to described circular seat region by the head image information of described number successively.
Wherein, also comprise: position coordinates determination module, for determining the position coordinate value being assigned to each head portrait on described circular seat region.
Wherein, also comprise: coordinate configuration module, for being each head portrait allocation position coordinate figure on circular seat region.
The present invention passes through picture and the name of the large data head picture of Real-time Obtaining, the head image information of large data is presented at circular seat region, and at head image information allocation position coordinate information, dynamic assignment head portrait also ensures uniform distribution position, reach the large data head of the best as appearance effect.Enrich the display format of large data, improve the visual experience of user.
Other features and advantages of the present invention will be set forth in the following description, and, partly become apparent from instructions, or understand by implementing the present invention.Object of the present invention and other advantages realize by structure specifically noted in write instructions, claims and accompanying drawing and obtain.
Below by drawings and Examples, technical scheme of the present invention is described in further detail.
Embodiment
Below in conjunction with accompanying drawing, the preferred embodiments of the present invention are described, should be appreciated that preferred embodiment described herein is only for instruction and explanation of the present invention, is not intended to limit the present invention.
The invention provides a kind of method of dynamic assignment head image information, see Fig. 1, comprise the following steps:
S100 is configured for the circular seat region of display head image information;
See Fig. 2, usually, competition field is all by the forming of seat one circle of annular, and we suppose that there are 3 row in competition field, i.e. 3 concentric circless, and radius is respectively R1, R2, R3.Periphery around competition field is the circular seat region for showing head image information.
S200 Real-time Obtaining is to the head image information of large data;
See Fig. 3 and Fig. 4, Real-time Obtaining to the head image information of large data and name information, circular seat region that head image information is taken a seat.According to the size of described head portrait, determine the most multidisplay head portrait number in described circular seat region; Successively the head image information of described number is assigned to described circular seat region.Head portrait is circular icon, and circular diagram target radius just can determine the size of head portrait, if the radius R in precognition circular seat region, determines the most multidisplay head portrait number in described circular seat region, also can determine angle θ.
Determine the position coordinate value being assigned to each head portrait on described circular seat region, see Fig. 3 and Fig. 4, known angle θ and radius R, just can obtain the coordinate figure of the head portrait after taking a seat, such as, and the coordinate figure of A, B, C, D and E.Computing formula is as follows:
On circle, any point is: (x1, y1)
x1=x0+r*cos(θ*3.14/180)
y1=y0+r*sin(θ*3.14/180)
Wherein: round dot coordinate: (x0, y0), radius: r, angle: θ
As shown in Figure 3, A point is the upper any point of circle, and see Fig. 4, in like manner, calculating A, B, C, the coordinate figure of D and E, is each head portrait allocation position coordinate figure on circular seat region.
Described head image information is assigned to described circular seat region by S300.
The present invention also provides a kind of device of dynamic assignment head image information, see Fig. 5, comprising: seat configuration module 10, for being configured for the circular seat region of display head image information; First acquisition module 20, for the head image information of Real-time Obtaining to large data; Distribution module 30, for being assigned to described circular seat region by described head image information.
Preferably, described device also comprises: the second acquisition module, for the name information of Real-time Obtaining to large data.
Preferably, described distribution module comprises: maximum number determining unit, for the size according to described head portrait, determines the most multidisplay head portrait number in described circular seat region; Allocation units, are assigned to described circular seat region by the head image information of described number successively.
Preferably, described device also comprises: position coordinates determination module, for determining the position coordinate value being assigned to each head portrait on described circular seat region.
Preferably, described device also comprises: coordinate configuration module, for being each head portrait allocation position coordinate figure on circular seat region.
The present invention passes through picture and the name of the large data head picture of Real-time Obtaining, the head image information of large data is presented at circular seat region, and at head image information allocation position coordinate information, dynamic assignment head portrait also ensures uniform distribution position, reach the large data head of the best as appearance effect.Enrich the display format of large data, improve the visual experience of user.
Those skilled in the art should understand, embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.And the present invention can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disk memory and optical memory etc.) of computer usable program code.
The present invention describes with reference to according to the process flow diagram of the method for the embodiment of the present invention, equipment (system) and computer program and/or block scheme.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block scheme and/or square frame and process flow diagram and/or block scheme and/or square frame.These computer program instructions can being provided to the processor of multi-purpose computer, special purpose computer, Embedded Processor or other programmable data processing device to produce a machine, making the instruction performed by the processor of computing machine or other programmable data processing device produce device for realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer-readable memory that works in a specific way of vectoring computer or other programmable data processing device, the instruction making to be stored in this computer-readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be loaded in computing machine or other programmable data processing device, make on computing machine or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computing machine or other programmable devices is provided for the step realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.