CN103605451B - Method and device for pentagonally arranging and displaying icons - Google Patents

Method and device for pentagonally arranging and displaying icons Download PDF

Info

Publication number
CN103605451B
CN103605451B CN201310500859.4A CN201310500859A CN103605451B CN 103605451 B CN103605451 B CN 103605451B CN 201310500859 A CN201310500859 A CN 201310500859A CN 103605451 B CN103605451 B CN 103605451B
Authority
CN
China
Prior art keywords
icon
coordinate
interface
pentalpha
read
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.)
Expired - Fee Related
Application number
CN201310500859.4A
Other languages
Chinese (zh)
Other versions
CN103605451A (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 Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing 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 Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201310500859.4A priority Critical patent/CN103605451B/en
Publication of CN103605451A publication Critical patent/CN103605451A/en
Application granted granted Critical
Publication of CN103605451B publication Critical patent/CN103605451B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a method and a device for pentagonally arranging and displaying icons. The method includes the steps: presetting a plurality of application icons and providing icon reading interfaces for the icons; presetting a pentagonal icon arranging template and providing an implementation interface of the pentagonal icon arranging template with a pentagonal icon arranging coordinate algorithm; calculating a plurality of position coordinates in a display area and enabling connecting lines of the position coordinates to form a pentagram by the pentagonal icon arranging coordinate algorithm; calling the implementation interface of the pentagonal icon arranging template, executing the pentagonal icon arranging coordinate algorithm and calculating the position coordinates to implement the pentagonal icon arranging template; displaying the read icons at positions with the position coordinates by calling the icon reading interfaces. By the method and the device, the icons can be pentagonally arranged and displayed.

Description

A kind of method and apparatus of icon five-pointed star arrangement display
Technical field
The present invention relates to a kind of method and apparatus of field of computer technology display and in particular to icon five-pointed star is arranged.
Background technology
Icon is applied to computer software aspect, comprising: program identification, Data Identification, command selection, mode signal or cut Change switch, state instruction etc..One icon is a little picture or object, represents a file, program, webpage or order. Icon contributes to user and quickly executes order and open program file.Click or double-click icon to execute an order.Icon For quickly representing content in a browser.
Icon icon is a kind of iconic format, and for system icon, software icon etc., this icon extends entitled * .icon、*.ico.Icon on common software or windows desktop is typically all icon form.
When icon being shown in prior art, often set the display location of icon, by icon Shown in default position, often rectangular netted arrangement is shown icon, caused icon display arrangement mode list One problem.
Content of the invention
In view of the above problems it is proposed that the present invention so as to provide one kind overcome the problems referred to above or at least in part solve on State the method for icon five-pointed star arrangement display of problem and corresponding device.
According to an aspect of the invention, it is provided a kind of method of icon five-pointed star arrangement display, comprising:
Pre-set the icon of multiple applications, and provide the icon of each icon to read interface;
Pre-set icon pentalpha arrangement template, and provide what icon pentalpha arranged template to realize interface, figure Mark pentalpha arrangement template-setup has icon pentalpha arrangement coordinate algorithm;Icon pentalpha arrangement coordinate algorithm is aobvious Show and calculate multiple position coordinateses in region and make the line of position coordinates constitute pentalpha;
By calling the interface of realizing of icon pentalpha arrangement template, execution icon pentalpha arrangement coordinate algorithm is simultaneously Calculate multiple position coordinateses, realize icon pentalpha arrangement template;
Read interface by calling icon, the icon being read is shown at the position of position coordinates.
Further, the method for the present invention, wherein, pentalpha be totally pentagram shape and include five outer dead centres, five Inner vertex and ten sidelines;Icon pentalpha arrangement coordinate algorithm specifically includes:
Set up coordinate system in viewing area, the axis of abscissas of coordinate system is parallel with two sidelines in ten sidelines, five The size of angle star is determined by the size of viewing area;
Distance according to outer dead centre to totally pentagram shape center calculates five outer dead centres, five inner vertexs and ten sidelines The coordinate at midpoint is as position coordinates.
Further, the method for the present invention, wherein, outer according to the distance calculating five of outer dead centre to totally pentagram shape center The coordinate at the midpoint on summit, five inner vertexs and ten sidelines specifically includes as the step of position coordinates:
Calculate the coordinate (x of five outer dead centres according to equation below (1) and formula (2)i, yi) as position coordinates:
x i = r n × cos θ + r n y i = r n × sin θ + r n - - - ( 1 )
θ = 18 + 72 × i - 1 2 - - - ( 2 )
Wherein, rnRepresent outer dead centre to the distance at totally pentagram shape center;I represents vertex index values, vertex index values from The outer dead centre of totally pentagram shape upper right quarter starts, and in a counterclockwise direction whole outer dead centres and inner vertex is counted;
Calculate the coordinate (x of five inner vertexs according to equation below (3), formula (4) and formula (5)i, yi) sit as position Mark:
x i = r m × cos α + r n y i = r m × sin α + r n - - - ( 3 )
α = 54 + 72 × i - 2 2 - - - ( 4 )
r m = r n - y 1 sin ( 36 ) - - - ( 5 )
Wherein, rmRepresent inner vertex to the distance at totally pentagram shape center;y1Represent first during vertex index values i=1 The ordinate of outer dead centre;
Calculate the coordinate (x at the midpoint in ten sidelines according to equation below (6)j, yj) as position coordinates:
x j = x i + x i + 1 2 y j = y i + y i + 1 2 - - - ( 6 )
Wherein, j represents midpoint index value, on the left of first outer dead centre when vertex index values i=1 for the midpoint index value The midpoint in sideline starts, and in a counterclockwise direction the midpoint in whole sidelines is counted.
Further, the method for the present invention, wherein,
Pre-set icon pentalpha arrangement template, and provide icon pentalpha arrange template realize interface it Afterwards;In the interface of realizing by calling icon pentalpha arrangement template, execution icon pentalpha arrangement coordinate algorithm is simultaneously counted Calculate the coordinate drawing each icon in viewing area, before realizing icon pentalpha arrangement template;
Also include:
Determine quantity n of icon to be shown, n is positive integer.
Read interface by calling icon, the icon being read is shown in the concrete steps bag at the position of position coordinates Include:
When 5≤n≤10, icon is called to read interface, by five figures to be shown in the n being read icon to be shown Mark at the position of coordinate being shown in each outer dead centre, and by remaining figure to be shown in the n being read icon to be shown Mark at the position of coordinate being shown in each inner vertex;
When 10 < n≤20, icon is called to read interface, will be to be shown for ten in the n being read icon to be shown Icon is shown at the position of the coordinate of each outer dead centre and inner vertex, and will be remaining in the n being read icon to be shown Icon to be shown be shown at the position of the coordinate at midpoint in each bar sideline.
Further, the method for the present invention, wherein, reads interface by calling icon, the icon being read is shown in Step at the position of position coordinates also includes:
Select the icon of an application according to history service condition;
The icon of selection is shown in the center of totally pentagram shape.
According to a further aspect in the invention, there is provided a kind of device of icon five-pointed star arrangement display, comprising:
Icon interface module, for pre-setting the icon of multiple applications, and provides the icon of each icon to read interface;
Template interface module, is used for pre-setting icon pentalpha arrangement template, and provides icon pentalpha to arrange Template realize interface, icon pentalpha arrangement template-setup has icon pentalpha arrangement coordinate algorithm;Icon five-pointed star Shape arrangement coordinate algorithm calculates multiple position coordinateses in viewing area and makes the line of position coordinates constitute pentalpha;
Template realizes module, for the interface of realizing by calling icon pentalpha arrangement template, five jiaos of icon of execution Star arrangement coordinate algorithm simultaneously calculates multiple position coordinateses, realizes icon pentalpha arrangement template;
Icon display module, for reading interface by calling icon, the icon being read is shown in position coordinates At position.
Further, assembly of the invention, wherein, pentalpha be totally pentagram shape and include five outer dead centres, five Inner vertex and ten sidelines;Template interface module includes:
Coordinate sets up module, for setting up coordinate system in viewing area, in the axis of abscissas of coordinate system and ten sidelines Two sidelines parallel, the size of pentalpha is determined by the size of viewing area;
Computing module, for calculating five outer dead centres, pushing up in five according to the distance of outer dead centre to totally pentagram shape center The coordinate at the midpoint in point and ten sidelines is as position coordinates.
Further, assembly of the invention, wherein, computing module specifically for:
Calculate the coordinate (x of five outer dead centres according to equation below (1) and formula (2)i, yi) as position coordinates:
x i = r n × cos θ + r n y i = r n × sin θ + r n - - - ( 1 )
θ = 18 + 72 × i - 1 2 - - - ( 2 )
Wherein, rnRepresent outer dead centre to the distance at totally pentagram shape center;I represents vertex index values, vertex index values from The outer dead centre of totally pentagram shape upper right quarter starts, and in a counterclockwise direction whole outer dead centres and inner vertex is counted;
Calculate the coordinate (x of five inner vertexs according to equation below (3), formula (4) and formula (5)i, yi) sit as position Mark:
x i = r m × cos α + r n y i = r m × sin α + r n - - - ( 3 )
α = 54 + 72 × i - 2 2 - - - ( 4 )
r m = r n - y 1 sin ( 36 ) - - - ( 5 )
Wherein, rmRepresent inner vertex to the distance at totally pentagram shape center;y1Represent first during vertex index values i=1 The ordinate of outer dead centre;
Calculate the coordinate (x at the midpoint in ten sidelines according to equation below (6)j, yj) as position coordinates:
x j = x i + x i + 1 2 y j = y i + y i + 1 2 - - - ( 6 )
Wherein, j represents midpoint index value, on the left of first outer dead centre when vertex index values i=1 for the midpoint index value The midpoint in sideline starts, and in a counterclockwise direction the midpoint in whole sidelines is counted.
Further, assembly of the invention, wherein, also includes:
Quantity determining module, for determining quantity n of icon to be shown, n is positive integer.
Icon display module specifically for:
When 5≤n≤10, icon is called to read interface, by five figures to be shown in the n being read icon to be shown Mark at the position of coordinate being shown in each outer dead centre, and by remaining figure to be shown in the n being read icon to be shown Mark at the position of coordinate being shown in each inner vertex;
When 10 < n≤20, icon is called to read interface, will be to be shown for ten in the n being read icon to be shown Icon is shown at the position of the coordinate of each outer dead centre and inner vertex, and will be remaining in the n being read icon to be shown Icon to be shown be shown at the position of the coordinate at midpoint in each bar sideline.
Further, assembly of the invention, wherein, icon display module is additionally operable to:
Select the icon of an application according to history service condition;
The icon of selection is shown in the center of totally pentagram shape.
The method and apparatus of the icon five-pointed star arrangement display according to the present invention, can make icon be in that five-pointed star arrangement is carried out Display, thus solves the icon arrangement display mode that in prior art, icon arrangement mode leads to for rectangle is netted single Problem, achieves the beneficial effect that according to number of icons, icon can be carried out with five-pointed star arrangement display.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention, And can be practiced according to the content of specification, and in order to allow the above and other objects of the present invention, feature and advantage can Become apparent, below especially exemplified by the specific embodiment of the present invention.
Brief description
By reading the detailed description of hereafter preferred embodiment, various other advantages and benefit are common for this area Technical staff will be clear from understanding.Accompanying drawing is only used for illustrating the purpose of preferred embodiment, and is not considered as to the present invention Restriction.And in whole accompanying drawing, it is denoted by the same reference numerals identical part.In the accompanying drawings:
Fig. 1 shows the method flow diagram of according to embodiments of the present invention one icon five-pointed star arrangement display;
Fig. 2 shows the method flow diagram of according to embodiments of the present invention two icon five-pointed star arrangement display;
Fig. 3 shows according to embodiments of the present invention two five-pointed star schematic diagram;
Fig. 4 shows the structure drawing of device of according to embodiments of the present invention three icon five-pointed star arrangement display;
Fig. 5 shows the structure drawing of device of according to embodiments of the present invention four icon five-pointed star arrangement display.
Specific embodiment
It is more fully described the exemplary embodiment of the disclosure below with reference to accompanying drawings.Although showing the disclosure in accompanying drawing Exemplary embodiment it being understood, however, that may be realized in various forms the disclosure and should not be by embodiments set forth here Limited.On the contrary, these embodiments are provided to be able to be best understood from the disclosure, and can be by the scope of the present disclosure Complete conveys to those skilled in the art.
First embodiment of the invention provides a kind of method of icon five-pointed star arrangement display, and Fig. 1 shows according to this The method flow diagram of the icon five-pointed star arrangement display of inventive embodiments one, as shown in figure 1, comprising:
Step s101, pre-set the icon of multiple applications, and provide the icon of each icon to read interface;
Icon includes Android system application icon, ios system (Apple Macintosh operating system) application icon, windowsphone system System (Microsoft's mobile phone operating system) application icon, windows system (Microsoft's computer operating system) application icon etc. can be The application icon of display, the preferably icon of icon form in operating system;
Icon reads interface and includes:
Display initialization interface initview, for initializing to the parameter of icon display environment, layout;
Icon initialization interface initicons, for initializing in itself to icon;
Icon sets up interface creaticons, for reading topology file, application message and icon is bound;
Operation triggering interface touch, triggers the corresponding actions of icon, makes user according to display for the operation according to user The icon that device shows, carries out selecting application, opens application, checks that application etc. operates;
Cloth station interface onlayout, for holding according to icon width, icon height, wide high proportion, picture scaling, father The information such as device width, father's container height carry out display layout to icon;
Icon display interface appwallcelllayout, for by icon according to the coordinate position of icon in operating system Desktop shown;
Icon arranges interface setting, the parameter showing for setting editor's icon.
Icon reads interface by calling above-mentioned interface and icon parameter, image data, coordinates of icon, icon index value Etc. information, icon is shown at coordinate position determined by icon pentalpha arrangement template;
Step s102, pre-set icon pentalpha arrangement template, and provide icon pentalpha arrange template reality Existing interface, icon pentalpha arrangement template-setup has icon pentalpha arrangement coordinate algorithm;The arrangement of icon pentalpha is sat Mark algorithm calculates multiple position coordinateses in viewing area and makes the line of position coordinates constitute pentalpha;
Pentalpha both can adopt totally pentagram shape, it would however also be possible to employ between the length of side of each side unequal pentalpha and Other kinds of pentalpha;
Step s103, the interface of realizing by calling icon pentalpha arrangement template, execution icon pentalpha arrangement Coordinate algorithm simultaneously calculates multiple position coordinateses, realizes icon pentalpha arrangement template;
Step s104, by call icon read interface, the icon being read is shown at the position of position coordinates.
The method of according to embodiments of the present invention one icon five-pointed star arrangement display, can make icon be in pentalpha arrangement Shown, thus solved the icon arrangement display mode list that in prior art, icon arrangement mode leads to for rectangle is netted One problem, achieves the beneficial effect that icon is carried out with pentalpha arrangement display.
Second embodiment of the invention provides a kind of method of icon five-pointed star arrangement display, and Fig. 2 shows according to this The method flow diagram of the icon five-pointed star arrangement display of inventive embodiments two, as shown in Fig. 2 comprising:
Step s201, pre-set the icon of multiple applications, and provide the icon of each icon to read interface;
Step s202, pre-set icon pentalpha arrangement template, and provide icon pentalpha arrange template reality Existing interface, icon pentalpha arrangement template-setup has icon pentalpha arrangement coordinate algorithm;The arrangement of icon pentalpha is sat Mark algorithm calculates multiple position coordinateses in viewing area and makes the line of position coordinates constitute pentalpha;
Fig. 3 shows according to embodiments of the present invention two five-pointed star schematic diagram, as shown in figure 3, pentalpha is Zheng Wujiao Star and inclusion 901, five inner vertexs 902 of five outer dead centres and ten sidelines 903, sideline has midpoint 904;
Icon pentalpha arrangement coordinate algorithm may include that
Step s211, set up coordinate system in viewing area, two sides in the axis of abscissas of coordinate system and ten sidelines Line is parallel, and the size of pentalpha is determined by the size of viewing area;
The axis of ordinates of coordinate system is vertical with the axis of abscissas of coordinate system;Five outer dead centres through totally pentagram shape do Circle, ordinate and abscissa are all tangent with this circle;
Step s212, calculated according to the distance of outer dead centre to totally pentagram shape center five outer dead centres, five inner vertexs and Article ten, the coordinate at the midpoint in sideline is as position coordinates;
Wherein, step s212 may include that
Step s221, the coordinate (x according to equation below (1) and formula (2) five outer dead centres of calculatingi, yi) sit as position Mark:
x i = r n × cos θ + r n y i = r n × sin θ + r n - - - ( 1 )
θ = 18 + 72 × i - 1 2 - - - ( 2 )
Wherein, rnRepresent outer dead centre to the distance at totally pentagram shape center;I represents vertex index values, vertex index values from The outer dead centre of totally pentagram shape upper right quarter starts, and in a counterclockwise direction whole outer dead centres and inner vertex is counted;
It is introduced below by specific example:
Example one, the order of outer dead centre in a counterclockwise direction from the beginning of the outer dead centre of totally pentagram shape upper right quarter, including complete Portion's outer dead centre and inner vertex, try to achieve according to formula (1) and formula (2):
The coordinate of the 1st outer dead centre (i=1) is (rn×sin18+rn, rn×sin18+rn);
The coordinate of the 2nd outer dead centre (i=3) is (rn×sin90+rn, rn×sin90+rn);
The coordinate of the 3rd outer dead centre (i=5) is (rn×sin162+rn, rn×sin162+rn);
The coordinate of the 4th outer dead centre (i=7) is (rn×sin134+rn, rn×sin234+rn);
The coordinate of the 5th outer dead centre (i=9) is (rn×sin306+rn, rn×sin306+rn);
Step s222, the coordinate (x according to equation below (3), formula (4) and formula (5) five inner vertexs of calculatingi, yi) make For position coordinates:
x i = r m × cos α + r n y i = r m × sin α + r n - - - ( 3 )
α = 54 + 72 × i - 2 2 - - - ( 4 )
r m = r n - y 1 sin ( 36 ) - - - ( 5 )
Wherein, rmRepresent inner vertex to the distance at totally pentagram shape center;y1Represent first during vertex index values i=1 The ordinate of outer dead centre;
It is introduced below by specific example:
Example two, the order of inner vertex in a counterclockwise direction from the beginning of the outer dead centre of totally pentagram shape upper right quarter, including complete Portion's outer dead centre and inner vertex, try to achieve according to formula (3), formula (4) and formula (5):
The coordinate of the 1st inner vertex (i=2) is (rm×sin54+rn, rm×sin54+rn);
The coordinate of the 2nd inner vertex (i=4) is (rm×sin126+rn, rm×sin126+rn);
The coordinate of the 3rd inner vertex (i=6) is (rm×sin198+rn, rm×sin198+rn);
The coordinate of the 4th inner vertex (i=8) is (rm×sin270+rn, rm×sin270+rn);
The coordinate of the 5th inner vertex (i=10) is (rm×sin342+rn, rm×sin342+rn);
Wherein, r m = sin 18 sin 36 × r n ;
Step s223, according to equation below (6) calculate ten sidelines midpoint coordinate (xj, yj) as position coordinates:
x j = x i + x i + 1 2 y j = y i + y i + 1 2 - - - ( 6 )
Wherein, j represents midpoint index value, on the left of first outer dead centre when vertex index values i=1 for the midpoint index value The midpoint in sideline starts, and in a counterclockwise direction the midpoint in whole sidelines is counted;
It is introduced below by specific example:
Example three, the midpoint in the order at the midpoint sideline on the left of first outer dead centre when i=1 in a counterclockwise direction is opened Begin, including the midpoint in whole 10 sidelines, tried to achieve according to formula (6):
Article 1, the coordinate at the midpoint (j=1) in sideline is
Article 2, the coordinate at the midpoint (j=2) in sideline is
……
Article 9, the coordinate at the midpoint (j=9) in sideline is
Article 10, the coordinate at the midpoint (j=10) in sideline is
Wherein, (x1、y1), (x2、y2) ... (x9、y9), (x10、y10) it is respectively above-mentioned steps s221 and step s222 meter The outer dead centre calculating and the coordinate of inner vertex;
Step s203, determine quantity n of icon to be shown, n is positive integer;
Step s204, the interface of realizing by calling icon pentalpha arrangement template, execution icon pentalpha arrangement Coordinate algorithm simultaneously calculates multiple position coordinateses, realizes icon pentalpha arrangement template;
Step s205, by call icon read interface, the icon being read is shown at the position of position coordinates;
Step s205 specifically includes:
Step s231, when 5≤n≤10, call icon to read interface, by five in the n being read icon to be shown At the position of coordinate that individual icon to be shown is shown in each outer dead centre, and will be remaining in the n being read icon to be shown Icon to be shown be shown in each inner vertex the position of coordinate at;
Step s232, when 10 < n≤20, call icon to read interface, by ten in the n being read icon to be shown At the position of coordinate that individual icon to be shown is shown in each outer dead centre and inner vertex, and by the n being read figure to be shown In mark, remaining icon to be shown is shown at the position of the coordinate at midpoint in each bar sideline.
By technique scheme, except icon can be carried out with five-pointed star arrangement display, can also be according to figure to be shown Target quantity, at the position at midpoint icon to be shown being placed on outer dead centre, inner vertex or sideline, makes icon arrange more Uniformly.
Further, the method for the present invention, wherein, step s205 reads interface by calling icon, by the figure being read Mark the step being shown at the position of position coordinates also to include:
Step s241, the icon according to one application of selection of history service condition;
Step s242, the icon of selection is shown in the center of totally pentagram shape.
By step s241 and s242, make user according to history service condition Quick positioning map mark.History service condition is excellent Elect as: the number of times that applying corresponding to icon is opened in Preset Time.
Third embodiment of the invention provides a kind of device of icon five-pointed star arrangement display, and Fig. 4 shows according to this The structure drawing of device of the icon five-pointed star arrangement display of inventive embodiments three, as shown in figure 4, comprising:
Icon interface module 100, for pre-setting the icon of multiple applications, and provides the icon reading of each icon to connect Mouthful;
Template interface module 200, is used for pre-setting icon pentalpha arrangement template, and provides icon pentalpha to arrange Cloth template realize interface, icon pentalpha arrangement template-setup has icon pentalpha arrangement coordinate algorithm;Five jiaos of icon Star arrangement coordinate algorithm calculates multiple position coordinateses in viewing area and makes the line of position coordinates constitute pentalpha;
Template realizes module 300, for the interface of realizing by calling icon pentalpha arrangement template, execution icon five Angle star arrangement coordinate algorithm simultaneously calculates multiple position coordinateses, realizes icon pentalpha arrangement template;
Icon display module 400, for reading interface by calling icon, the icon being read is shown in position coordinates Position at.
The icon five-pointed star arrangement display device that 3rd embodiment of the present invention provides, is first embodiment of the invention The method of icon five-pointed star arrangement display providing realize device, its concrete principle and first embodiment of the invention provide Method is identical, therefore repeats no more.
The device of according to embodiments of the present invention three icon five-pointed star arrangement display, can make the icon be on the terminal device Five-pointed star arrangement is shown, thus solves the icon arrangement that in prior art, icon arrangement mode leads to for rectangle is netted The single problem of display mode, achieves the beneficial effect that icon can be carried out with five-pointed star arrangement display.
Four embodiment of the invention provides a kind of device of icon five-pointed star arrangement display, and Fig. 5 shows according to this The structure drawing of device of the icon five-pointed star arrangement display of inventive embodiments four, as shown in figure 5, comprising:
Icon interface module 100, for pre-setting the icon of multiple applications, and provides the icon reading of each icon to connect Mouthful;
Template interface module 200, is used for pre-setting icon pentalpha arrangement template, and provides icon pentalpha to arrange Cloth template realize interface, icon pentalpha arrangement template-setup has icon pentalpha arrangement coordinate algorithm;Five jiaos of icon Star arrangement coordinate algorithm calculates multiple position coordinateses in viewing area and makes the line of position coordinates constitute pentalpha;
Template realizes module 300, for the interface of realizing by calling icon pentalpha arrangement template, execution icon five Angle star arrangement coordinate algorithm simultaneously calculates multiple position coordinateses, realizes icon pentalpha arrangement template;
Icon display module 400, for reading interface by calling icon, the icon being read is shown in position coordinates Position at.
Further, assembly of the invention, wherein, pentalpha be totally pentagram shape and include five outer dead centres, five Inner vertex and ten sidelines;Template interface module 200 includes:
Coordinate sets up module 201, for setting up coordinate system, the axis of abscissas of coordinate system and ten sidelines in viewing area In two sidelines parallel, the size of pentalpha is determined by the size of viewing area;
Computing module 202, for calculating five outer dead centres according to the distance of outer dead centre to totally pentagram shape center, in five The coordinate at the midpoint in summit and ten sidelines is as position coordinates.
Further, assembly of the invention, wherein, computing module 202 specifically for:
Calculate the coordinate (x of five outer dead centres according to equation below (1) and formula (2)i, yi) as position coordinates:
x i = r n × cos θ + r n y i = r n × sin θ + r n - - - ( 1 )
θ = 18 + 72 × i - 1 2 - - - ( 2 )
Wherein, rnRepresent outer dead centre to the distance at totally pentagram shape center;I represents vertex index values, vertex index values from The outer dead centre of totally pentagram shape upper right quarter starts, and in a counterclockwise direction whole outer dead centres and inner vertex is counted;
Calculate the coordinate (x of five inner vertexs according to equation below (3), formula (4) and formula (5)i, yi) sit as position Mark:
x i = r m × cos α + r n y i = r m × sin α + r n - - - ( 3 )
α = 54 + 72 × i - 2 2 - - - ( 4 )
r m = r n - y 1 sin ( 36 ) - - - ( 5 )
Wherein, rmRepresent inner vertex to the distance at totally pentagram shape center;y1Represent first during vertex index values i=1 The ordinate of outer dead centre;
Calculate the coordinate (x at the midpoint in ten sidelines according to equation below (6)j, yj) as position coordinates:
x j = x i + x i + 1 2 y j = y i + y i + 1 2 - - - ( 6 )
Wherein, j represents midpoint index value, on the left of first outer dead centre when vertex index values i=1 for the midpoint index value The midpoint in sideline starts, and in a counterclockwise direction the midpoint in whole sidelines is counted.
Further, assembly of the invention, wherein, also includes:
Quantity determining module 500, for determining quantity n of icon to be shown, n is positive integer.
Icon display module 400 specifically for:
When 5≤n≤10, icon is called to read interface, by five figures to be shown in the n being read icon to be shown Mark at the position of coordinate being shown in each outer dead centre, and by remaining figure to be shown in the n being read icon to be shown Mark at the position of coordinate being shown in each inner vertex;
When 10 < n≤20, icon is called to read interface, will be to be shown for ten in the n being read icon to be shown Icon is shown at the position of the coordinate of each outer dead centre and inner vertex, and will be remaining in the n being read icon to be shown Icon to be shown be shown at the position of the coordinate at midpoint in each bar sideline.
Further, assembly of the invention, wherein, icon display module 400 is additionally operable to:
Select the icon of an application according to history service condition;
The icon of selection is shown in the center of totally pentagram shape.
The icon five-pointed star arrangement display device that 4th embodiment of the present invention provides, is second embodiment of the invention The method of icon five-pointed star arrangement display providing realize device, its concrete principle and second embodiment of the invention provide Method is identical, therefore repeats no more.
The icon five-pointed star arrangement display device being provided by the 4th of the present invention the embodiment, except entering to icon The arrangement display of row five-pointed star, can also according to the quantity of icon to be shown, by icon to be shown be placed on outer dead centre, inner vertex or At the position at the midpoint in person sideline, icon is made to arrange more uniform;And, user can be made quickly fixed according to history service condition Bitmap mark.
Algorithm and display be not inherently related to any certain computer, virtual system or miscellaneous equipment provided herein. Various general-purpose systems can also be used together with based on teaching in this.As described above, construct required by this kind of system Structure be obvious.Additionally, the present invention is also not for any certain programmed language.It is understood that, it is possible to use various Programming language realizes the content of invention described herein, and the description above language-specific done is to disclose this Bright preferred forms.
In specification mentioned herein, illustrate a large amount of details.It is to be appreciated, however, that the enforcement of the present invention Example can be put into practice in the case of not having these details.In some instances, known method, structure are not been shown in detail And technology, so as not to obscure the understanding of this description.
Similarly it will be appreciated that in order to simplify the disclosure and help understand one or more of each inventive aspect, Above in the description to the exemplary embodiment of the present invention, each feature of the present invention is grouped together into single enforcement sometimes In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect an intention that i.e. required guarantor The application claims of shield more features than the feature being expressly recited in each claim.More precisely, it is such as following Claims reflected as, inventive aspect is all features less than single embodiment disclosed above.Therefore, The claims following specific embodiment are thus expressly incorporated in this specific embodiment, wherein each claim itself All as the separate embodiments of the present invention.
Those skilled in the art are appreciated that and the module in the equipment in embodiment can be carried out adaptively Change and they are arranged in one or more equipment different from this embodiment.Can be the module in embodiment or list Unit or assembly be combined into a module or unit or assembly, and can be divided in addition multiple submodule or subelement or Sub-component.In addition to such feature and/or at least some of process or unit exclude each other, can adopt any Combination is to all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and so disclosed Where method or all processes of equipment or unit are combined.Unless expressly stated otherwise, this specification (includes adjoint power Profit requires, summary and accompanying drawing) disclosed in each feature can carry out generation by the alternative features providing identical, equivalent or similar purpose Replace.
Although additionally, it will be appreciated by those of skill in the art that some embodiments described herein include other embodiments In included some features rather than further feature, but the combination of the feature of different embodiment means to be in the present invention's Within the scope of and form different embodiments.For example, in the following claims, embodiment required for protection appoint One of meaning can in any combination mode using.
The all parts embodiment of the present invention can be realized with hardware, or to run on one or more processor Software module realize, or with combinations thereof realize.It will be understood by those of skill in the art that can use in practice Microprocessor or digital signal processor (dsp) are realizing the dress of icon five-pointed star arrangement display according to embodiments of the present invention The some or all functions of some or all parts in putting.The present invention is also implemented as described here for executing Some or all equipment of method or program of device (for example, computer program and computer program).This The program realizing the present invention of sample can store on a computer-readable medium, or can have one or more signal Form.Such signal can be downloaded from internet website and obtain, or provides on carrier signal, or with any other Form provides.
It should be noted that above-described embodiment the present invention will be described rather than limits the invention, and ability Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference symbol between bracket should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element listed in the claims or step.Word "a" or "an" before element does not exclude the presence of multiple such Element.The present invention can come real by means of the hardware including some different elements and by means of properly programmed computer Existing.If in the unit claim listing equipment for drying, several in these devices can be by same hardware branch To embody.The use of word first, second, and third does not indicate that any order.These words can be explained and run after fame Claim.

Claims (10)

1. a kind of method of icon five-pointed star arrangement display, comprising:
Pre-set the icon of multiple applications, and provide the icon of each described icon to read interface, wherein, icon reads interface bag Include: display initialization interface, icon initialization interface, icon set up interface, operation triggers interface, cloth station interface, icon show Interface and icon setting interface;
Pre-set icon pentalpha arrangement template, and provide what described icon pentalpha arranged template to realize interface, institute Stating icon pentalpha arrangement template-setup has icon pentalpha arrangement coordinate algorithm;Described icon pentalpha arrangement coordinate Algorithm calculates multiple position coordinateses in viewing area and makes the line of described position coordinates constitute pentalpha, wherein, described The size of pentalpha is determined by the size of described viewing area;
By calling the interface of realizing of described icon pentalpha arrangement template, execution described icon pentalpha arrangement coordinate is calculated Method simultaneously calculates multiple described position coordinateses, realizes described icon pentalpha arrangement template;
Read interface and image data, coordinates of icon, icon index value by calling described icon, the icon being read is shown Show at the position of described position coordinates.
2. method according to claim 1, wherein, described pentalpha be totally pentagram shape and include five outer dead centres, Five inner vertexs and ten sidelines;Described icon pentalpha arrangement coordinate algorithm specifically includes:
Coordinate system, two sidelines in the axis of abscissas of described coordinate system and described ten sidelines are set up in described viewing area Parallel;
Distance according to described outer dead centre to described totally pentagram shape center calculates five described outer dead centres, five described inner vertexs With the coordinate at the midpoint in ten described sidelines as described position coordinates.
3. method according to claim 2, wherein, according to the distance meter of described outer dead centre to described totally pentagram shape center The coordinate at the midpoint in five described outer dead centres of calculation, five described inner vertexs and ten described sidelines is as the step of described position coordinates Rapid inclusion:
Calculate the coordinate (x of five described outer dead centres according to equation below (1) and formula (2)i, yi) as described position coordinates:
x i = r n × c o s θ + r n y i = r n × sin θ + r n - - - ( 1 )
θ = 18 + 72 × i - 1 2 - - - ( 2 )
Wherein, rnRepresent described outer dead centre to the distance at described totally pentagram shape center;I represents vertex index values, described summit rope Draw value from the beginning of the described outer dead centre of described totally pentagram shape upper right quarter, in a counterclockwise direction to all described outer dead centres and described Inner vertex counts;
Calculate the coordinate (x of five described inner vertexs according to equation below (3), formula (4) and formula (5)i, yi) as institute's rheme Put coordinate:
x i = r m × c o s α + r n y i = r m × sin α + r n - - - ( 3 )
α = 54 + 72 × i - 2 2 - - - ( 4 )
r m = r n - y 1 s i n ( 36 ) - - - ( 5 )
Wherein, rmRepresent described inner vertex to the distance at described totally pentagram shape center;y1When representing described vertex index values i=1 First described outer dead centre ordinate;
Calculate the coordinate (x at the midpoint in ten described sidelines according to equation below (6)j, yj) as described position coordinates:
x j = x i + x i + 1 2 y j = y i + y i + 1 2 - - - ( 6 )
Wherein, j represents midpoint index value, first described outer top when described vertex index values i=1 for the described midpoint index value The midpoint in the sideline in point left side starts, and in a counterclockwise direction the midpoint in all described sidelines is counted.
4. method according to claim 3, wherein,
Pre-setting icon pentalpha arrangement template, and provide described icon pentalpha arrange template realize interface it Afterwards;In the interface of realizing by calling described icon pentalpha arrangement template, execution described icon pentalpha arrangement coordinate Algorithm simultaneously calculates the coordinate of each described icon in described viewing area, realizes described icon pentalpha arrangement template Before;
Also include:
Determine quantity n of icon to be shown, n is positive integer;
Read interface by calling described icon, the icon being read is shown in the step bag at the position of described position coordinates Include:
When 5≤n≤10, described icon is called to read interface, by described in five in the n being read a described icon to be shown Icon to be shown is shown at the position of the coordinate of each described outer dead centre, and by the n being read a described icon to be shown In remaining described icon to be shown be shown in each described inner vertex the position of coordinate at;
When 10 < n≤20, described icon is called to read interface, by ten institutes in the n being read a described icon to be shown State icon to be shown to be shown at each described outer dead centre and the position of coordinate of described inner vertex, and by the n being read In described icon to be shown, remaining described icon to be shown is shown at the position of the coordinate at the midpoint in sideline described in each bar.
5. the method according to any one of claim 2~4, wherein, reads interface by calling described icon, will be read The step that is shown at the position of described position coordinates of icon also include:
Select the described icon of a described application according to history service condition;
The described icon selecting is shown in the center of described totally pentagram shape.
6. a kind of device of icon five-pointed star arrangement display, comprising:
Icon interface module, for pre-setting the icon of multiple applications, and provides the icon of each described icon to read interface, its In, icon reads interface and includes: display initialization interface, icon initialization interface, icon set up interface, operation triggers interface, Cloth station interface, icon display interface and icon setting interface;
Template interface module, is used for pre-setting icon pentalpha arrangement template, and provides described icon pentalpha arrangement Template realize interface, described icon pentalpha arrangement template-setup has icon pentalpha arrangement coordinate algorithm;Described figure Mark pentalpha arrangement coordinate algorithm calculates multiple position coordinateses in viewing area and so that the line of described position coordinates is constituted Pentalpha, wherein, the size of described pentalpha is determined by the size of described viewing area;
Template realizes module, for arranging the interface of realizing of template by calling described icon pentalpha, executes described icon Pentalpha arrangement coordinate algorithm simultaneously calculates multiple described position coordinateses, realizes described icon pentalpha arrangement template;
Icon display module, for reading interface and image data, coordinates of icon, icon index value by calling icon, will The icon being read is shown at the position of described position coordinates.
7. device according to claim 6, wherein, described pentalpha be totally pentagram shape and include five outer dead centres, Five inner vertexs and ten sidelines;Described template interface module includes:
Coordinate sets up module, for setting up coordinate system, the axis of abscissas of described coordinate system and described ten in described viewing area Two sidelines in bar sideline are parallel;
Computing module, for the distance according to described outer dead centre to described totally pentagram shape center calculate five described outer dead centres, The coordinate at the midpoint in five described inner vertexs and ten described sidelines is as described position coordinates.
8. device according to claim 7, wherein, described computing module specifically for:
Calculate the coordinate (x of five described outer dead centres according to equation below (1) and formula (2)i, yi) as described position coordinates:
x i = r n × c o s θ + r n y i = r n × sin θ + r n - - - ( 1 )
θ = 18 + 72 × i - 1 2 - - - ( 2 )
Wherein, rnRepresent described outer dead centre to the distance at described totally pentagram shape center;I represents vertex index values, described summit rope Draw value from the beginning of the described outer dead centre of described totally pentagram shape upper right quarter, in a counterclockwise direction to all described outer dead centres and described Inner vertex counts;
Calculate the coordinate (x of five described inner vertexs according to equation below (3), formula (4) and formula (5)i, yi) as institute's rheme Put coordinate:
x i = r m × c o s α + r n y i = r m × sin α + r n - - - ( 3 )
α = 54 + 72 × i - 2 2 - - - ( 4 )
r m = r n - y 1 s i n ( 36 ) - - - ( 5 )
Wherein, rmRepresent described inner vertex to the distance at described totally pentagram shape center;y1When representing described vertex index values i=1 First described outer dead centre ordinate;
Calculate the coordinate (x at the midpoint in ten described sidelines according to equation below (6)j, yj) as described position coordinates:
x j = x i + x i + 1 2 y j = y i + y i + 1 2 - - - ( 6 )
Wherein, j represents midpoint index value, first described outer top when described vertex index values i=1 for the described midpoint index value The midpoint in the sideline in point left side starts, and in a counterclockwise direction the midpoint in all described sidelines is counted.
9. device according to claim 8, wherein, also includes:
Quantity determining module, for determining quantity n of icon to be shown, n is positive integer;
Described icon display module specifically for:
When 5≤n≤10, described icon is called to read interface, by described in five in the n being read a described icon to be shown Icon to be shown is shown at the position of the coordinate of each described outer dead centre, and by the n being read a described icon to be shown In remaining described icon to be shown be shown in each described inner vertex the position of coordinate at;
When 10 < n≤20, described icon is called to read interface, by ten institutes in the n being read a described icon to be shown State icon to be shown to be shown at each described outer dead centre and the position of coordinate of described inner vertex, and by the n being read In described icon to be shown, remaining described icon to be shown is shown at the position of the coordinate at the midpoint in sideline described in each bar.
10. the device according to any one of claim 7~9, wherein, described icon display module is additionally operable to:
Select the described icon of a described application according to history service condition;
The described icon selecting is shown in the center of described totally pentagram shape.
CN201310500859.4A 2013-10-22 2013-10-22 Method and device for pentagonally arranging and displaying icons Expired - Fee Related CN103605451B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310500859.4A CN103605451B (en) 2013-10-22 2013-10-22 Method and device for pentagonally arranging and displaying icons

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310500859.4A CN103605451B (en) 2013-10-22 2013-10-22 Method and device for pentagonally arranging and displaying icons

Publications (2)

Publication Number Publication Date
CN103605451A CN103605451A (en) 2014-02-26
CN103605451B true CN103605451B (en) 2017-01-18

Family

ID=50123684

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310500859.4A Expired - Fee Related CN103605451B (en) 2013-10-22 2013-10-22 Method and device for pentagonally arranging and displaying icons

Country Status (1)

Country Link
CN (1) CN103605451B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1875338A (en) * 2003-10-31 2006-12-06 皇家飞利浦电子股份有限公司 Method and system for organizing content on a time axis
CN101390038A (en) * 2005-12-30 2009-03-18 苹果公司 Portable electronic device with interface reconfiguration mode
US7603629B1 (en) * 2006-11-08 2009-10-13 Aol Llc, A Delaware Limited Liability Company Dynamic desktop icon
CN103186316A (en) * 2011-12-29 2013-07-03 宇龙计算机通信科技(深圳)有限公司 Method and device for replacing application icon and mobile terminal
CN103218123A (en) * 2013-04-26 2013-07-24 广东欧珀移动通信有限公司 Method of rearranging desktop icons and touch type mobile terminal thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1875338A (en) * 2003-10-31 2006-12-06 皇家飞利浦电子股份有限公司 Method and system for organizing content on a time axis
CN101390038A (en) * 2005-12-30 2009-03-18 苹果公司 Portable electronic device with interface reconfiguration mode
US7603629B1 (en) * 2006-11-08 2009-10-13 Aol Llc, A Delaware Limited Liability Company Dynamic desktop icon
CN103186316A (en) * 2011-12-29 2013-07-03 宇龙计算机通信科技(深圳)有限公司 Method and device for replacing application icon and mobile terminal
CN103218123A (en) * 2013-04-26 2013-07-24 广东欧珀移动通信有限公司 Method of rearranging desktop icons and touch type mobile terminal thereof

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
图形用户接口中的图标(Icon)的设计;马小薏等;《计算机应用研究》;19940630(第6期);第37-39页 *
桌面图标任我排,想怎么排就怎么排;杨峰;《软件频道》;http://article.pchome.net/content-1013616-all.html;20091128;全文 *
桌面图标随心排 方便访问乐无穷;亦云;《电脑爱好者》;20110630(第11期);第32页 *
桌面小工具funnydesk的设计与实现;明月伟等;《信息与电脑》;20100430(第8期);第50-51页 *

Also Published As

Publication number Publication date
CN103605451A (en) 2014-02-26

Similar Documents

Publication Publication Date Title
US20120169772A1 (en) Fractal whiteboarding
JP2007249989A5 (en)
JP2014512597A (en) 3D viewing method
CN112182813B (en) Power distribution network line path generation method, device, equipment and storage medium
CN108491140B (en) Interactive content display method and device
CN104679722B (en) For the method and system that data form is multidimensional
CN107291340B (en) Method for realizing interface effect, computing equipment and storage medium
CN111025039B (en) Method, device, equipment and medium for testing accuracy of touch display screen
CN103049247B (en) Carry out the method for annotating and commenting on the computer screen
CN103605451B (en) Method and device for pentagonally arranging and displaying icons
CN110111630A (en) Analogy method, device and the electronic equipment of device assembling training
CN103543912B (en) The method and apparatus that a kind of icon triangular pitch shows
CN105243469A (en) Method for mapping from multidimensional space to low-dimensional space, and display method and system
CN104238871B (en) Display control unit
KR20140088152A (en) Techniques for generating and displaying a visual flow of user content through a social network
CN105988675A (en) Information collection method and system
CN111744181A (en) In-game information display method and device, game client and medium
EP2608003A1 (en) Method and device for movement of image object
CN106951168A (en) A kind of literal processing method and mobile terminal
US20130106863A1 (en) Program creating apparatus and image control system
CN115562665A (en) Page access method and device, computer equipment and readable storage medium
CN107390995A (en) A kind of ladder numerical value method to set up and device
Ross et al. Symbulate: Simulation in the language of probability
CN110543342B (en) OCX component response interface interaction method and device
US20140322680A1 (en) Educational System for Creating Mathematical Operations

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20170118

Termination date: 20211022

CF01 Termination of patent right due to non-payment of annual fee