Content of the invention
The embodiment of the present invention provides a kind of desktop icons to arrange processing method and processing device, in order to solve prior art in adjustmentDuring picture mark position, need repeatedly adjustment that the order of icon could be kept constant, lead to complex operation, the low problem of motility.
The embodiment of the present invention proposes a kind of desktop icons arrangement processing method, comprising:
The icon of multiple application programs is set on the table, and each icon is separately positioned in an icon area, each iconRegion uniquely corresponds to a zone number respectively, and each zone number subtracts one successively in order on the direction of line or addsOne, on the direction of described line, each icon area is sequentially connected;
If user is detected drag operation to be carried out to the first icon in the first icon area, with dragging of described userDrag track and drag described first icon, if judging to know that described first icon is dragged in the range of the second icon area,According to following reordering rule, rearrangement is entered to the icon on described desktop;Described reordering rule includes:
Described first icon is arranged in described second icon area;
On the direction of described line, in described first icon area to described second icon area, remove described first iconOther outer each icons, are separately positioned in each target icon region, and the corresponding zone number in described target icon region is comparedBefore each icon, icon area corresponding zone number in place subtracts one or Jia one.
Optionally, the corresponding zone number in described target icon region corresponds to compared to place icon area before each iconZone number subtract one or Jia one, particularly as follows:
If the zone number of described first icon area is bigger than the zone number of described second icon area, described targetThe corresponding zone number of icon area adds one compared to icon area corresponding zone number in place before each icon.
Optionally, the corresponding zone number in described target icon region corresponds to compared to place icon area before each iconZone number subtract one or Jia one, particularly as follows:
If the zone number of described first icon area is less than the zone number of described second icon area, described targetThe corresponding zone number of icon area subtracts one compared to icon area corresponding zone number in place before each icon.
Optionally, described judgement knows that the scope that described first icon is dragged to the second icon area includes:
Obtain the reference point coordinates (x of described first icon in real time1,y1), if judging to know with reference to point coordinates (x1,y1), withAnd second icon area reference point coordinates (x2,y2) meet following conditions it is determined that described first icon is dragged to the second figureThe scope in mark region;
Described condition is:
x2+d1> x1
x2< x1+d1
y2+d2> y1
y2< y1+d2
Wherein, d1 is the length of icon area, and d2 is the corresponding height of icon area.
The desktop icons that the embodiment of the present invention proposes arrange processing method by entering to the icon area of icon each on desktopLine number, and when user pulls the first icon to the second icon area, the numbering based on icon area is resequenced to icon,The order avoiding each icon is disturbed, and compared with prior art, has the advantages that motility is high.
The embodiment of the present invention proposes a kind of desktop icons arrangement processing meanss, comprising:
Setup module, for being separately positioned on an icon area by the icon of the multiple application programs arranging on desktopInterior so that each icon area uniquely corresponds to a zone number respectively, and each zone number on the direction of line in orderSubtract one successively or Jia one, each icon area is sequentially connected on the direction of described line;
Processing module, if drag operation is carried out to the first icon in the first icon area for user is detected, withThe dragging track described user drags described first icon, if judging to know that described first icon is dragged to the second icon areaIn the range of domain, then according to following reordering rule, rearrangement is entered to the icon on described desktop;
Wherein, described reordering rule includes:
Described first icon is arranged in described second icon area;
On the direction of described line, in described first icon area to described second icon area, remove described first iconOther outer each icons, are separately positioned in each target icon region, and the corresponding zone number in described target icon region is comparedBefore each icon, icon area corresponding zone number in place subtracts one or Jia one.
Optionally, described processing module, if specifically for described first icon area zone number than described second figureThe zone number in mark region is big, then the corresponding zone number in described target icon region is compared to place icon area before each iconThe corresponding zone number in domain adds one.
Optionally, described processing module, if specifically for described first icon area zone number than described second figureThe zone number in mark region is little, then the corresponding zone number in described target icon region is compared to place icon area before each iconThe corresponding zone number in domain subtracts one.
Optionally, described processing module, is additionally operable to obtain in real time the reference point coordinates (x of described first icon1,y1), if sentencingBreak and know with reference to point coordinates (x1,y1), and the reference point coordinates (x of the second icon area2,y2) meet following conditions it is determined thatDescribed first icon is dragged to the scope of the second icon area;
Described condition is:
x2+d1> x1
x2< x1+d1
y2+d2> y1
y2< y1+d2
Wherein, d1 is the length of icon area, and d2 is the corresponding height of icon area.
The desktop icons that the embodiment of the present invention proposes arrange processing meanss by entering to the icon area of icon each on desktopLine number, and when user pulls the first icon to the second icon area, the numbering based on icon area is resequenced to icon,The order avoiding each icon is disturbed, and compared with prior art, has the advantages that motility is high.
Specific embodiment
Purpose, technical scheme and advantage for making the embodiment of the present invention are clearer, below in conjunction with the embodiment of the present inventionIn accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described it is clear that described embodiment isA part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, ordinary skill peopleThe every other embodiment that member is obtained on the premise of not making creative work, broadly falls into the scope of protection of the invention.
Fig. 1 shows that the desktop icons that one embodiment of the invention provides arrange the schematic flow sheet of processing method, referring to figure1, this desktop icons arrangement processing method includes:
The 110th, the icon of multiple application programs is set on the table, and each icon is separately positioned in an icon area, respectivelyIcon area respectively uniquely corresponds to a zone number, and each zone number subtract one successively in order on the direction of line orPlus one, each icon area is sequentially connected on the direction of described line.
Referring to the structural representation of user terminal desktop in the face icon arrangement processing method shown in Fig. 2, to desktopOn icon and its zone number of place icon area illustrate:
4*4 icon is provided with the desktop shown in Fig. 2, each icon is separately positioned in an icon area, hereinIcon area is the little square frame that longitudinal dotted line and horizontal dotted line intersect composition, common 4*4;As shown in Figure 2, icon area willMore than the region shared by icon.
The mode that each icon area is numbered includes: each zone number adds on the direction of line in order successivelyOne;Line direction herein has multiple, for example: in each row, icon area is increased successively by left-to-right numbering, and adjacentIn two row icon area, the numbering of the leftmost icon area of previous row is less by 1 than the numbering of rear a line Far Left icon area;OrPerson is that in each column, the icon area right side is top to bottm numbered and increased successively, in adjacent two row icon area, previous column underThe numbering of side icon area is less by 1 than the numbering of rear string the top icon area;In above two example, in adjacent rows/rowThe end of previous row/column be connected with the beginning of a rear row/column;Concrete connected mode is not defined herein.
Taking the line direction (line shown in solid) shown in Fig. 2 as a example, the numbering of each icon area is as follows: the first rowIt is from left to right 1-4;Second row is 5-8 from right to left;The third line is from left to right 9-12;Fourth line is 13-16 from right to left.
It will be appreciated that the scheme subtracting successively in order on the direction of line using each zone number and above-mentioned sideCase is similar, specifically refer to such scheme, is no longer repeated herein.
In addition, understandable be, the number of the icon area on desktop is more than or equal to the number of icon, so that oftenIndividual icon has corresponding icon area.
If 120 detect user carries out drag operation to the first icon in the first icon area, with described userDragging track drag described first icon, if judge know that described first icon is dragged to the scope of the second icon areaInterior, then according to following reordering rule, rearrangement is entered to the icon on described desktop;Described reordering rule includes:
Described first icon is arranged in described second icon area;
On the direction of described line, in described first icon area to described second icon area, remove described first iconOther outer each icons, are separately positioned in each target icon region, and the corresponding zone number in described target icon region is comparedBefore each icon, icon area corresponding zone number in place subtracts one or Jia one.
It should be noted that when user pulls the first icon by mobile terminal touch screen, mobile terminal real-time detectionThe position coordinateses of the first icon, and the position coordinateses of the real-time location coordinates of the first icon and the second icon area are carried out rightRatio is if mobile terminal judges to know that the first icon is dragged in the range of the second icon area, based on default reordering ruleRearrangement is entered to the icon on desktop.
Desktop icons provided in an embodiment of the present invention arrange processing method by entering to the icon area of icon each on desktopLine number, and when user pulls the first icon to the second icon area, the numbering based on icon area is resequenced to icon,The order avoiding each icon is disturbed, and compared with prior art, has the advantages that motility is high.
Referring to Fig. 2, the reordering rule in the present embodiment is described in detail:
The numbering that the direction of line is exemplified as each icon area is as follows: the first row is from left to right 1-4;Second row from a left side toRight is 5-8;The third line is from left to right 9-12;Fourth line is from left to right 13-16.
First icon is exemplified as the calendar icon of the third line first, and the second icon area is the mailbox of the first row the 3rdThe corresponding icon area of icon.
When the first icon is drawn in the range of the second icon area user.
First, the first icon is arranged in the second icon area;
Secondly, will be each for other in addition to the first icon in corresponding for the first icon the first icon area and the second icon areaIcon, is separately positioned in each target icon region.
Wherein, other each icons include: the 4th icon of mailbox icon, the first row, four icons of the second row.
Before and after rearrangement, other corresponding zone numbers of each icon place icon area add one.
For example: before rearrangement, it is 8 positioned at the second row corresponding zone number of communication icon place icon area of the 4th,After rearrangement, communication icon is arranged at first icon area of the third line, and the corresponding zone number of this icon area is 9.
For example: before rearrangement, the corresponding zone number of icon area that mailbox icon is located is 3, after rearrangement, mailbox icon quiltIt is arranged at the icon area of the first row the 4th, the corresponding zone number of this icon area is 4.
If it will be appreciated that the zone number of the first icon area is bigger than the zone number of the second icon area, describedThe corresponding zone number in target icon region adds one compared to icon area corresponding zone number in place before each icon.
If the zone number of described first icon area is less than the zone number of described second icon area, described targetThe corresponding zone number of icon area subtracts one compared to icon area corresponding zone number in place before each icon.
For example: the first icon is the mailbox icon of the first row the 3rd, the second icon area is the day of the third line firstGo through the corresponding icon area of icon;Then understandable be, before and after retaking, other corresponding regions of each icon place icon areaNumbering subtracts one, and detailed process refer to the calendar icon that the first icon is the third line first, and the second icon area is the first rowThe example of the icon area that the mailbox icon of the 3rd is located.
Fig. 3 shows that the desktop icons that this embodiment provides arrange the desktop coordinate system of user terminal in processing methodSchematic diagram, referring to Fig. 3 to judging whether the first icon is drawn to the scheme of the scope of the second icon area and carries out in detailDescribe in detail bright:
With the first icon for the calendar icon of the third line first, the second icon area is the mailbox figure of the first row the 3rdAs a example the icon area that mark is located.
During user pulls the first icon, mobile terminal obtains the reference point coordinates of the first icon in real time, is designated as(x1,y1), and will be with reference to point coordinates (x1,y1) with the reference point coordinates (x of the second icon area2,y2) to contrasting, to judgeWhether meet pre-conditioned;If meeting, determine that described first icon is dragged to the scope of the second icon area;If being unsatisfactory for,Then determine that described first icon is not dragged to the scope of the second icon area;
Wherein, pre-conditioned as follows:
x2+d1> x1
x2< x1+d1
y2+d2> y1
y2< y1+d2
Wherein, d1 is the length of icon area, and d2 is the corresponding height of icon area.
It will be appreciated that d1 is horizontal dotted line and longitudinal dotted line intersects to form single little square frame is in the direction of the x axisLength, d2 is single little square frame height in the y-axis direction;And can be demarcated based on same standard with reference to point coordinates,For example: the coordinate of icon and the coordinate of icon area all with the point of lower right-hand corner as reference coordinate, or all with center positionPoint is reference coordinate.
In possible embodiments, existing mobile terminal user management desktop icons for convenience, it is provided with merging iconFunction, when two icons partly overlap, two icons are incorporated in a home icon as sub-icon, thereforeThere may be the conflict that mobile terminal cannot judge to merge icon or reset icon when user pulls icon.
For this situation, the present embodiment on the basis of pre-conditioned in the scheme resetting icon, to pre-conditioned enterRow limits further, to distinguish the condition merging icon and resetting icon;
That is, setting merges threshold value m, and the reference point coordinates (x in the first icon1,y1) and the second icon reference point coordinates(x3,y3) meet during following condition it is determined that merging described first icon and the second icon;
|x3-x1| < m
|y3-y1| < m
Wherein, m is less than d1 and is less than d2.
In another possible embodiments, during pulling the first icon, it is understood that there may be first other figures of icon approachThe situation of the scope in mark region;For example, during dragging calendar icon is to mailbox icon place icon area, calendar iconMay second icon place icon area of approach the second row scope.
For this situation, its rearrangement process can be divided into two stages:
First stage, the first icon by former place icon area be drawn to middle icon area (for example:: above-mentioned secondSecond icon place icon area of row), this stage, between the first icon place icon area and middle icon area except theOther each icons outside one icon, move successively backward, that is, before and after resetting the corresponding zone number of other each icons compared toBefore each icon, icon area corresponding zone number in place adds one.
Second stage, the first icon is drawn to the second icon area scope by middle icon regional extent, in this stage,In first stage, other each icons of movement keep constant, removing between the first icon place icon area and the second icon areaOther each icons outside first icon and other each figures of movement in the first stage, move successively backward;Or, firstStage, in the first stage, other each icons of movement restored, and are in the first icon to during second stage transitionWhen in the range of the second icon area, between the first icon place icon area and the second icon area in addition to the first iconOther each icons, move successively backward.
For method embodiment, in order to be briefly described, therefore it is all expressed as a series of combination of actions, but abilityField technique personnel should know, embodiment of the present invention is not limited by described sequence of movement, because according to the present inventionEmbodiment, some steps can be carried out using other orders or simultaneously.Secondly, those skilled in the art also should know,Embodiment described in this description belongs to preferred implementation, involved action embodiment party not necessarily of the present inventionNecessary to formula.
Fig. 4 shows that the desktop icons that one embodiment of the invention provides arrange the structural representation of processing meanss, referring to figure4, this desktop icons arranges processing meanss, comprising: setup module 41 and processing module 41, wherein;
Setup module 41, for being separately positioned on an icon area by the icon of the multiple application programs arranging on desktopInterior so that each icon area uniquely corresponds to a zone number respectively, and each zone number on the direction of line in orderSubtract one successively or Jia one, each icon area is sequentially connected on the direction of described line.
Processing module 42, if drag operation is carried out to the first icon in the first icon area for user is detected,Dragging track with described user drags described first icon, if judging to know that described first icon is dragged to the second iconIn the range of region, then according to following reordering rule, rearrangement is entered to the icon on described desktop.
Wherein, described reordering rule includes:
Described first icon is arranged in described second icon area;
On the direction of described line, in described first icon area to described second icon area, remove described first iconOther outer each icons, are separately positioned in each target icon region, and the corresponding zone number in described target icon region is comparedBefore each icon, icon area corresponding zone number in place subtracts one or Jia one.
It should be noted that setup module 41 is pretreatment module, and the data is activation that pretreatment is obtained is to processing mouldBlock 42;Processing module 42 according to the preprocessed data receiving, in conjunction with real-time detection to data judged, and according to judgementResult and reordering rule enter rearrangement to icon.
The desktop icons that the embodiment of the present invention proposes arrange processing meanss by entering to the icon area of icon each on desktopLine number, and when user pulls the first icon to the second icon area, the numbering based on icon area is resequenced to icon,The order avoiding each icon is disturbed, and compared with prior art, has the advantages that motility is high.
In the present embodiment, if the zone number of described first icon area is than the zone number of described second icon areaGreatly, then processing module 42 is used for corresponding for described target icon region zone number compared to place icon area before each iconThe corresponding zone number in domain adds one;
If the zone number of described first icon area is less than the zone number of described second icon area, processing module42 are used for corresponding for target icon region zone number compared to icon area corresponding zone number in place before each iconSubtract one.
Below the principle whether the first icon is dragged in the range of the second icon area is entered to be judged to processing module 41Row describes in detail:
During user pulls the first icon, processing module 41 obtains the reference point coordinates of described first icon in real time(x1,y1), if judging to know with reference to point coordinates (x1,y1), and the reference point coordinates (x of the second icon area2,y2) meet followingCondition is it is determined that described first icon is dragged to the scope of the second icon area;
Described condition is:
x2+d1> x1
x2< x1+d1
y2+d2> y1
y2< y1+d2
Wherein, d1 is the length of icon area, and d2 is the corresponding height of icon area.
For device embodiments, due to itself and method embodiment basic simlarity, so description is fairly simple,In place of correlation, the part referring to method embodiment illustrates.
The entity structure schematic diagram of the server that Fig. 5 provides for one embodiment of the invention, referring to Fig. 5, this server includes:Processor (processor) 51, communication interface (communications interface) 52, memorizer (memory) 53 are with alwaysLine 54, wherein, processor 51, communication interface 52, memorizer 53 completes mutual communication by bus 54.Communication interface 54 canFor the information transfer between touch screen and the processor of mobile terminal.
Processor 51 can call the data in memorizer 53, to execute following method:
The icon of multiple application programs is set on the table, and each icon is separately positioned in an icon area, each iconRegion uniquely corresponds to a zone number respectively, and each zone number subtracts one successively in order on the direction of line or addsOne, on the direction of described line, each icon area is sequentially connected;
If user is detected drag operation to be carried out to the first icon in the first icon area, with dragging of described userDrag track and drag described first icon, if judging to know that described first icon is dragged in the range of the second icon area,According to following reordering rule, rearrangement is entered to the icon on described desktop;Described reordering rule includes:
Described first icon is arranged in described second icon area;
On the direction of described line, in described first icon area to described second icon area, remove described first iconOther outer each icons, are separately positioned in each target icon region, and the corresponding zone number in described target icon region is comparedBefore each icon, icon area corresponding zone number in place subtracts one or Jia one.
Additionally, the data in above-mentioned memorizer 53 can be realized and as independent by the form of SFU software functional unitWhen production marketing or use, can be stored in a computer read/write memory medium.Based on such understanding, the present invention is realThat applies the part that the technical scheme of example substantially contributes in other words or this technical scheme to prior art partly can be withThe form of software product embodies, and this computer software product is stored in a storage medium, uses including some white listsSo that a computer equipment (can be personal computer, server, or network equipment etc.) executes the present invention, and each is realApply all or part of step of a methods described.And aforesaid storage medium includes: u disk, portable hard drive, read only memory(rom, read-only memory), random access memory (ram, random access memory), magnetic disc or CDEtc. various can be with the medium of store program codes.
Server provided in an embodiment of the present invention by being numbered to the icon area of icon each on desktop, and in userWhen pulling the first icon to the second icon area, numbering based on icon area is resequenced to icon, it is to avoid each icon timeSequence is disturbed, and compared with prior art, has the advantages that motility is high.
Device embodiment described above is only that schematically the wherein said unit illustrating as separating component canTo be or to may not be physically separate, as the part that unit shows can be or may not be physics listUnit, you can with positioned at a place, or can also be distributed on multiple NEs.Can be selected it according to the actual needsIn the purpose to realize this embodiment scheme for some or all of module.Those of ordinary skill in the art are not paying creativenessWork in the case of, you can to understand and to implement.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment canMode by software plus necessary general hardware platform to be realized naturally it is also possible to pass through hardware.Based on such understanding, onThat states that technical scheme substantially contributes to prior art in other words partly can be embodied in the form of software product, shouldComputer software product can store in a computer-readable storage medium, such as rom/ram, magnetic disc, CD etc., including some fingersOrder is with so that a computer equipment (can be personal computer, server, or network equipment etc.) executes each enforcementExample or some partly described methods of embodiment.
Although being described in conjunction with the accompanying embodiments of the present invention, those skilled in the art can be without departing from thisVarious modifications and variations are made, such modification and modification each fall within by claims in the case of bright spirit and scopeWithin limited range.