CN103605451A - 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
CN103605451A
CN103605451A CN201310500859.4A CN201310500859A CN103605451A CN 103605451 A CN103605451 A CN 103605451A CN 201310500859 A CN201310500859 A CN 201310500859A CN 103605451 A CN103605451 A CN 103605451A
Authority
CN
China
Prior art keywords
icon
pentalpha
coordinate
outer dead
template
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201310500859.4A
Other languages
Chinese (zh)
Other versions
CN103605451B (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

Images

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

The method and apparatus that a kind of icon pentagram is arranged and shown
Technical field
The present invention relates to field of computer technology, be specifically related to the method and apparatus that a kind of icon pentagram is arranged and shown.
Background technology
Icon is applied to computer software aspect, comprising: program identification, Data Identification, command selection, mode signal or change-over switch, state indication etc.An icon is a little picture or object, represents file, program, webpage or an order.Icon contributes to the quick fill order of user and opens program file.Click or double-click icon to carry out an order.Icon is also for representing fast content at browser.
Icon icon is a kind of icon form, for system icon, software icon etc., and this icon expansion * .icon, * .ico by name.Icon on common software or windows desktop is all generally ICON form.
While showing for icon in prior art, set often the display position of icon, icon is shown in default position, icon often rectangular netted arranging shows, has caused icon to show the single problem of arrangement mode.
Summary of the invention
In view of the above problems, the present invention has been proposed so that method and the corresponding device that provides a kind of icon pentagram that overcomes the problems referred to above or address the above problem at least in part to arrange demonstration.
According to an aspect of the present invention, a kind of method that provides icon pentagram to arrange and show, it comprises:
Set in advance the icon of a plurality of application, and the icon fetch interface of each icon is provided;
Set in advance the icon pentalpha template of arranging, and the interface of realizing that provides icon pentalpha to arrange template, the icon pentalpha template-setup of arranging has the icon pentalpha coordinate algorithm of arranging; The icon pentalpha coordinate algorithm of arranging calculates a plurality of position coordinateses and makes the line of position coordinates form pentalpha in viewing area;
By calling the arrange interface of realizing of template of icon pentalpha, arrange coordinate algorithm calculate a plurality of position coordinateses of execution icon pentalpha, realizes the icon pentalpha template of arranging;
By calling icon fetch interface, read icon is presented to the position of position coordinates.
Further, method of the present invention, wherein, pentalpha is positive pentalpha and comprises five outer dead centres, five inner vertexs and ten sidelines; The icon pentalpha coordinate algorithm of arranging specifically comprises:
In viewing area, set up coordinate system, the abscissa axis of coordinate system is parallel with two sidelines in ten sidelines, and the size of pentalpha is determined by the size of viewing area;
According to outer dead centre, to the distance at positive pentalpha center, calculate the coordinate of mid point in five outer dead centres, five inner vertexs and ten sidelines as position coordinates.
Further, method of the present invention, wherein, the step according to the coordinate of the mid point in distance calculating five outer dead centres, five inner vertexs and ten sidelines at the extremely positive pentalpha of outer dead centre center as position coordinates specifically comprises:
According to following formula (1) and formula (2), calculate the coordinate (X of five outer dead centres i, Y i) 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, r nrepresent that outer dead centre is to the distance at positive pentalpha center; I represents vertex index value, and vertex index value is from the outer dead centre of positive pentalpha upper right quarter, counterclockwise whole outer dead centres and inner vertex are counted;
According to following formula (3), formula (4) and formula (5), calculate the coordinate (X of five inner vertexs i, Y i) as 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, r mrepresent that inner vertex is to the distance at positive pentalpha center; Y 1the ordinate of first outer dead centre while representing vertex index value i=1;
According to following formula (6), calculate the coordinate (X of the mid point in ten sidelines j, Y j) as position coordinates:
X j = X i + X i + 1 2 Y j = Y i + Y i + 1 2 - - - ( 6 )
Wherein, j represents mid point index value, the mid point in the sideline in first outer dead centre left side of mid point index value during from vertex index value i=1, with the mid point counting to whole sidelines counterclockwise.
Further, method of the present invention, wherein,
Setting in advance the icon pentalpha template of arranging, and provide icon pentalpha arrange template realize interface after; By calling the arrange interface of realizing of template of icon pentalpha, arrange coordinate algorithm calculate the coordinate of each icon in viewing area of execution icon pentalpha, realizes icon pentalpha and arranges before template;
Also comprise:
Determine the quantity N of icon to be shown, N is positive integer.
By calling icon fetch interface, the concrete steps that read icon are presented to the position of position coordinates comprise:
When 5≤N≤10, call icon fetch interface, five icons to be shown in read N icon to be shown are presented to the position of the coordinate of each outer dead centre, and remaining icon to be shown in read N icon to be shown are presented to the position of the coordinate of each inner vertex;
When 10 < N≤20, call icon fetch interface, ten icons to be shown in read N icon to be shown are presented to the position of the coordinate of each outer dead centre and inner vertex, and remaining icon to be shown in read N icon to be shown are presented to the position of coordinate of the mid point in each sideline.
Further, method of the present invention, wherein, by calling icon fetch interface, the step that read icon is presented to the position of position coordinates also comprises:
According to historical service condition, select the icon of an application;
The icon of selection is presented to the center of positive pentalpha.
According to a further aspect in the invention, the device that provides a kind of icon pentagram to arrange and show, it comprises:
Icon interface module, for setting in advance the icon of a plurality of application, and provides the icon fetch interface of each icon;
Template interface module, for setting in advance the icon pentalpha template of arranging, and the interface of realizing that provides icon pentalpha to arrange template, the icon pentalpha template-setup of arranging has the icon pentalpha coordinate algorithm of arranging; The icon pentalpha coordinate algorithm of arranging calculates a plurality of position coordinateses and makes the line of position coordinates form pentalpha in viewing area;
Template realizes module, and for by calling the arrange interface of realizing of template of icon pentalpha, arrange coordinate algorithm calculate a plurality of position coordinateses of execution icon pentalpha, realizes the icon pentalpha template of arranging;
Icon display module, for by calling icon fetch interface, is presented at read icon the position of position coordinates.
Further, device of the present invention, wherein, pentalpha is positive pentalpha and comprises five outer dead centres, five inner vertexs and ten sidelines; Template interface module comprises:
Coordinate is set up module, and for set up coordinate system in viewing area, the abscissa axis of coordinate system is parallel with two sidelines in ten sidelines, and the size of pentalpha is determined by the size of viewing area;
Computing module, for the coordinate of mid point that calculates five outer dead centres, five inner vertexs and ten sidelines according to outer dead centre to the distance at positive pentalpha center as position coordinates.
Further, device of the present invention, wherein, computing module specifically for:
According to following formula (1) and formula (2), calculate the coordinate (X of five outer dead centres i, Y i) as position coordinates:
X i = r n &times; cos &theta; + r n Y i = r n &times; sin &theta; + r n - - - ( 1 )
&theta; = 18 + 72 &times; i - 1 2 - - - ( 2 )
Wherein, r nrepresent that outer dead centre is to the distance at positive pentalpha center; I represents vertex index value, and vertex index value is from the outer dead centre of positive pentalpha upper right quarter, counterclockwise whole outer dead centres and inner vertex are counted;
According to following formula (3), formula (4) and formula (5), calculate the coordinate (X of five inner vertexs i, Y i) as position coordinates:
X i = r m &times; cos &alpha; + r n Y i = r m &times; sin &alpha; + r n - - - ( 3 )
&alpha; = 54 + 72 &times; i - 2 2 - - - ( 4 )
r m = r n - Y 1 sin ( 36 ) - - - ( 5 )
Wherein, r mrepresent that inner vertex is to the distance at positive pentalpha center; Y 1the ordinate of first outer dead centre while representing vertex index value i=1;
According to following formula (6), calculate the coordinate (X of the mid point in ten sidelines j, Y j) as position coordinates:
X j = X i + X i + 1 2 Y j = Y i + Y i + 1 2 - - - ( 6 )
Wherein, j represents mid point index value, the mid point in the sideline in first outer dead centre left side of mid point index value during from vertex index value i=1, with the mid point counting to whole sidelines counterclockwise.
Further, device of the present invention, wherein, also comprises:
Quantity determination module, for determining the quantity N of icon to be shown, N is positive integer.
Icon display module specifically for:
When 5≤N≤10, call icon fetch interface, five icons to be shown in read N icon to be shown are presented to the position of the coordinate of each outer dead centre, and remaining icon to be shown in read N icon to be shown are presented to the position of the coordinate of each inner vertex;
When 10 < N≤20, call icon fetch interface, ten icons to be shown in read N icon to be shown are presented to the position of the coordinate of each outer dead centre and inner vertex, and remaining icon to be shown in read N icon to be shown are presented to the position of coordinate of the mid point in each sideline.
Further, device of the present invention, wherein, icon display module also for:
According to historical service condition, select the icon of an application;
The icon of selection is presented to the center of positive pentalpha.
The method and apparatus that icon pentagram according to the present invention is arranged and shown, can make icon be pentagram arranges and shows, solved thus in prior art icon arrangement mode and be the netted icon causing of the rectangle single problem of display mode of arranging, obtained and can to icon, carry out the beneficial effect that pentagram is arranged and shown according to number of icons.
Above-mentioned explanation is only the general introduction of technical solution of the present invention, in order to better understand technological means of the present invention, and can be implemented according to the content of instructions, and for above and other objects of the present invention, feature and advantage can be become apparent, below especially exemplified by the specific embodiment of the present invention.
Accompanying drawing explanation
By reading below detailed description of the preferred embodiment, various other advantage and benefits will become cheer and bright for those of ordinary skills.Accompanying drawing is only for the object of preferred implementation is shown, and do not think limitation of the present invention.And in whole accompanying drawing, by identical reference symbol, represent identical parts.In the accompanying drawings:
Fig. 1 shows the method flow diagram of arranging and showing according to the icon pentagram of the embodiment of the present invention one;
Fig. 2 shows the method flow diagram of arranging and showing according to the icon pentagram of the embodiment of the present invention two;
Fig. 3 shows the pentagram schematic diagram according to the embodiment of the present invention two;
Fig. 4 shows the structure drawing of device of arranging and showing according to the icon pentagram of the embodiment of the present invention three;
Fig. 5 shows the structure drawing of device of arranging and showing according to the icon pentagram of the embodiment of the present invention four.
Embodiment
Exemplary embodiment of the present disclosure is described below with reference to accompanying drawings in more detail.Although shown exemplary embodiment of the present disclosure in accompanying drawing, yet should be appreciated that and can realize the disclosure and the embodiment that should do not set forth limits here with various forms.On the contrary, it is in order more thoroughly to understand the disclosure that these embodiment are provided, and can by the scope of the present disclosure complete convey to those skilled in the art.
A kind of method that first embodiment of the invention provides icon pentagram to arrange and show, Fig. 1 shows the method flow diagram of arranging and showing according to the icon pentagram of the embodiment of the present invention one, and as shown in Figure 1, it comprises:
Step S101, set in advance the icon of a plurality of application, and the icon fetch interface of each icon is provided;
Icon comprises the application icon that Android system application icon, iOS system (Apple Macintosh operating system) application icon, WindowsPhone system (Microsoft's mobile phone operating system) application icon, Windows system (Microsoft's computer operating system) application icon etc. can show in operating system, is preferably the icon of ICON form;
Icon fetch interface comprises:
Show initialization interface initView, for the parameter of icon display environment, layout are carried out to initialization;
Icon initialization interface initIcons, for carrying out initialization to icon itself;
Icon is set up interface creatIcons, for reading topology file, application message and icon is bound;
Operation trigger interface touch, for trigger the corresponding actions of icon according to user's operation, the icon that user is shown according to display device, selects application, opens application, checks the operations such as application;
Cloth station interface onLayout, for carrying out display layout according to information such as icon width, icon height, wide high proportion, image zooming ratio, father's container width, father's container heights to icon;
Icon display interface AppWallCellLayout, for by icon, according to the coordinate position of icon, the desktop in operating system shows;
Icon arranges interface Setting, the parameter showing for editor's icon is set.
Icon fetch interface is by calling the information such as above-mentioned interface and icon parameter, image data, coordinates of icon, icon index value, and icon is presented to the icon pentalpha determined coordinate position of the template place that arranges;
Step S102, set in advance the icon pentalpha template of arranging, and the interface of realizing that provides icon pentalpha to arrange template, the icon pentalpha template-setup of arranging has the icon pentalpha coordinate algorithm of arranging; The icon pentalpha coordinate algorithm of arranging calculates a plurality of position coordinateses and makes the line of position coordinates form pentalpha in viewing area;
Pentalpha both can adopt positive pentalpha, also can adopt the pentalpha of unequal pentalpha between each limit length of side and other types;
Step S103, by calling the arrange interface of realizing of template of icon pentalpha, arrange coordinate algorithm calculate a plurality of position coordinateses of execution icon pentalpha, realizes the icon pentalpha template of arranging;
Step S104, by calling icon fetch interface, read icon is presented to the position of position coordinates.
The method of arranging and showing according to the icon pentagram of the embodiment of the present invention one, can make icon be pentalpha arranges and shows, solved thus in prior art icon arrangement mode and be the netted icon causing of the rectangle single problem of display mode of arranging, obtained icon is carried out to the beneficial effect that pentalpha is arranged and shown.
A kind of method that second embodiment of the invention provides icon pentagram to arrange and show, Fig. 2 shows the method flow diagram of arranging and showing according to the icon pentagram of the embodiment of the present invention two, and as shown in Figure 2, it comprises:
Step S201, set in advance the icon of a plurality of application, and the icon fetch interface of each icon is provided;
Step S202, set in advance the icon pentalpha template of arranging, and the interface of realizing that provides icon pentalpha to arrange template, the icon pentalpha template-setup of arranging has the icon pentalpha coordinate algorithm of arranging; The icon pentalpha coordinate algorithm of arranging calculates a plurality of position coordinateses and makes the line of position coordinates form pentalpha in viewing area;
Fig. 3 shows the pentagram schematic diagram according to the embodiment of the present invention two, and as shown in Figure 3, pentalpha is positive pentalpha and comprises on five outer dead centres 901, five inner vertexs 902 and 903, sideline, ten sidelines having mid point 904;
The icon pentalpha coordinate algorithm of arranging can comprise:
Step S211, in viewing area, set up coordinate system, the abscissa axis of coordinate system is parallel with two sidelines in ten sidelines, and the size of pentalpha is determined by the size of viewing area;
The axis of ordinates of coordinate system is vertical with the abscissa axis of coordinate system; Five outer dead centres through positive pentalpha are done circle, and ordinate and horizontal ordinate are all tangent with this circle;
Step S212, according to outer dead centre, to the distance at positive pentalpha center, calculate five outer dead centres, five inner vertexs and ten sidelines the coordinate of mid point as position coordinates;
Wherein, step S212 can comprise:
Step S221, the following formula (1) of basis and formula (2) calculate the coordinate (X of five outer dead centres i, Y i) as position coordinates:
X i = r n &times; cos &theta; + r n Y i = r n &times; sin &theta; + r n - - - ( 1 )
&theta; = 18 + 72 &times; i - 1 2 - - - ( 2 )
Wherein, r nrepresent that outer dead centre is to the distance at positive pentalpha center; I represents vertex index value, and vertex index value is from the outer dead centre of positive pentalpha upper right quarter, counterclockwise whole outer dead centres and inner vertex are counted;
Below by concrete example, be introduced:
Example one, the order of outer dead centre from the outer dead centre of positive pentalpha upper right quarter, comprises whole outer dead centres and inner vertex with counter clockwise direction, according to formula (1) and formula (2), tries to achieve:
The coordinate of the 1st outer dead centre (i=1) is (r n* sin18+r n, r n* sin18+r n);
The coordinate of the 2nd outer dead centre (i=3) is (r n* sin90+r n, r n* sin90+r n);
The coordinate of the 3rd outer dead centre (i=5) is (r n* sin162+r n, r n* sin162+r n);
The coordinate of the 4th outer dead centre (i=7) is (r n* sin134+r n, r n* sin234+r n);
The coordinate of the 5th outer dead centre (i=9) is (r n* sin306+r n, r n* sin306+r n);
Step S222, the following formula (3) of basis, formula (4) and formula (5) calculate the coordinate (X of five inner vertexs i, Y i) as position coordinates:
X i = r m &times; cos &alpha; + r n Y i = r m &times; sin &alpha; + r n - - - ( 3 )
&alpha; = 54 + 72 &times; i - 2 2 - - - ( 4 )
r m = r n - Y 1 sin ( 36 ) - - - ( 5 )
Wherein, r mrepresent that inner vertex is to the distance at positive pentalpha center; Y 1the ordinate of first outer dead centre while representing vertex index value i=1;
Below by concrete example, be introduced:
Example two, the order of inner vertex from the outer dead centre of positive pentalpha upper right quarter, comprises whole outer dead centres and inner vertex with counter clockwise direction, according to formula (3), formula (4) and formula (5), tries to achieve:
The coordinate of the 1st inner vertex (i=2) is (r m* sin54+r n, r m* sin54+r n);
The coordinate of the 2nd inner vertex (i=4) is (r m* sin126+r n, r m* sin126+r n);
The coordinate of the 3rd inner vertex (i=6) is (r m* sin198+r n, r m* sin198+r n);
The coordinate of the 4th inner vertex (i=8) is (r m* sin270+r n, r m* sin270+r n);
The coordinate of the 5th inner vertex (i=10) is (r m* sin342+r n, r m* sin342+r n);
Wherein, r m = sin 18 sin 36 &times; r n ;
Step S223, the following formula (6) of basis calculate the coordinate (X of the mid point in ten sidelines j, Y j) as position coordinates:
X j = X i + X i + 1 2 Y j = Y i + Y i + 1 2 - - - ( 6 )
Wherein, j represents mid point index value, the mid point in the sideline in first outer dead centre left side of mid point index value during from vertex index value i=1, with the mid point counting to whole sidelines counterclockwise;
Below by concrete example, be introduced:
Example three, the mid point in the sideline in first outer dead centre left side of the order of mid point when counterclockwise from i=1, comprises the mid point in whole 10 sidelines, according to formula (6), tries to achieve:
Article 1, the coordinate of the mid point (j=1) in sideline is
Figure BDA0000399863490000111
Article 2, the coordinate of the mid point (j=2) in sideline is
Figure BDA0000399863490000112
……
Article 9, the coordinate of the mid point (j=9) in sideline is
Figure BDA0000399863490000113
Article 10, the coordinate of the mid point (j=10) in sideline is
Figure BDA0000399863490000114
Wherein, (X 1, Y 1), (X 2, Y 2) ... (X 9, Y 9), (X 10, Y 10) be respectively outer dead centre that above-mentioned steps S221 and step S222 calculate and the coordinate of inner vertex;
Step S203, determine the quantity N of icon to be shown, N is positive integer;
Step S204, by calling the arrange interface of realizing of template of icon pentalpha, arrange coordinate algorithm calculate a plurality of position coordinateses of execution icon pentalpha, realizes the icon pentalpha template of arranging;
Step S205, by calling icon fetch interface, read icon is presented to the position of position coordinates;
Step S205 specifically comprises:
Step S231, when 5≤N≤10, call icon fetch interface, five icons to be shown in read N icon to be shown are presented to the position of the coordinate of each outer dead centre, and remaining icon to be shown in read N icon to be shown are presented to the position of the coordinate of each inner vertex;
Step S232, when 10 < N≤20, call icon fetch interface, ten icons to be shown in read N icon to be shown are presented to the position of the coordinate of each outer dead centre and inner vertex, and remaining icon to be shown in read N icon to be shown are presented to the position of coordinate of the mid point in each sideline.
By technique scheme, except carrying out the pentagram demonstration of arranging to icon, can also icon to be shown be placed on to the position of the mid point in outer dead centre, inner vertex or sideline according to the quantity of icon to be shown, icon is arranged more even.
Further, method of the present invention, wherein, step S205 is by calling icon fetch interface, and the step that read icon is presented to the position of position coordinates also comprises:
Step S241, according to historical service condition, select the icon of an application;
Step S242, the icon of selection is presented to the center of positive pentalpha.
By step S241 and S242, make user according to historical service condition Quick positioning map mark.Historical service condition is preferably: the corresponding number of times being opened in Preset Time that is applied in of icon.
The device that third embodiment of the invention provides a kind of icon pentagram to arrange and show, Fig. 4 shows the structure drawing of device of arranging and showing according to the icon pentagram of the embodiment of the present invention three, and as shown in Figure 4, it comprises:
Icon interface module 100, for setting in advance the icon of a plurality of application, and provides the icon fetch interface of each icon;
Template interface module 200, for setting in advance the icon pentalpha template of arranging, and the interface of realizing that provides icon pentalpha to arrange template, the icon pentalpha template-setup of arranging has the icon pentalpha coordinate algorithm of arranging; The icon pentalpha coordinate algorithm of arranging calculates a plurality of position coordinateses and makes the line of position coordinates form pentalpha in viewing area;
Template realizes module 300, and for by calling the arrange interface of realizing of template of icon pentalpha, arrange coordinate algorithm calculate a plurality of position coordinateses of execution icon pentalpha, realizes the icon pentalpha template of arranging;
Icon display module 400, for by calling icon fetch interface, is presented at read icon the position of position coordinates.
The icon pentagram that the 3rd embodiment of the present invention the provides display device of arranging, it is the arrange implement device of the method that shows of icon pentagram that first embodiment of the invention provides, the method that its concrete principle provides with first embodiment of the invention is identical, therefore repeats no more.
The device of arranging and showing according to the icon pentagram of the embodiment of the present invention three, can on terminal device, make icon be pentagram arranges and shows, solved thus in prior art icon arrangement mode and be the netted icon causing of the rectangle single problem of display mode of arranging, obtained and can carry out the beneficial effect that pentagram is arranged and shown to icon.
The device that four embodiment of the invention provides a kind of icon pentagram to arrange and show, Fig. 5 shows the structure drawing of device of arranging and showing according to the icon pentagram of the embodiment of the present invention four, and as shown in Figure 5, it comprises:
Icon interface module 100, for setting in advance the icon of a plurality of application, and provides the icon fetch interface of each icon;
Template interface module 200, for setting in advance the icon pentalpha template of arranging, and the interface of realizing that provides icon pentalpha to arrange template, the icon pentalpha template-setup of arranging has the icon pentalpha coordinate algorithm of arranging; The icon pentalpha coordinate algorithm of arranging calculates a plurality of position coordinateses and makes the line of position coordinates form pentalpha in viewing area;
Template realizes module 300, and for by calling the arrange interface of realizing of template of icon pentalpha, arrange coordinate algorithm calculate a plurality of position coordinateses of execution icon pentalpha, realizes the icon pentalpha template of arranging;
Icon display module 400, for by calling icon fetch interface, is presented at read icon the position of position coordinates.
Further, device of the present invention, wherein, pentalpha is positive pentalpha and comprises five outer dead centres, five inner vertexs and ten sidelines; Template interface module 200 comprises:
Coordinate is set up module 201, and for set up coordinate system in viewing area, the abscissa axis of coordinate system is parallel with two sidelines in ten sidelines, and the size of pentalpha is determined by the size of viewing area;
Computing module 202, for the coordinate of mid point that calculates five outer dead centres, five inner vertexs and ten sidelines according to outer dead centre to the distance at positive pentalpha center as position coordinates.
Further, device of the present invention, wherein, computing module 202 specifically for:
According to following formula (1) and formula (2), calculate the coordinate (X of five outer dead centres i, Y i) as position coordinates:
X i = r n &times; cos &theta; + r n Y i = r n &times; sin &theta; + r n - - - ( 1 )
&theta; = 18 + 72 &times; i - 1 2 - - - ( 2 )
Wherein, r nrepresent that outer dead centre is to the distance at positive pentalpha center; I represents vertex index value, and vertex index value is from the outer dead centre of positive pentalpha upper right quarter, counterclockwise whole outer dead centres and inner vertex are counted;
According to following formula (3), formula (4) and formula (5), calculate the coordinate (X of five inner vertexs i, Y i) as position coordinates:
X i = r m &times; cos &alpha; + r n Y i = r m &times; sin &alpha; + r n - - - ( 3 )
&alpha; = 54 + 72 &times; i - 2 2 - - - ( 4 )
r m = r n - Y 1 sin ( 36 ) - - - ( 5 )
Wherein, r mrepresent that inner vertex is to the distance at positive pentalpha center; Y 1the ordinate of first outer dead centre while representing vertex index value i=1;
According to following formula (6), calculate the coordinate (X of the mid point in ten sidelines j, Y j) as position coordinates:
X j = X i + X i + 1 2 Y j = Y i + Y i + 1 2 - - - ( 6 )
Wherein, j represents mid point index value, the mid point in the sideline in first outer dead centre left side of mid point index value during from vertex index value i=1, with the mid point counting to whole sidelines counterclockwise.
Further, device of the present invention, wherein, also comprises:
Quantity determination module 500, for determining the quantity N of icon to be shown, N is positive integer.
Icon display module 400 specifically for:
When 5≤N≤10, call icon fetch interface, five icons to be shown in read N icon to be shown are presented to the position of the coordinate of each outer dead centre, and remaining icon to be shown in read N icon to be shown are presented to the position of the coordinate of each inner vertex;
When 10 < N≤20, call icon fetch interface, ten icons to be shown in read N icon to be shown are presented to the position of the coordinate of each outer dead centre and inner vertex, and remaining icon to be shown in read N icon to be shown are presented to the position of coordinate of the mid point in each sideline.
Further, device of the present invention, wherein, icon display module 400 also for:
According to historical service condition, select the icon of an application;
The icon of selection is presented to the center of positive pentalpha.
The icon pentagram that the 4th embodiment of the present invention the provides display device of arranging, it is the arrange implement device of the method that shows of icon pentagram that second embodiment of the invention provides, the method that its concrete principle provides with second embodiment of the invention is identical, therefore repeats no more.
The icon pentagram providing by the 4th the embodiment of the present invention display device of arranging, except carrying out the pentagram demonstration of arranging to icon, can also be according to the quantity of icon to be shown, icon to be shown is placed on to the position of the mid point in outer dead centre, inner vertex or sideline, icon is arranged more even; And, can make user according to historical service condition Quick positioning map mark.
The algorithm providing at this is intrinsic not relevant to any certain computer, virtual system or miscellaneous equipment with demonstration.Various general-purpose systems also can with based on using together with this teaching.According to description above, it is apparent constructing the desired structure of this type systematic.In addition, the present invention is not also for any certain programmed language.It should be understood that and can utilize various programming languages to realize content of the present invention described here, and the description of above language-specific being done is in order to disclose preferred forms of the present invention.
In the instructions that provided herein, a large amount of details have been described.Yet, can understand, embodiments of the invention can not put into practice in the situation that there is no these details.In some instances, be not shown specifically known method, structure and technology, so that not fuzzy understanding of this description.
Similarly, be to be understood that, in order to simplify the disclosure and to help to understand one or more in each inventive aspect, in the above in the description of exemplary embodiment of the present invention, each feature of the present invention is grouped together into single embodiment, figure or sometimes in its description.Yet, the method for the disclosure should be construed to the following intention of reflection: the present invention for required protection requires than the more feature of feature of clearly recording in each claim.Or rather, as reflected in claims below, inventive aspect is to be less than all features of disclosed single embodiment above.Therefore, claims of following embodiment are incorporated to this embodiment thus clearly, and wherein each claim itself is as independent embodiment of the present invention.
Those skilled in the art are appreciated that and can the module in the equipment in embodiment are adaptively changed and they are arranged in one or more equipment different from this embodiment.Module in embodiment or unit or assembly can be combined into a module or unit or assembly, and can put them into a plurality of submodules or subelement or sub-component in addition.At least some in such feature and/or process or unit are mutually repelling, and can adopt any combination to combine all processes or the unit of disclosed all features in this instructions (comprising claim, summary and the accompanying drawing followed) and disclosed any method like this or equipment.Unless clearly statement in addition, in this instructions (comprising claim, summary and the accompanying drawing followed) disclosed each feature can be by providing identical, be equal to or the alternative features of similar object replaces.
In addition, those skilled in the art can understand, although embodiment more described herein comprise some feature rather than further feature included in other embodiment, the combination of the feature of different embodiment means within scope of the present invention and forms different embodiment.For example, in the following claims, the one of any of embodiment required for protection can be used with array mode arbitrarily.
All parts embodiment of the present invention can realize with hardware, or realizes with the software module moved on one or more processor, or realizes with their combination.It will be understood by those of skill in the art that and can use in practice microprocessor or digital signal processor (DSP) to realize according to the arrange some or all functions of the some or all parts in the device showing of the icon pentagram of the embodiment of the present invention.The present invention for example can also be embodied as, for carrying out part or all equipment or device program (, computer program and computer program) of method as described herein.Realizing program of the present invention and can be stored on computer-readable medium like this, or can there is the form of one or more signal.Such signal can be downloaded and obtain from internet website, or provides on carrier signal, or provides with any other form.
It should be noted above-described embodiment the present invention will be described rather than limit the invention, and those skilled in the art can design alternative embodiment in the situation that do not depart from the scope of claims.In the claims, any reference symbol between bracket should be configured to limitations on claims.Word " comprises " not to be got rid of existence and is not listed as element or step in the claims.Being positioned at word " " before element or " one " does not get rid of and has a plurality of such elements.The present invention can be by means of including the hardware of some different elements and realizing by means of the computing machine of suitably programming.In having enumerated the unit claim of some devices, several in these devices can be to carry out imbody by same hardware branch.The use of word first, second and C grade does not represent any order.Can be title by these word explanations.

Claims (10)

1. the method that icon pentagram is arranged and shown, it comprises:
Set in advance the icon of a plurality of application, and the icon fetch interface of icon described in each is provided;
Set in advance the icon pentalpha template of arranging, and the interface of realizing that provides described icon pentalpha to arrange template, the described icon pentalpha template-setup of arranging has the icon pentalpha coordinate algorithm of arranging; The described icon pentalpha coordinate algorithm of arranging calculates a plurality of position coordinateses and makes the line of described position coordinates form pentalpha in viewing area;
By calling the arrange interface of realizing of template of described icon pentalpha, carry out arrange coordinate algorithm calculate a plurality of described position coordinateses of described icon pentalpha, realize the described icon pentalpha template of arranging;
By calling described icon fetch interface, read icon is presented to the position of described position coordinates.
2. method according to claim 1, wherein, described pentalpha is positive pentalpha and comprises five outer dead centres, five inner vertexs and ten sidelines; The described icon pentalpha coordinate algorithm of arranging specifically comprises:
In described viewing area, set up coordinate system, the abscissa axis of described coordinate system is parallel with two sidelines in described ten sidelines, and the size of described pentalpha is determined by the size of described viewing area;
According to described outer dead centre, to the distance at described positive pentalpha center, calculate the coordinate of mid point in five described outer dead centres, five described inner vertexs and ten described sidelines as described position coordinates.
3. method according to claim 2, wherein, the coordinate that calculates the mid point in five described outer dead centres, five described inner vertexs and ten described sidelines according to described outer dead centre to the distance at described positive pentalpha center comprises as the step of described position coordinates:
According to following formula (1) and formula (2), calculate the coordinate (X of five described outer dead centres i, Y i) as described position coordinates:
X i = r n &times; cos &theta; + r n Y i = r n &times; sin &theta; + r n - - - ( 1 )
&theta; = 18 + 72 &times; i - 1 2 - - - ( 2 )
Wherein, r nrepresent that described outer dead centre is to the distance at described positive pentalpha center; I represents vertex index value, and described vertex index value is from the described outer dead centre of described positive pentalpha upper right quarter, counterclockwise whole described outer dead centres and described inner vertex are counted;
According to following formula (3), formula (4) and formula (5), calculate the coordinate (X of five described inner vertexs i, Y i) as described position coordinates:
X i = r m &times; cos &alpha; + r n Y i = r m &times; sin &alpha; + r n - - - ( 3 )
&alpha; = 54 + 72 &times; i - 2 2 - - - ( 4 )
r m = r n - Y 1 sin ( 36 ) - - - ( 5 )
Wherein, r mrepresent that described inner vertex is to the distance at described positive pentalpha center; Y 1the ordinate of outer dead centre described in first while representing described vertex index value i=1;
According to following formula (6), calculate the coordinate (X of the mid point in ten described sidelines j, Y j) as described position coordinates:
X j = X i + X i + 1 2 Y j = Y i + Y i + 1 2 - - - ( 6 )
Wherein, j represents mid point index value, described in first during from described vertex index value i=1 of described mid point index value the mid point in the sideline in outer dead centre left side, with the mid point counting to whole described sidelines counterclockwise.
4. method according to claim 3, wherein,
Setting in advance the icon pentalpha template of arranging, and provide described icon pentalpha arrange template realize interface after; By calling the arrange interface of realizing of template of described icon pentalpha, carry out arrange coordinate algorithm calculate the coordinate of icon described in each in described viewing area of described icon pentalpha, realize described icon pentalpha and arrange before template;
Also comprise:
Determine the quantity N of described icon to be shown, N is positive integer.
By calling described icon fetch interface, the step that read icon is presented to the position of described position coordinates comprises:
When 5≤N≤10, call described icon fetch interface, five described icons to be shown in read N described icon to be shown are presented to the position of the coordinate of outer dead centre described in each, and remaining described icon to be shown in read N described icon to be shown are presented to the position of the coordinate of inner vertex described in each;
When 10 < N≤20, call described icon fetch interface, ten described icons to be shown in read N described icon to be shown are presented to the position of the coordinate of outer dead centre and described inner vertex described in each, and remaining described icon to be shown in read N described icon to be shown are presented to the position of coordinate of the mid point in each described sideline.
5. according to the method described in claim 2~4, wherein, by calling described icon fetch interface, the step that read icon is presented to the position of described position coordinates also comprises:
According to historical service condition, select the described icon of a described application;
The described icon of selecting is presented to the center of described positive pentalpha.
6. the device that icon pentagram is arranged and shown, it comprises:
Icon interface module, for setting in advance the icon of a plurality of application, and provides the icon fetch interface of icon described in each;
Template interface module, for setting in advance the icon pentalpha template of arranging, and the interface of realizing that provides described icon pentalpha to arrange template, the described icon pentalpha template-setup of arranging has the icon pentalpha coordinate algorithm of arranging; The described icon pentalpha coordinate algorithm of arranging calculates a plurality of position coordinateses and makes the line of described position coordinates form pentalpha in viewing area;
Template realizes module, for by calling the arrange interface of realizing of template of described icon pentalpha, carries out arrange coordinate algorithm calculate a plurality of described position coordinateses of described icon pentalpha, realizes the described icon pentalpha template of arranging;
Icon display module, for by calling icon fetch interface, is presented at read icon the position of described position coordinates.
7. device according to claim 6, wherein, described pentalpha is positive pentalpha and comprises five outer dead centres, five inner vertexs and ten sidelines; Described template interface module comprises:
Coordinate is set up module, and for set up coordinate system in described viewing area, the abscissa axis of described coordinate system is parallel with two sidelines in described ten sidelines, and the size of described pentalpha is determined by the size of described viewing area;
Computing module, for the coordinate of mid point that calculates five described outer dead centres, five described inner vertexs and ten described sidelines according to described outer dead centre to the distance at described positive pentalpha center as described position coordinates.
8. device according to claim 7, wherein, described computing module specifically for:
According to following formula (1) and formula (2), calculate the coordinate (X of five described outer dead centres i, Y i) as described position coordinates:
X i = r n &times; cos &theta; + r n Y i = r n &times; sin &theta; + r n - - - ( 1 )
&theta; = 18 + 72 &times; i - 1 2 - - - ( 2 )
Wherein, r nrepresent that described outer dead centre is to the distance at described positive pentalpha center; I represents vertex index value, and described vertex index value is from the described outer dead centre of described positive pentalpha upper right quarter, counterclockwise whole described outer dead centres and described inner vertex are counted;
According to following formula (3), formula (4) and formula (5), calculate the coordinate (X of five described inner vertexs i, Y i) as described position coordinates:
X i = r m &times; cos &alpha; + r n Y i = r m &times; sin &alpha; + r n - - - ( 3 )
&alpha; = 54 + 72 &times; i - 2 2 - - - ( 4 )
r m = r n - Y 1 sin ( 36 ) - - - ( 5 )
Wherein, r mrepresent that described inner vertex is to the distance at described positive pentalpha center; Y 1the ordinate of outer dead centre described in first while representing described vertex index value i=1;
According to following formula (6), calculate the coordinate (X of the mid point in ten described sidelines j, Y j) as described position coordinates:
X j = X i + X i + 1 2 Y j = Y i + Y i + 1 2 - - - ( 6 )
Wherein, j represents mid point index value, described in first during from described vertex index value i=1 of described mid point index value the mid point in the sideline in outer dead centre left side, with the mid point counting to whole described sidelines counterclockwise.
9. device according to claim 8, wherein, also comprises:
Quantity determination module, for determining the quantity N of described icon to be shown, N is positive integer.
Described icon display module specifically for:
When 5≤N≤10, call described icon fetch interface, five described icons to be shown in read N described icon to be shown are presented to the position of the coordinate of outer dead centre described in each, and remaining described icon to be shown in read N described icon to be shown are presented to the position of the coordinate of inner vertex described in each;
When 10 < N≤20, call described icon fetch interface, ten described icons to be shown in read N described icon to be shown are presented to the position of the coordinate of outer dead centre and described inner vertex described in each, and remaining described icon to be shown in read N described icon to be shown are presented to the position of coordinate of the mid point in each described sideline.
10. according to the device described in claim 7~9, wherein, described icon display module also for:
According to historical service condition, select the described icon of a described application;
The described icon of selecting is presented to the center of described positive pentalpha.
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 true CN103605451A (en) 2014-02-26
CN103605451B 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
亦云: "桌面图标随心排 方便访问乐无穷", 《电脑爱好者》, no. 11, 30 June 2011 (2011-06-30), pages 32 *
明月伟等: "桌面小工具funnydesk的设计与实现", 《信息与电脑》, no. 8, 30 April 2010 (2010-04-30), pages 50 - 51 *
杨峰: "桌面图标任我排,想怎么排就怎么排", 《软件频道》, 28 November 2009 (2009-11-28) *
马小薏等: "图形用户接口中的图标(Icon)的设计", 《计算机应用研究》, no. 6, 30 June 1994 (1994-06-30), pages 37 - 39 *

Also Published As

Publication number Publication date
CN103605451B (en) 2017-01-18

Similar Documents

Publication Publication Date Title
US20060008779A1 (en) Computer method for controlling a display, and graphical tools for on-screen analysis
US10139989B2 (en) Mapping visualization contexts
AU2011200911B2 (en) Graph display apparatus, recording medium on which program is recorded and graph display method
US8576230B2 (en) Graph display apparatus, recording medium on which program is recorded, and graph display method
CN103605804A (en) Method and system for ranking desktop objects
CN103279266A (en) Method for achieving user interface of mobile device and mobile device
CN107632769B (en) Map display method and device, electronic equipment and storage medium
CN102567008A (en) Device and method for generating real-time small trend chart of quoted price of financial tape reading software
CN110599293A (en) Index information display method and device combined with visual map and storage medium
CN102043572A (en) Device and method for displaying and operating screen of mobile device
US9678645B2 (en) Interactive map markers
CN103955476A (en) Method and device for drawing page tab head in browser and browser
CN110489041B (en) Method, device, equipment and medium for automatically aligning small program dragging elements
CN111025039A (en) Method, device, equipment and medium for testing accuracy of touch display screen
CN109582269B (en) Physical splicing screen display method and device and terminal equipment
CN103543912A (en) Triangular arrangement display method and device for icons
US10216363B2 (en) Navigating a network of options
US8959444B2 (en) Presenting a navigation order of shapes
CN103605451A (en) Method and device for pentagonally arranging and displaying icons
CN110674209A (en) Data display method, equipment and storage medium
CN113608731B (en) Building block programming checkpoint updating method and device, terminal equipment and storage medium
CN115794980A (en) Data display method, equipment, device and medium
CN107390995A (en) A kind of ladder numerical value method to set up and device
CN103677506A (en) Desktop switching system and method
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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20170118

Termination date: 20211022