CN102279695B - Method for moving icons in display area and relevant device - Google Patents

Method for moving icons in display area and relevant device Download PDF

Info

Publication number
CN102279695B
CN102279695B CN2010102016307A CN201010201630A CN102279695B CN 102279695 B CN102279695 B CN 102279695B CN 2010102016307 A CN2010102016307 A CN 2010102016307A CN 201010201630 A CN201010201630 A CN 201010201630A CN 102279695 B CN102279695 B CN 102279695B
Authority
CN
China
Prior art keywords
resistance
icon
turnover zone
identity
size
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.)
Active
Application number
CN2010102016307A
Other languages
Chinese (zh)
Other versions
CN102279695A (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.)
China Mobile Communications Group Co Ltd
Neusoft Corp
Original Assignee
China Mobile Communications Group Co Ltd
Neusoft Corp
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 China Mobile Communications Group Co Ltd, Neusoft Corp filed Critical China Mobile Communications Group Co Ltd
Priority to CN2010102016307A priority Critical patent/CN102279695B/en
Publication of CN102279695A publication Critical patent/CN102279695A/en
Application granted granted Critical
Publication of CN102279695B publication Critical patent/CN102279695B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a method for moving icons in a display area and a relevant device, which are used for avoiding icon overlap caused by the movement of icons of different sizes in the display area. The method comprises the following steps of: taking an area where an icon to be moved is positioned before moving as a moving area; determining a blocking area which is not overlapped with the moving area according to positions in the first direction of an icon which is overlapped with an area where the icon to be moved is to be positioned and positions in the second direction of the moving area, wherein the first direction is the moving direction of the icon to be moved, and the second direction is vertical to the first direction; when the size of the blocking area along the second direction is not greater than the size of the moving area along the second direction and the blocking area comprises an incomplete icon, expanding the blocking area according to the position where the incomplete icon is positioned; and when the size of the blocking area along the second direction is not greater than the size of the moving area along the second direction, switching the positions of the moving area and the blocking area.

Description

The moving method of icon and relevant apparatus in the viewing area
Technical field
The present invention relates to computing machine and communication technical field, relate in particular to the mobile device of icon in moving method and a kind of viewing area of icon in a kind of viewing area.
Background technology
Smart mobile phone, personal digital assistant (PDA; Personal Digital Assistant) etc. portable mobile termianl all has the display screen with touch function of a rectangle usually, and it is the viewing area of dimensional units with the pixel that display screen can be counted as one.Certainly the size of the viewing area of the portable terminal of different vendor, different model can be different, and the size of for example common viewing area has 240 pixel *, 320 pixels, 800 pixel *, 480 pixels or the like.The user is discharging the corresponding icon of various application programs usually through in display screen, directly clicking the application function that just can use portable terminal to provide in the viewing area for ease.
For the smart mobile phone of model, when in the viewing area, showing each icon, the subregion through two fixed measures shows, is respectively berth zone and float area.Widget is a kind of typical application program, can be designed as the client that perhaps presents the internet certain content based on the service of internet, and for example by means of meteorological widget, the user can know the weather condition that certain city is recent whenever and wherever possible.Widget can obtain through SD card or network download; And in smart mobile phone, install; After installing successfully, will being presented in the zone of berthing in the display screen of the thumbnail (thumbnail of all icons all is same size) of the icon that this widget is corresponding is please with reference to shown in the accompanying drawing 1.
When the user wants to move these widget, can from the zone of berthing, choose the thumbnail of a widget, and it is dragged in the float area, at this moment in float area, will show the icon that running widget is corresponding.The size of arbitrary widget icon should be a kind of in several kinds of preliminary dimensions; For example can be predetermined 4*1,2*2,2*1,1*2 or 1*1; The dimensional units of widget icon is the integral multiple of pixel, for example weighs with pixel, and the physical size of the icon of above-mentioned 4*1 size is 40 pixels (width) * 10 pixels (highly); The size of widget icon is still described with 4*1,2*2,2*1,1*2 or 1*1 for brevity, in the present embodiment.
The user can change the icon present position through the icon that pulls in the float area, and when in float area, comprising the different icon of a plurality of sizes, the position that changes one of them icon can cause a plurality of icons present position to change.Please with reference to shown in the direction of arrow among the accompanying drawing 2a, can pull icon 2 upwards or be moved to the left, move up if pull icon 2, each the icon present position after then moving is shown in accompanying drawing 2b.
Yet the instance that the icon that accompanying drawing 2a, accompanying drawing 2b provide moves is the simplest a kind of situation; Can cause according to above-mentioned icon moving method under the situation that the icon number is more or free cells lattice number is less in float area and wait to move icon and move the overlapping situation of a plurality of icons in back, as four icons are arranged among the accompanying drawing 3a.Situation after icon 4 moves up can be overlapping with icon 1 after icon 4 moves up shown in accompanying drawing 3b.
Be that example describes only below with the moving process of the icon of widget on the model smart mobile phone; In the viewing area of terminal device, do not have the notion in the float area and the zone of berthing under many circumstances, therefore above-mentioned float area can be broadly interpreted as the viewing area of terminal device.When comprising different icon of a plurality of sizes or removable module in the viewing area of terminal device; After moving one of them icon or removable module; It is extensively to exist that there are overlapping problem in this icon or removable module and another icon or removable module, and prior art does not provide a kind of scheme that occurs the icon overlapping phenomenon after when the icon of the different size in moving display area, can avoiding moving.
Summary of the invention
The embodiment of the invention provides the moving method of icon in a kind of viewing area, the overlapping problem of icon that produces when avoiding icon to different size in the viewing area to move.
Accordingly, the embodiment of the invention also provides the mobile device of icon in a kind of viewing area.
The technical scheme that the embodiment of the invention provides is following:
The moving method of icon in a kind of viewing area comprises:
To wait to move icon and move preceding region as turnover zone;
Based on wait to move that icon moves the position on the first direction that there is overlapping icon in expection region, back and the position on the turnover zone second direction is confirmed and the Resistance of said turnover zone non-overlapping copies; Said first direction is a moving direction of waiting to move icon, and second direction is the direction vertical with first direction;
When the size on the second direction of Resistance is not more than size and Resistance on the turnover zone second direction and comprises imperfect icon, expand the Resistance according to this imperfect icon position;
When the size on the second direction of Resistance is not more than the size on the turnover zone second direction, with turnover zone and Resistance transposition.
The moving method of icon in a kind of viewing area comprises:
To wait to move icon and move preceding region as turnover zone;
Based on wait to move that icon moves the position on the first direction that there is overlapping icon in expection region, back and the position on the turnover zone second direction is confirmed and the Resistance of said turnover zone non-overlapping copies; Said first direction is a moving direction of waiting to move icon, and second direction is the direction vertical with first direction;
When the size on the second direction of Resistance is not more than size and Resistance on the turnover zone second direction and comprises imperfect icon, expand the Resistance according to this imperfect icon position;
Size on the second direction of Resistance is carried out following steps during greater than the size on the turnover zone second direction, up to the Resistance till the size on the second direction is not more than the size on the turnover zone second direction and does not comprise imperfect icon:
Turnover zone and Resistance are exchanged identity;
Expand based on the position on the second direction of exchanging the turnover zone after the identity and to exchange after the identity
Size on the second direction of Resistance, and
Size on the Resistance second direction after the exchange identity after the expansion is not more than turnover zone
Size on two directions and the expansion after the exchange identity after the Resistance in comprise imperfect icon and
When exchanging turnover zone after the identity and not comprising this imperfect icon, according to this imperfect icon position
Expand the Resistance that exchanges after the identity;
With the turnover zone and the Resistance transposition that exchange for the last time after the identity.
The moving method of icon in a kind of viewing area comprises:
To wait to move icon and move preceding region as turnover zone;
Based on wait to move that icon moves the position on the first direction that there is overlapping icon in expection region, back and the position on the turnover zone second direction is confirmed and the Resistance of said turnover zone non-overlapping copies; Said first direction is a moving direction of waiting to move icon, and second direction is the direction vertical with first direction;
When the size on the second direction of Resistance is not more than size and Resistance on the turnover zone second direction and comprises imperfect icon, expand the Resistance according to this imperfect icon position;
Size on the second direction of Resistance is during greater than the size on the turnover zone second direction; Carry out following steps, up to the Resistance till the size on the second direction is not more than size and Resistance and turnover zone on the turnover zone second direction and comprises the imperfect part of same icon:
Turnover zone and Resistance are exchanged identity;
Expand the size on the Resistance second direction of exchanging after the identity according to the position on the second direction of exchanging the turnover zone after the identity, and
When the size on the Resistance second direction after the exchange identity after expansion is not more than turnover zone after comprising imperfect icon and exchange identity in size and the Resistance after the exchange identity after the expansion on the turnover zone second direction and does not comprise this imperfect icon, expand the Resistance that exchanges after the identity according to this imperfect icon position;
When exchanging turnover zone and the last Resistance that exchanges after the identity after the identity the last time and comprising the imperfect part of same icon, this icon integral body is incorporated in the Resistance after once exchanging the turnover zone after the identity to the end or exchanging identity for the last time;
With the turnover zone and the Resistance transposition that exchange for the last time after the identity.
The moving method of icon in a kind of viewing area comprises:
To wait to move icon and move preceding region as turnover zone;
Based on wait to move that icon moves the position on the first direction that there is overlapping icon in expection region, back and the position on the turnover zone second direction is confirmed and the Resistance of said turnover zone non-overlapping copies; Said first direction is a moving direction of waiting to move icon, and second direction is the direction vertical with first direction;
When the size on the second direction of Resistance is not more than size and Resistance on the turnover zone second direction and comprises imperfect icon, expand the Resistance according to this imperfect icon position;
When the size on the second direction of Resistance is not more than the size on the turnover zone second direction, with turnover zone and Resistance transposition;
Size on the second direction of Resistance is during greater than the size on the turnover zone second direction; Carry out following steps; Be not more than the size on the turnover zone second direction and do not comprise imperfect icon in the size on the second direction up to the Resistance, perhaps the Resistance is till the size on the second direction is not more than size and Resistance and turnover zone on the turnover zone second direction and comprises the imperfect part of same icon:
Turnover zone and Resistance are exchanged identity;
Expand the size on the Resistance second direction of exchanging after the identity according to the position on the second direction of exchanging the turnover zone after the identity, and
When the size on the Resistance second direction after the exchange identity after expansion is not more than turnover zone after comprising imperfect icon and exchange identity in size and the Resistance after the exchange identity after the expansion on the turnover zone second direction and does not comprise this imperfect icon, expand the Resistance that exchanges after the identity according to this imperfect icon position;
When exchanging turnover zone and the last Resistance that exchanges after the identity after the identity the last time and comprising the imperfect part of same icon, this icon integral body is incorporated in the Resistance after once exchanging the turnover zone after the identity to the end or exchanging identity for the last time;
With turnover zone and the Resistance transposition after the said last exchange identity.
The mobile device of icon in a kind of viewing area comprises:
Turnover zone is created the unit, is used for waiting that moving icon moves preceding region as turnover zone;
The Resistance creating unit; Be used for basis and wait to move icon and move that position on the turnover zone second direction that position and turnover zone creating unit on the first direction that there is overlapping icon in expection region, back confirm is confirmed and the Resistance of said turnover zone non-overlapping copies; Said first direction is a moving direction of waiting to move icon, and second direction is the direction vertical with first direction;
The Resistance expanding element when being used for size on the second direction of Resistance and being not more than turnover zone and Resistance and comprising imperfect icon and said turnover zone and do not comprise this imperfect icon, is expanded the Resistance according to this imperfect icon position;
The location swap unit is when being used for size on the Resistance second direction that the Resistance expanding element obtains and being not more than the size on the turnover zone second direction, with turnover zone and Resistance transposition.
The mobile device of icon in a kind of viewing area comprises:
Turnover zone is created the unit, is used for waiting that moving icon moves preceding region as turnover zone;
The Resistance creating unit; Be used for basis and wait to move that icon moves the position on the first direction that there is overlapping icon in expection region, back and the position on the turnover zone second direction is confirmed and the Resistance of said turnover zone non-overlapping copies; Said first direction is a moving direction of waiting to move icon, and second direction is the direction vertical with first direction;
The Resistance expanding element when being used for size on the second direction of Resistance and being not more than turnover zone and Resistance and comprising imperfect icon and said turnover zone and do not comprise this imperfect icon, is expanded the Resistance according to this imperfect icon position;
The identity exchange unit; Be used in the size on the second direction of Resistance during greater than the size on the turnover zone second direction; Carry out following steps, up to the Resistance till the size on the second direction is not more than the size on the turnover zone second direction and does not comprise imperfect icon: with turnover zone and Resistance exchange identity; Expand the size on the Resistance second direction of exchanging after the identity based on the position on the second direction of exchanging the turnover zone after the identity; And the size on the Resistance second direction after the exchange identity after expansion is when being not more than turnover zone after comprising imperfect icon and exchange identity in size and the Resistance after the exchange identity after the expansion on the turnover zone second direction and not comprising this imperfect icon, expands the Resistance that exchanges after the identity based on this imperfect icon position;
The location swap unit is used for said identity exchange unit is exchanged turnover zone and Resistance transposition after the identity for the last time.
The mobile device of icon in a kind of viewing area comprises:
Turnover zone is created the unit, is used for waiting that moving icon moves preceding region as turnover zone;
The Resistance creating unit; Be used for basis and wait to move that icon moves the position on the first direction that there is overlapping icon in expection region, back and the position on the turnover zone second direction is confirmed and the Resistance of said turnover zone non-overlapping copies; Said first direction is a moving direction of waiting to move icon, and second direction is the direction vertical with first direction;
The Resistance expanding element when being used for size on the second direction of Resistance and being not more than turnover zone and Resistance and comprising imperfect icon and said turnover zone and do not comprise this imperfect icon, is expanded the Resistance according to this imperfect icon position;
The identity exchange unit; When being used for size on the second direction of Resistance greater than the size on the turnover zone second direction; Carry out following steps, up to the Resistance till the size on the second direction is not more than size and Resistance and turnover zone on the turnover zone second direction and comprises the imperfect part of same icon: with turnover zone and Resistance exchange identity; Expand the size on the Resistance second direction of exchanging after the identity based on the position on the second direction of exchanging the turnover zone after the identity; And the size on the Resistance second direction after the exchange identity after expansion is when being not more than turnover zone after comprising imperfect icon and exchange identity in size and the Resistance after the exchange identity after the expansion on the turnover zone second direction and not comprising this imperfect icon, expands the Resistance that exchanges after the identity based on this imperfect icon position;
Imperfect icon incorporates the unit into; When being used for turnover zone after the identity exchange unit is exchanged identity for the last time and comprising the imperfect part of same icon, this icon integral body is incorporated in the Resistance after once exchanging the turnover zone after the identity to the end or exchanging identity for the last time with the last Resistance that exchanges after the identity;
The location swap unit is used for incorporating imperfect icon into after the last exchange identity after the cell processing turnover zone and Resistance transposition.
The icon that the embodiment of the invention provides moves scheme; At first will wait to move the icon region as turnover zone, based on wait to move icon and move expection region, back and exist the size of overlapping icon and turnover zone to confirm and the Resistance of turnover zone non-overlapping copies; And with the Resistance with the moving direction vertical direction on size whether greater than turnover zone as turnover zone and Resistance identity conditions of interchange; Turnover zone and Resistance are carried out the identity exchange; After not surpassing the viewing area bounds behind definite turnover zone and the Resistance switch; The position of whole exchange turnover zone and Resistance realizes treating the purpose that mobile icon moves with this, occurs the overlapping phenomenon of a plurality of icons thereby can avoid treating moving after icon moves.
Description of drawings
Fig. 1 is the synoptic diagram of the smart mobile phone viewing area of existing model;
Fig. 2 a waits to move the synoptic diagram that icon moves preceding each icon position in the float area;
Fig. 2 b waits to move the synoptic diagram that icon moves each icon position, back in the float area;
Fig. 3 a moves the synoptic diagram of each icon position before for when comprising the icon of a plurality of different sizes in the float area to one of them icon;
Fig. 3 b moves the synoptic diagram of each icon position afterwards for when comprising the icon of a plurality of different sizes in the float area to one of them icon;
Fig. 4 a is the main realization principle flow chart of the embodiment of the invention;
Fig. 4 b is the process flow diagram of turnover zone and Resistance in the embodiment of the invention (perhaps exchange for the last time identity after turnover zone or Resistance) switch;
Fig. 5 a is that the embodiment of the invention is treated when moving icon and moving the synoptic diagram of the Resistance of determining;
Fig. 5 b is that the embodiment of the invention is treated and moved after icon moves the synoptic diagram of each icon position;
When Fig. 6 moves the icon in the float area for adopting prior art, the synoptic diagram of division unit lattice in float area;
Fig. 7 a waits to move icon to move the synoptic diagram of preceding position in the float area;
Fig. 7 b is for traveling through the synoptic diagram of whole float area according to the size of treating mobile icon;
Fig. 8 is the process flow diagram of portable terminal interchange icons position;
Fig. 9 is the synoptic diagram of the parameter sets of each cell in the float area;
Figure 10 a is that the embodiment of the invention is treated when moving icon and moving the synoptic diagram of the Resistance of determining;
Figure 10 b is that the embodiment of the invention is treated when moving icon and moving the synoptic diagram of the Resistance after the expansion;
Figure 10 c is that the embodiment of the invention is treated and moved icon and move the synoptic diagram of each icon position afterwards;
Figure 11 a be the embodiment of the invention three when comprising the icon of a plurality of different sizes in the float area, the synoptic diagram of each icon position before one of them icon moved;
Figure 11 b is that the embodiment of the invention three is treated when moving icon and moving the synoptic diagram of the Resistance of determining;
Figure 11 c treats when moving icon and moving the synoptic diagram of the Resistance after the expansion in the embodiment of the invention three;
Figure 11 d is in the embodiment of the invention three behind Resistance and the turnover zone transposition, the synoptic diagram of the Resistance after the expansion;
Figure 11 e is after incorporating imperfect icon into turnover zone in the embodiment of the invention three, the synoptic diagram of Resistance;
Figure 11 f be the embodiment of the invention three with turnover zone and Resistance transposition after, the synoptic diagram of each icon position;
Figure 12 a is the synoptic diagram that the embodiment of the invention moves icon on other directions;
Figure 12 b is the synoptic diagram of the embodiment of the invention with first kind of scheme of the decomposition of the moving direction among the 12a;
Figure 12 c is the synoptic diagram of the embodiment of the invention with second kind of scheme of the decomposition of the moving direction among the 12a;
The mobile device of icon in a kind of viewing area that Figure 13 provides for the embodiment of the invention;
The mobile device of icon in the another kind of viewing area that Figure 14 provides for the embodiment of the invention;
The mobile device of icon in the another kind of viewing area that Figure 15 provides for the embodiment of the invention.
Embodiment
Because prior art is when the icon of different size moves in to the viewing area, the more or clear area of the number of icons that particularly comprises in the viewing area tends to occur the overlapping phenomenon of a plurality of icons more after a little while.
The overlapping problem of a plurality of icons occurs when moving icon, the embodiment of the invention has proposed the mobile scheme of icon in a kind of viewing area.When initial, will wait to move the icon region as turnover zone, will with the turnover zone non-overlapping copies, comprise with mobile icon and move the zone that there is overlapping icon region in the region, back as the Resistance.
With the Resistance with the vertical direction of moving direction on size whether greater than turnover zone as turnover zone and Resistance identity conditions of interchange; Turnover zone and Resistance are carried out the identity exchange, till the size on the vertical direction of Resistance at moving direction is not more than turnover zone.
The thinking of exchanging based on the Resistance of exchange after the identity and turnover zone integral position is confirmed the position that each icon after mobile belongs to, thereby can avoid occurring the overlapping phenomenon of a plurality of icons.
Carry out detailed elaboration below in conjunction with each accompanying drawing to the main realization principle of embodiment of the invention technical scheme, embodiment and to the beneficial effect that should be able to reach.
In order to describe the aspect for simplicity, with waiting that the moving direction that moves icon is called first direction, is called second direction with the direction vertical with moving direction.
Shown in Fig. 4 a, the main realization principle process of the embodiment of the invention is following:
Step 401 when initial, will be waited to move icon and move preceding region as turnover zone;
Step 402, with the position range on the first direction by with wait to move that icon moves that expection region, back exists that position on the overlapping icon first direction is confirmed, rectangular area, border that position on the second direction is identical with the position on the turnover zone second direction is as the Resistance;
When step 403, the size in the Resistance on second direction are not more than turnover zone and Resistance and comprise imperfect icon, expand interim Resistance,, get into step 404 so that the Resistance comprises this imperfect icon just according to this imperfect icon position;
Whether step 404 judges the size of Resistance on second direction greater than turnover zone, if get into step 405, otherwise gets into step 412;
Step 405; Turnover zone and Resistance are exchanged identity (moving direction of the turnover zone after the exchange identity is opposite with the moving direction that exchanges identity turnover zone before); Expand the size on the Resistance second direction of exchanging after the identity based on the position on the second direction of exchanging the turnover zone after the identity, get into step 407;
Step 407; When the size on the Resistance second direction after exchanging identity is not more than turnover zone after comprising imperfect icon and exchange identity in the Resistance after the exchange identity of exchanging after turnover zone after the identity and the expansion and does not comprise this imperfect icon; Expand the Resistance that exchanges after the identity based on this imperfect icon position, so that the Resistance that exchanges after the identity comprises this imperfect icon just;
Step 408; Resistance after the exchange identity that determining step 407 is determined in the size on the second direction whether greater than the turnover zone after exchanging identity; If get into step 405; Otherwise get into step 409 (at this moment get into the condition of step 409, the round-robin stop condition that constitutes of step 405,407,408 is actually the Resistance and is not more than the size on the turnover zone second direction and does not comprise imperfect icon in the size on the second direction in other words, perhaps the Resistance is not more than the imperfect part that size and Resistance and turnover zone on the turnover zone second direction comprise same icon in the size on the second direction);
Step 409 judges whether the number of times that Resistance and turnover zone in the above process exchange identity is odd number, if odd number then gets into step 410, otherwise gets into step 406;
Step 410 is exchanged identity once more with turnover zone and Resistance after the exchange identity, gets into step 406;
Step 406, the imperfect part whether turnover zone after definite last exchange identity and Resistance comprise same icon if get into step 411, otherwise gets into step 412;
Step 411 is removed above-mentioned turnover zone and the icon of Resistance that has imperfect part to be present in simultaneously after the last exchange identity from the Resistance, integral body incorporates in the turnover zone; Turnover zone and the icon of Resistance that perhaps will have imperfect part to be present in simultaneously after the last exchange identity are removed from turnover zone, and integral body incorporates in the Resistance, gets into step 412;
Step 412; With turnover zone and Resistance (perhaps exchange for the last time identity after turnover zone or Resistance) transposition, can reach and move the purpose of waiting to move icon through turnover zone and Resistance (perhaps exchange for the last time identity after turnover zone or Resistance) transposition.
Preferably, the size that in step 402, adopts following mode to come basis and mobile icon to move on the first direction that there is overlapping icon in the region, back is confirmed the size on the first direction of Resistance:
Obtain each and wait to move icon and move the interval range that expection region, back exists minimum value and the maximal value of overlapping icon on first direction to form;
With the union of each interval range that obtains as the position range on the first direction of Resistance; For example please with reference to shown in the accompanying drawing 5a, icon 1 moves icon for waiting, icon 1 moves up on vertical direction (first direction); Expection region after icon 1 moves is that coordinate position is (2; 2), the cell of (3,2), have this moment the region after icon 2 and icon 3 and icon 1 move to exist overlapping.The interval range that icon 2 minimum value in vertical direction is and maximal value is formed is [1; 2] interval range that, icon 3 minimum value in vertical direction is and maximal value is formed is [1; 1], icon 2 and icon 3 minimum value and the maximal value in vertical direction union of forming interval range is [1 so; 2], be Resistance position range in vertical direction.Meanwhile the Resistance is identical with position range on the turnover zone second direction at the position range of (horizontal direction) on the second direction; Can confirm a border rectangle according to the position range on the above-mentioned both direction; This rectangle region, border is the Resistance, shown in the black box among the accompanying drawing 5a.
In above-mentioned steps 403, the step 407 to expand the process of Resistance according to imperfect icon following:
At first confirm the subregion of said imperfect icon outside said Resistance; The border rectangle that more said Resistance is expanded to this Resistance can comprise said subregion just.
Expand the size on the Resistance second direction of exchanging after the identity according to the position on the second direction of exchanging the turnover zone after the identity in the above-mentioned steps 405, specific as follows:
Confirm to exchange the position range of turnover zone on second direction after the identity, keep the position range on the first direction of Resistance constant, will exchange simultaneously turnover zone after the identity at the position range on the second direction as the position range on the second direction of Resistance.
It should be noted that; In above-mentioned steps 408, judging the Resistance that exchanges after the identity after the size on the second direction is not more than the turnover zone after exchanging identity, directly getting into step 406 and can realize treating and move the purpose that icon moves at moving direction.Carry out step 409 and step 410 when just being odd number time, because the turnover zone of this moment does not comprise the moving direction of waiting to move icon and turnover zone and treats what mobile icon was really set up conflicting on the mobile conceptual understanding that causes in the opposite direction of needs for fear of number of times in Resistance and turnover zone exchange identity.
After the interaction locations of turnover zone and Resistance in step 412 (perhaps exchange for the last time identity after turnover zone or Resistance) icon might appear or the part icon exceeds the border, viewing area; Can't display icon or the phenomenon of display icon fully, at this moment can be in the smart mobile phone of model with being reentered into the berthing space by display icon.
Preferably; Behind turnover zone and Resistance in above-mentioned steps 412 (turnover zone or Resistance after perhaps exchanging identity for the last time) middle transposition; Icon or part icon occur and exceed the border, viewing area; Can't display icon or the phenomenon of display icon fully, can use the flow process of turnover zone and Resistance among the accompanying drawing 4b (perhaps exchange for the last time identity after turnover zone or Resistance) switch to replace the step 412 among the accompanying drawing 4a:
Step 4120; After confirming if turnover zone and Resistance (perhaps exchange for the last time identity after turnover zone or Resistance) transposition; Whether the desired location of turnover zone or Resistance (perhaps exchange for the last time identity after turnover zone or Resistance) surpasses the border, viewing area; If get into step 4130, otherwise get into step 4140;
Step 4130, the prompting user can't move icon;
Step 4140 is with turnover zone and Resistance (perhaps exchange for the last time identity after turnover zone or Resistance) transposition.
Briefly introduce process below to two icon transpositions; The process of turnover zone and Resistance transposition can be with reference to following process to two icon switches in above-mentioned steps 412 or 4140, only needs will mobile icon wherein to be revised as turnover zone (perhaps exchange for the last time identity after turnover zone), stops that icon is revised as Resistance (perhaps exchange for the last time identity after Resistance) and gets final product.
Still the viewing area with model smart mobile phone in the accompanying drawing 1 is an example, and float area is divided into some cells with the dimensional units of icon, please with reference to shown in the accompanying drawing 6, supposes that float area has been divided into a zone that comprises the cell of 4*4.And for each cell has all defined corresponding parameters set paraSet (para1; Para2); For example the parameter sets of each cell all has seizure condition parameter p ara1 and two parameters of occupant's identification parameter para2; Seizure condition parameter p ara1 is used to show whether this cell is occupied, can be for taking and vacant two states; The sign that occupant's identification parameter para2 is used to store the icon that takies this cell, when this cell is unoccupied holder's identification parameter can be set to a predetermined value all different with the sign of all icons, or for empty.Can constitute the parameter sets array of one 4 corresponding row of float area, 4 row in view of the above.
When design implementation, the above-mentioned parameter set can be the form of structure, and for example structure is:
typedef?struct?tagFloatingWidget
{
TBool?iOccupied;
COSBInstalledWidget*iWidget;
}FloatingWidget;
Wherein, the iOccupied parameter is used to show whether this cell is occupied, and for example regulation iOccupied showed that this cell was unoccupied at 0 o'clock, is to show that this cell was occupied at 1 o'clock; IWidget shows the sign of the icon that takies this cell when this cell is occupied, when this cell is unoccupied iWidget can be set to a predetermined value all different with the sign of all icons, or for empty.When design implementation, iWidget can be designed to the memory address that a pointed takies the icon of this cell, the memory address that perhaps is used to store the icon that takies this cell.
Cell corresponding parameters set based on above-mentioned definition; Can obtain float area corresponding parameters set array; Each element in this array is a cell corresponding parameters set; Be example with the float area in the accompanying drawing 6 still, can obtain the parameter sets array paraSet [] (mask table that also is called as float area) of a 4*4, the element paraSet [0] [0] in this parameter sets array is the parameter sets of the cell on the 0th row the 0th column position in the accompanying drawing 6.
When having a plurality of widget to be in running status at the same time, the icon of a plurality of widget adopts predefined procedure in float area, to place usually, for example from left to right, order from top to bottom.When the thumbnail of the icon of a widget is dragged to float area; When need confirming the placement location of icon of this widget; According to from left to right, from top to bottom order; Each 1 cell of translation travels through float area, searches the clear area of being made up of unappropriated cell of an icon that is large enough to hold this widget.Icon put procedure in float area with the Widget of 2*2 size is an example: please with reference to shown in the black surround among the accompanying drawing 7a; At first according to the element paraSet [0] [0] among the parameter sets array paraSet [], paraSet [0] [1], paraSet1] whether [0], paraSet [1] [1], confirm in the float area occupied by the zone that the 0th row the 0th row, the 0th row the 1st are listed as, the 1st row the 0th is listed as and the cell of the 1st row the 1st row constitutes; If it is occupied; Then according to the element paraSet [0] [1] among the parameter sets array paraSet [], paraSet [0] [2], paraSet [1] [1], paraSet [1] [2]; Whether the zone that inspection is made up of the cell of the 0th row the 1st row, the 0th row the 2nd row, the 1st row the 1st row and the 1st row the 2nd row is occupied; Please with reference to shown in the black surround among the accompanying drawing 7b; And the like, till finding one to comprise the clear area that 4 unappropriated cells form, the icon of Widget is placed into finds in the clear area.
In order to satisfy the demand that the user changes the placement situation of the icon of widget in acquiescence or the existing float area; Prior art allows the user through pulling the placement location that existing icon in the float area changes this icon in different directions usually, and this operation tends to cause two icon switches in the float area.Still with shown in the instance among the accompanying drawing 2a; The corresponding icon (icon 1) of widget1 and corresponding two icons of icon (icon 2) of widget2 are arranged in the float area; Shown in the direction of arrow among Fig. 2 a; The user can pull icon 2 upwards or be moved to the left, and supposes that the user pulls icon 2 (being that icon 2 is for moving icon) and moves up, and moves the result so shown in accompanying drawing 2b.Under request in person with reference to accompanying drawing 8, this is an example the mobile of vertical direction with icon 2, introduces the process that portable terminal is accomplished above-mentioned icon switch:
The memory address of supposing icon 1 is that the memory address of 0x100, icon 2 is 0x200; In accompanying drawing 9, indicated the parameter value in the parameter sets of each cell of composition parameter set array intuitively with parenthesis; First numerical value in the parenthesis is the seizure condition parameter value, and second numerical value is occupant's identification parameter value; Seizure condition parameter p ara1 1 indicates that this cell is taken by icon, is 0 to indicate that this cell is unoccupied, and the occupant is designated the memory address of the icon that takies this cell.In addition also store the position coordinates (perhaps can calculate other information of the position coordinates that draws the cell that each cell takies) of the cell that each icon takies, for example the position coordinates of the cell that takies of icon 1 is respectively (1,1); (2,1), (1; 2), the position coordinates of the cell that takies of (2,2), icon 2 is respectively (2; 3), (3,3).
Step 801 according to the parameter sets array of float area in the accompanying drawing 9, confirms whether the position that icon 2 moves up behind the cell in vertical direction is occupied; If get into step 2, otherwise directly with icon 2 cell that moves up, and to change the coordinate position that takies before moving be (2; 3), the parameter value in the parameter sets of the cell of (3,3) is (2 with moving the coordinate position that takies afterwards; 2), the parameter value in the parameter sets of the cell of (3,2) gets final product;
The position coordinates of the cell that remains unchanged on icon 2 horizontal directions, takies behind the cell that moves up on the vertical direction is respectively (2; 2), (3; 2), whether the seizure condition parameter p ara1 that then searches among paraSet [2] [2], the paraSet [3] [2] is 1, in the present embodiment because coordinate position is (2; 2) cell occupied (the seizure condition parameter p ara1 among this cell corresponding parameters set paraSet [2] [2] is 1) then gets into step 802;
Step 802 is confirmed to stop and is moved the icon that stops that icon moves;
Be that occupant's identification parameter para2 among the parameter sets paraSet [2] [2] of the cell of (2,2) confirms to stop that the icon that stops that icon 2 moves is an icon 1 according to occupied coordinate position;
Step 803 confirms to stop icon and mobile icon min coordinates value and the maximum coordinates value on moving direction;
According to the icon 1 of storage, the position coordinates of cell that icon 2 takies, confirm to stop that the cell that icon takies is (1,1), (2; 1), (1,2); The cell that (2,2), mobile icon take is (2,3); (3,3), and then confirm to stop the min coordinates value of icon on moving direction (vertical direction) is 1 to be 2, to move min coordinates value and the maximum coordinates value of icon on moving direction to be 3 with the maximum coordinates value;
Step 804 is created temporary variable, stops the min coordinates value of icon on moving direction in order to temporary transient storage;
Create temporary variable y ', and will stop that the min coordinates value assignment of icon on moving direction is to y ', y '=1;
Step 805 empties the cell that stops that icon takies, and the seizure condition parameter value of the cell that is about to stop that icon takies is revised as 0, promptly is revised as unoccupied state, and occupant's identification parameter value is revised as NULL;
The para1 of paraSet [1] [1], paraSet [2] [1], paraSet [1] [2] and paraSet [2] [2] is revised as 0, and para2 is revised as NULL;
Step 806 empties and moves the cell that icon takies, and the seizure condition parameter value that moves the cell that icon takies is revised as 0, promptly is revised as unoccupied state, and occupant's identification parameter value is revised as NULL;
ParaSet [2] [3] that the cell that icon 1 is taken is corresponding and the para1 of paraSet [3] [3] are revised as 0, and para2 is revised as NULL;
Step 807, according to the size of y ' and mobile icon, definite position of moving the cell that takies after icon moves, mobile being equivalent to of moving icon, remain unchanged in the horizontal direction, move in vertical direction on the position that minimum value is y ',
The cell that takies after icon 1 moves is (2,1) and (3,1) locational cell;
Step 808 is revised the value in the parameter sets that moves the cell that takies after icon moves, and para1 is revised as 1, promptly is revised as seizure condition, para2 is revised as the memory address of icon 2;
Step 809; The position after icon moves is confirmed to stop in position based on moving after icon moves; Mobile being equivalent to that stops icon, remain unchanged in the horizontal direction, moves to the vertical direction minimum of a value in vertical direction and add 1 position for the maximum that mobile icon moves on the vertical direction of back;
The cell that takies after icon 1 moves is on the position of (1,2), (2,2), (1,3) and (2,3).
Step 810 is revised the value in the parameter sets that stops the cell that takies after icon moves, and para1 is revised as 1, promptly is revised as seizure condition, para2 is revised as the memory address of icon 1.
Through with the similar method in interactive icons position shown in the accompanying drawing 8, can performing step 414 in mutual turnover zone and position, Resistance.
Below will be according to foregoing invention principle of the present invention, be example to treat in vertical direction that icon moves, introduce several embodiment in detail and come the main realization principle of the inventive method is carried out detailed elaboration and explanation.
Embodiment one
With reference to the instance among the accompanying drawing 5a; After turnover zone when basis is initial is determined the Resistance; Because the size of Resistance on second direction is identical with turnover zone; But do not comprise imperfect icon, thereby do not satisfy the condition of when comprising imperfect icon " size of Resistance on second direction be not more than turnover zone and Resistance " of step 403 among the accompanying drawing 4a, directly get into step 404; Because the size of Resistance on second direction be not more than turnover zone, get into step 412, just turnover zone and Resistance transposition, the result after the exchange is shown in accompanying drawing 5b.
Preferably; Can also carry out the processing procedure shown in accompanying drawing 4b after getting into step 412; Judge if behind turnover zone and the Resistance transposition, whether the desired location of turnover zone or Resistance surpasses the border, viewing area, because in the present embodiment if behind turnover zone and the Resistance transposition; The desired location of turnover zone or Resistance does not surpass the border, viewing area, then can be directly with turnover zone and Resistance transposition.
Embodiment two
With reference to the instance among the accompanying drawing 3a, according to the treatment scheme of accompanying drawing 4a icon 4 is moved to vertically upward direction, detailed process is following:
When initial, turnover zone is the position that belongs to before icon 4 moves, and promptly coordinate position is the cell of (0,3), (1,3), (2,3), (3,3).
When carrying out step 402, adopt the Resistance of determining with embodiment one similar method shown in the black surround among the accompanying drawing 10a; This moment, the size of Resistance on second direction (horizontal direction) was not more than the latter half (promptly comprising imperfect icon) that Resistance among turnover zone and the accompanying drawing 10a comprises icon 1; Thereby satisfy in the step 403 condition of when comprising imperfect icon " size of Resistance on second direction be not more than turnover zone and Resistance "; Expand interim Resistance according to icon 1 position; So that the Resistance comprises icon 1 just; Resistance after the expansion gets into step 404 shown in accompanying drawing 10b; Because this moment, Resistance size in the horizontal direction was not more than turnover zone, got into step 412, just turnover zone and Resistance transposition, the result after the exchange is shown in accompanying drawing 10c.
Preferably; Can also carry out the processing procedure shown in accompanying drawing 4b after getting into step 412; Judge if behind turnover zone and the Resistance transposition, whether the desired location of turnover zone or Resistance surpasses the border, viewing area, because in the present embodiment if behind turnover zone and the Resistance transposition; The desired location of turnover zone or Resistance does not surpass the border, viewing area, then can be directly with turnover zone and Resistance transposition.
Can find out from embodiment one, embodiment two that step 401,402,403,404,412 the accompanying drawing 4a combines and to form the moving method of an icon in the viewing area separately; This method is applicable to that the size of Resistance on second direction is not more than turnover zone; Thereby need not situation to turnover zone and Resistance exchange identity, need not to carry out the step 405,406,407,408,409,410 and 411 among the accompanying drawing 4a in this case.
Embodiment three
The scheme that in the viewing area, moves icon that accompanying drawing 4a provides is equally applicable to more complicated situation.Please, comprise the icon of 6 different sizes in the viewing area, be respectively the icon 1 of 2*1, the icon 2 of 1*1, the icon 3 of 1*2, the icon 4 of 1*1, the icon 5 of 2*1 and the icon 6 of 2*2 with reference to accompanying drawing 11a.Wherein icon 1 moves icon for waiting, icon 1 moves up in vertical direction.
Step 401, when initial, turnover zone is the position that belongs to before icon 1 moves, and promptly coordinate position is the cell of (1,2), (2,2).
When carrying out step 402, adopt the Resistance of determining with embodiment one, the similar method of embodiment two-phase shown in the black surround among the accompanying drawing 11b;
Because being not more than Resistance among turnover zone and the accompanying drawing 11b, the size of Resistance on second direction (horizontal direction) comprise whole, the right half part of icon 5 of icon 2 and the left-half (promptly comprising incomplete icon 5 and icon 6) of icon 6; Therefore satisfy in the step 403 condition of when comprising imperfect icon " size of Resistance on second direction be not more than turnover zone and Resistance "; Expand interim Resistance according to icon 5, icon 6 positions; So that the Resistance comprises icon 5 and icon 6 just; Resistance after the expansion gets into step 404 shown in accompanying drawing 11c;
In step 404 and since accompanying drawing 11c in Resistance size in the horizontal direction greater than turnover zone, so the entering step 405;
In step 405, the Resistance after the exchange identity is the zone at icon 1 place, and promptly coordinate position is (1; 2), (2; 2) cell, the Resistance among the accompanying drawing 11c become the turnover zone after the exchange identity, according to the size on the Resistance horizontal direction after the size expansion exchange identity on the horizontal direction of the turnover zone after the exchange identity; Resistance after the expansion gets into step 407 shown in the black surround among the accompanying drawing 11d;
In step 407; Exchange in the horizontal direction measure-alike of Resistance and turnover zone after the identity; But the latter half icon 3 that comprises icon 3 is present in the turnover zone after the exchange identity simultaneously; Therefore do not satisfy the condition of " when exchanging the turnover zone that comprises in the Resistance after size on the Resistance second direction after the identity is not more than the exchange identity of exchanging after turnover zone after the identity and the expansion after imperfect icon and this imperfect icon are not present in the exchange identity "; Therefore the Resistance after the exchange identity is not further expanded, get into step 408;
In step 408, be to be not more than the turnover zone that exchanges after the identity owing to exchange Resistance size in the horizontal direction after the identity in the step 407, need not to carry out once more identity and exchange, get into step 409;
In step 409; Owing to only carried out the identity exchange of turnover zone and Resistance in the present embodiment; Be that the number of times that Resistance and turnover zone exchange identity is an odd number, get into step 410, carry out the identity exchange of turnover zone and Resistance again; Exchange Resistance after the identity once more shown in the black surround among the accompanying drawing 11c, get into step 406;
In step 406, confirm that icon 3 is present in the turnover zone and Resistance after the last exchange identity simultaneously, therefore gets into step 411; Icon 3 is removed from the Resistance; Integral body incorporates in the turnover zone, and the Resistance of this moment gets into step 412 shown in the black surround among Figure 11 e;
In step 412, just turnover zone and Resistance transposition, the result after the exchange is shown in accompanying drawing 11f.
Preferably; Can also carry out the processing procedure shown in accompanying drawing 4b after getting into step 412; Carry out step 4120, judge whether the desired location of turnover zone or Resistance surpasses the border, viewing area as if behind the Resistance transposition after turnover zone after the last exchange identity and the last exchange identity; In the present embodiment if behind the turnover zone and Resistance transposition after the last exchange identity; The desired location of turnover zone or Resistance surpasses the border, viewing area, therefore gets into step 4140, with the turnover zone and the last Resistance transposition that exchanges after the identity that exchange for the last time after the identity; Shown in accompanying drawing 11f, so far accomplished the process that icon 1 moves up.
What be worth explanation is; The round-robin stop condition that constitutes of step 405,407 among the accompanying drawing 4a, 408 is " Resistance is not more than the imperfect part that size and Resistance and turnover zone on the turnover zone second direction comprise same icon in the size on the second direction " in the present embodiment; And be not to be " Resistance is not more than the size on the turnover zone second direction and does not comprise imperfect icon in the size on the second direction "; Therefore need execution in step 411 to incorporate imperfect icon into the turnover zone that once exchanges to the end after the identity or the step of Resistance; If the round-robin stop condition that step 405,407,408 constitutes is " Resistance is not more than the size on the turnover zone second direction and does not comprise imperfect icon in the size on the second direction "; Then need not the processing of execution in step 406,411; Therefore step 401,402,403,404,405,407,408,412 combines and can form the moving method of icon in the viewing area separately among the accompanying drawing 4a, is applicable to the situation that Resistance and turnover zone after the last exchange identity do not comprise imperfect icon.
The embodiment of the invention is to be example to move icon in vertical direction; Introduce icon moving method that the present invention proposes; Obviously through simple flexible; This icon moving method is equally applicable to move in the horizontal direction icon, for example the first direction among the accompanying drawing 4a is revised as horizontal direction, and second direction is revised as vertical direction.The operation of on other directions, icon being moved in addition please with reference to shown in the accompanying drawing 12a, can be broken down into and in the horizontal direction icon moved earlier, in vertical direction icon is moved, shown in accompanying drawing 12b again; Perhaps be broken down into and in vertical direction icon moved earlier, in the horizontal direction icon is moved again, shown in Figure 12 c, the icon moving method that the therefore same suitable embodiment of the invention provides.
The icon that the embodiment of the invention provides moves scheme when needs move icon; At first will wait to move the icon region as turnover zone, and based on wait to move icon and move expection region, back and exist the size of overlapping icon and turnover zone to confirm and the Resistance of turnover zone non-overlapping copies; And with the Resistance with the moving direction vertical direction on size whether greater than turnover zone as turnover zone and Resistance identity conditions of interchange; Turnover zone and Resistance are carried out the identity exchange; In turnover zone and Resistance identity when to exchange number of times be odd number time; Carry out once additional identity again and exchange, after not surpassing the viewing area bounds behind definite turnover zone and the Resistance switch, the position of whole exchange turnover zone and Resistance; Realize treating the purpose that mobile icon moves with this, the overlapping phenomenon of a plurality of icons occurs thereby can avoid icon to move the back.Provide the more or clear area icon more after a little while of a kind of number of icons that in the viewing area, comprises to move scheme, the overlapping phenomenon of a plurality of icons can not occur after can guaranteeing simultaneously to move icon.
Correspondingly; The embodiment of the invention also provides the mobile device of icon in a kind of viewing area; Shown in figure 13, this device comprises that turnover zone is created unit 131, unit 132, Resistance expanding element 133 and location swap unit 134 are created in the Resistance, and is specific as follows:
Turnover zone is created unit 131, is used for waiting that moving icon moves preceding region as turnover zone;
Resistance creating unit 132; Be used for basis and wait to move icon and move that position on the turnover zone second direction that position and turnover zone creating unit 131 on the first direction that there is overlapping icon in expection region, back determine is confirmed and the Resistance of said turnover zone non-overlapping copies; Said first direction is a moving direction of waiting to move icon, and second direction is the direction vertical with first direction;
Resistance expanding element 133 when being used for size on the second direction of Resistance and being not more than turnover zone and Resistance and comprising imperfect icon and said turnover zone and do not comprise this imperfect icon, is expanded the Resistance according to this imperfect icon position;
Location swap unit 134 is when being used for size on the Resistance second direction that Resistance expanding element 133 obtains and being not more than the size on the turnover zone second direction, with turnover zone and Resistance transposition.
Preferably, the location swap unit 134 in the accompanying drawing 13 specifically comprises to be confirmed subelement and carries out subelement, wherein:
Confirm subelement, be used for confirming if whether the desired location of turnover zone or Resistance surpasses the border, viewing area behind the turnover zone and Resistance transposition that Resistance expanding element 133 obtains;
If carry out subelement, be used for determining behind the transposition at definite subelement, the desired location of turnover zone and Resistance does not surpass when showing the border, with turnover zone and Resistance transposition.
Please with reference to accompanying drawing 14; The embodiment of the invention also provides the mobile device of icon in a kind of viewing area; Comprise that turnover zone is created unit 141, unit 142, Resistance expanding element 143, identity exchange unit 144 and location swap unit 145 are created in the Resistance, specific as follows:
Turnover zone is created unit 141, is used for waiting that moving icon moves preceding region as turnover zone;
Resistance creating unit 142; Be used for basis and wait to move icon and move that position on the turnover zone second direction that position and turnover zone creating unit 141 on the first direction that there is overlapping icon in expection region, back confirm is confirmed and the Resistance of said turnover zone non-overlapping copies; Said first direction is a moving direction of waiting to move icon, and second direction is the direction vertical with first direction;
Resistance expanding element 143 when being used for size on the second direction of Resistance and being not more than turnover zone and Resistance and comprising imperfect icon and said turnover zone and do not comprise this imperfect icon, is expanded the Resistance according to this imperfect icon position;
Identity exchange unit 144; Be used in the size on the second direction of Resistance during greater than the size on the turnover zone second direction; Carry out following steps, up to the Resistance till the size on the second direction is not more than the size on the turnover zone second direction and does not comprise imperfect icon: with turnover zone and Resistance exchange identity; Expand the size on the Resistance second direction of exchanging after the identity based on the position on the second direction of exchanging the turnover zone after the identity; And the size on the Resistance second direction after the exchange identity after expansion is when being not more than turnover zone after comprising imperfect icon and exchange identity in size and the Resistance after the exchange identity after the expansion on the turnover zone second direction and not comprising this imperfect icon, expands the Resistance that exchanges after the identity based on this imperfect icon position;
Location swap unit 145 is used for turnover zone and Resistance transposition after the identity exchange unit 144 last exchange identity.
Preferably, the location swap unit 145 in the accompanying drawing 14 specifically comprises to be confirmed subelement and carries out subelement, wherein:
Confirm subelement, be used for confirming if behind the turnover zone and Resistance transposition after the last exchange identity that identity exchange unit 144 obtains, whether the turnover zone after the said last exchange identity or the desired location of Resistance surpass the border, viewing area;
If carry out subelement, be used for determining behind the transposition at definite subelement, the desired location of exchanging turnover zone and Resistance after the identity for the last time is during above the demonstration border, with the turnover zone and the Resistance transposition that exchange for the last time after the identity.
Please with reference to accompanying drawing 15; The embodiment of the invention also provides the mobile device of icon in a kind of viewing area; Comprise that turnover zone establishment unit 151, establishment unit 152, Resistance, Resistance expanding element 153, identity exchange unit 154, imperfect icon incorporate unit 155 and location swap unit 156 into, wherein:
Turnover zone is created unit 151, is used for waiting that moving icon moves preceding region as turnover zone;
Resistance creating unit 152; Be used for basis and wait to move that icon moves the position on the first direction that there is overlapping icon in expection region, back and the position on the turnover zone second direction is confirmed and the Resistance of said turnover zone non-overlapping copies; Said first direction is a moving direction of waiting to move icon, and second direction is the direction vertical with first direction;
Resistance expanding element 153 when being used for size on the second direction of Resistance and being not more than turnover zone and Resistance and comprising imperfect icon and said turnover zone and do not comprise this imperfect icon, is expanded the Resistance according to this imperfect icon position;
Identity exchange unit 154; When being used for size on the second direction of Resistance greater than the size on the turnover zone second direction; Carry out following steps, up to the Resistance till the size on the second direction is not more than size and Resistance and turnover zone on the turnover zone second direction and comprises the imperfect part of same icon: with turnover zone and Resistance exchange identity; Expand the size on the Resistance second direction of exchanging after the identity based on the position on the second direction of exchanging the turnover zone after the identity; And the size on the Resistance second direction after the exchange identity after expansion is when being not more than turnover zone after comprising imperfect icon and exchange identity in size and the Resistance after the exchange identity after the expansion on the turnover zone second direction and not comprising this imperfect icon, expands the Resistance that exchanges after the identity based on this imperfect icon position;
Imperfect icon incorporates unit 155 into; Be used for when identity exchange unit 154 is last after exchanging identity turnover zone comprises the imperfect part of same icon with last Resistance after exchanging identity, this icon integral body incorporated in the turnover zone that once exchanges to the end after the identity;
Location swap unit 156 is used for incorporating said imperfect icon into after the last exchange identity after unit 155 is handled turnover zone and Resistance transposition.
Preferably, the location swap unit 156 in the accompanying drawing 15 specifically comprises to be confirmed subelement and carries out subelement, wherein:
Confirm subelement; Be used for confirming if after imperfect icon incorporated turnover zone and the Resistance transposition after the last exchange identity after unit 155 is handled into, whether the turnover zone after the said last exchange identity or the desired location of Resistance be above the border, viewing area;
If carry out subelement, be used for determining behind the transposition at definite subelement, the desired location of exchanging turnover zone and Resistance after the identity for the last time is during above the demonstration border, with the turnover zone and the Resistance transposition that exchange for the last time after the identity.
One of ordinary skill in the art will appreciate that all or part of step that realizes in the foregoing description method is to instruct relevant hardware to accomplish through program; This program can be stored in the computer read/write memory medium, as: ROM/RAM, magnetic disc, CD etc.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, belong within the scope of claim of the present invention and equivalent technologies thereof if of the present invention these are revised with modification, then the present invention also is intended to comprise these changes and modification interior.

Claims (18)

1. the moving method of icon in the viewing area is characterized in that, comprising:
To wait to move icon and move preceding region as turnover zone;
Based on wait to move that icon moves the position on the first direction that there is overlapping icon in expection region, back and the position on the turnover zone second direction is confirmed and the Resistance of said turnover zone non-overlapping copies; Said first direction is a moving direction of waiting to move icon, and second direction is the direction vertical with first direction;
When the size on the second direction of Resistance is not more than size and Resistance on the turnover zone second direction and comprises imperfect icon, expand the Resistance according to this imperfect icon position;
When the size on the second direction of Resistance is not more than the size on the turnover zone second direction, with turnover zone and Resistance transposition.
2. moving method as claimed in claim 1; It is characterized in that; According to wait to move that icon moves the position on the first direction that there is overlapping icon in expection region, back and the position on the turnover zone second direction is confirmed and the Resistance of said turnover zone non-overlapping copies, specifically comprise:
Obtain each and wait to expect that the region exists the minimum value of the coordinate position of overlapping icon on first direction and the interval range that maximal value is formed after moving icon moves;
As the position range of Resistance on first direction, the interval range that the minimum value of the coordinate position on the turnover zone second direction and maximal value are formed is as the position range of Resistance on second direction with the pairing interval range of the union of each interval range that obtains.
3. moving method as claimed in claim 1 is characterized in that, is expanding the Resistance according to this imperfect icon position, specifically comprises:
Confirm the subregion of said imperfect icon outside said Resistance;
The border rectangle that said Resistance is expanded to this Resistance can comprise said subregion.
4. moving method as claimed in claim 1 is characterized in that, before with turnover zone and Resistance switch, also comprises:
Confirm that if behind turnover zone and the Resistance transposition, the desired location of turnover zone and Resistance does not surpass the border, viewing area.
5. the moving method of icon in the viewing area is characterized in that, comprising:
To wait to move icon and move preceding region as turnover zone;
Based on wait to move that icon moves the position on the first direction that there is overlapping icon in expection region, back and the position on the turnover zone second direction is confirmed and the Resistance of said turnover zone non-overlapping copies; Said first direction is a moving direction of waiting to move icon, and second direction is the direction vertical with first direction;
When the size on the second direction of Resistance is not more than size and Resistance on the turnover zone second direction and comprises imperfect icon, expand the Resistance according to this imperfect icon position;
Size on the second direction of Resistance is carried out following steps during greater than the size on the turnover zone second direction, up to the Resistance till the size on the second direction is not more than the size on the turnover zone second direction and does not comprise imperfect icon:
Turnover zone and Resistance are exchanged identity;
Expand based on the position on the second direction of exchanging the turnover zone after the identity and to exchange after the identity
Size on the second direction of Resistance, and
When the size on the Resistance second direction after the exchange identity after expansion is not more than turnover zone after comprising imperfect icon and exchange identity in size and the Resistance after the exchange identity after the expansion on the turnover zone second direction and does not comprise this imperfect icon, expand the Resistance that exchanges after the identity according to this imperfect icon position;
With the turnover zone and the Resistance transposition that exchange for the last time after the identity.
6. moving method as claimed in claim 5; It is characterized in that; According to wait to move that icon moves the position on the first direction that there is overlapping icon in expection region, back and the position on the turnover zone second direction is confirmed and the Resistance of said turnover zone non-overlapping copies, specifically comprise:
Obtain each and wait to expect that the region exists the minimum value of the coordinate position of overlapping icon on first direction and the interval range that maximal value is formed after moving icon moves;
The interval range that the union of each interval range that obtains is corresponding is as the position range of Resistance on first direction, with the interval range of the minimum value of the coordinate position on the turnover zone second direction and maximal value composition as the position range of Resistance on second direction.
7. moving method as claimed in claim 5 is characterized in that, is expanding the Resistance according to this imperfect icon position, specifically comprises:
Confirm the subregion of said imperfect icon outside said Resistance;
The border rectangle that said Resistance is expanded to this Resistance can comprise said subregion.
8. moving method as claimed in claim 5 is characterized in that, before turnover zone and Resistance transposition after the said last exchange identity, also comprises:
Confirm if behind the turnover zone and Resistance transposition after the last exchange identity, the turnover zone after the said last exchange identity and the desired location of Resistance surpass the border, viewing area.
9. moving method as claimed in claim 5 is characterized in that, is confirming if before the operation of turnover zone after the last exchange identity and Resistance transposition, also comprise:
When the number of times that exchanges identity in turnover zone and Resistance is an odd number time, with the turnover zone and Resistance exchange identity that exchange for the last time after the identity.
10. the moving method of icon in the viewing area is characterized in that, comprising:
To wait to move icon and move preceding region as turnover zone;
Based on wait to move that icon moves the position on the first direction that there is overlapping icon in expection region, back and the position on the turnover zone second direction is confirmed and the Resistance of said turnover zone non-overlapping copies; Said first direction is a moving direction of waiting to move icon, and second direction is the direction vertical with first direction;
When the size on the second direction of Resistance is not more than size and Resistance on the turnover zone second direction and comprises imperfect icon, expand the Resistance according to this imperfect icon position;
Size on the second direction of Resistance is during greater than the size on the turnover zone second direction; Carry out following steps, up to the Resistance till the size on the second direction is not more than size and Resistance and turnover zone on the turnover zone second direction and comprises the imperfect part of same icon:
Turnover zone and Resistance are exchanged identity;
Expand the size on the Resistance second direction of exchanging after the identity according to the position on the second direction of exchanging the turnover zone after the identity, and
When the size on the Resistance second direction after the exchange identity after expansion is not more than turnover zone after comprising imperfect icon and exchange identity in size and the Resistance after the exchange identity after the expansion on the turnover zone second direction and does not comprise this imperfect icon, expand the Resistance that exchanges after the identity according to this imperfect icon position;
When exchanging turnover zone and the last Resistance that exchanges after the identity after the identity the last time and comprising the imperfect part of same icon, this icon integral body is incorporated in the Resistance after once exchanging the turnover zone after the identity to the end or exchanging identity for the last time;
With turnover zone and the Resistance transposition after the said last exchange identity.
11. moving method as claimed in claim 10 is characterized in that, is confirming if before the operation of turnover zone and Resistance transposition, also comprise:
When the number of times that exchanges identity in turnover zone and Resistance is an odd number time, with the turnover zone and Resistance exchange identity that exchange for the last time after the identity.
12. moving method as claimed in claim 10 is characterized in that, before turnover zone and Resistance transposition after the said last exchange identity, also comprises:
Confirm if behind the turnover zone and Resistance transposition after the last exchange identity, the turnover zone after the said last exchange identity and the desired location of Resistance surpass the border, viewing area.
13. the moving method of icon is characterized in that in the viewing area, comprising:
To wait to move icon and move preceding region as turnover zone;
Based on wait to move that icon moves the position on the first direction that there is overlapping icon in expection region, back and the position on the turnover zone second direction is confirmed and the Resistance of said turnover zone non-overlapping copies; Said first direction is a moving direction of waiting to move icon, and second direction is the direction vertical with first direction;
When the size on the second direction of Resistance is not more than size and Resistance on the turnover zone second direction and comprises imperfect icon, expand the Resistance according to this imperfect icon position;
When the size on the second direction of Resistance is not more than the size on the turnover zone second direction, with turnover zone and Resistance transposition;
Size on the second direction of Resistance is during greater than the size on the turnover zone second direction; Carry out following steps; Be not more than the size on the turnover zone second direction and do not comprise imperfect icon in the size on the second direction up to the Resistance, perhaps the Resistance is till the size on the second direction is not more than size and Resistance and turnover zone on the turnover zone second direction and comprises the imperfect part of same icon:
Turnover zone and Resistance are exchanged identity;
Expand the size on the Resistance second direction of exchanging after the identity according to the position on the second direction of exchanging the turnover zone after the identity, and
When the size on the Resistance second direction after the exchange identity after expansion is not more than turnover zone after comprising imperfect icon and exchange identity in size and the Resistance after the exchange identity after the expansion on the turnover zone second direction and does not comprise this imperfect icon, expand the Resistance that exchanges after the identity according to this imperfect icon position;
When exchanging turnover zone and the last Resistance that exchanges after the identity after the identity the last time and comprising the imperfect part of same icon, this icon integral body is incorporated in the resistance shelves district after once exchanging the turnover zone after the identity to the end or exchanging identity for the last time;
With turnover zone and the Resistance transposition after the said last exchange identity.
14. the mobile device of icon is characterized in that in the viewing area, comprising:
Turnover zone is created the unit, is used for waiting that moving icon moves preceding region as turnover zone;
The Resistance creating unit; Be used for basis and wait to move icon and move that position on the turnover zone second direction that position and turnover zone creating unit on the first direction that there is overlapping icon in expection region, back confirm is confirmed and the Resistance of said turnover zone non-overlapping copies; Said first direction is a moving direction of waiting to move icon, and second direction is the direction vertical with first direction;
The Resistance expanding element when being used for size on the second direction of Resistance and being not more than turnover zone and Resistance and comprising imperfect icon and said turnover zone and do not comprise this imperfect icon, is expanded the Resistance according to this imperfect icon position;
The location swap unit is when being used for size on the Resistance second direction that the Resistance expanding element obtains and being not more than the size on the turnover zone second direction, with turnover zone and Resistance transposition.
15. device as claimed in claim 14 is characterized in that, said location swap unit specifically comprises:
Confirm subelement, be used for confirming if whether the desired location of turnover zone or Resistance surpasses the border, viewing area behind the turnover zone and Resistance transposition that the Resistance expanding element obtains;
If carry out subelement, be used for determining behind the transposition at definite subelement, the desired location of turnover zone and Resistance does not surpass when showing the border, with turnover zone and Resistance transposition.
16. the mobile device of icon is characterized in that in the viewing area, comprising:
Turnover zone is created the unit, is used for waiting that moving icon moves preceding region as turnover zone;
The Resistance creating unit; Be used for basis and wait to move that icon moves the position on the first direction that there is overlapping icon in expection region, back and the position on the turnover zone second direction is confirmed and the Resistance of said turnover zone non-overlapping copies; Said first direction is a moving direction of waiting to move icon, and second direction is the direction vertical with first direction;
The Resistance expanding element when being used for size on the second direction of Resistance and being not more than turnover zone and Resistance and comprising imperfect icon and said turnover zone and do not comprise this imperfect icon, is expanded the Resistance according to this imperfect icon position;
The identity exchange unit; Be used in the size on the second direction of Resistance during greater than the size on the turnover zone second direction; Carry out following steps, up to the Resistance till the size on the second direction is not more than the size on the turnover zone second direction and does not comprise imperfect icon: with turnover zone and Resistance exchange identity; Expand the size on the Resistance second direction of exchanging after the identity based on the position on the second direction of exchanging the turnover zone after the identity; And the size on the Resistance second direction after the exchange identity after expansion is when being not more than turnover zone after comprising imperfect icon and exchange identity in size and the Resistance after the exchange identity after the expansion on the turnover zone second direction and not comprising this imperfect icon, expands the Resistance that exchanges after the identity based on this imperfect icon position;
The location swap unit is used for said identity exchange unit is exchanged turnover zone and Resistance transposition after the identity for the last time.
17. device as claimed in claim 16 is characterized in that, said location swap unit specifically comprises:
Confirm subelement, be used for confirming if whether the turnover zone after the said last exchange identity or the desired location of Resistance surpass the border, viewing area behind the turnover zone and Resistance transposition after the last exchange identity that the identity exchange unit obtains;
If carry out subelement, be used for determining behind the transposition at definite subelement, the desired location of exchanging turnover zone and Resistance after the identity for the last time is during above the demonstration border, with the turnover zone and the Resistance transposition that exchange for the last time after the identity.
18. the mobile device of icon is characterized in that in the viewing area, comprising:
Turnover zone is created the unit, is used for waiting that moving icon moves preceding region as turnover zone;
The Resistance creating unit; Be used for basis and wait to move that icon moves the position on the first direction that there is overlapping icon in expection region, back and the position on the turnover zone second direction is confirmed and the Resistance of said turnover zone non-overlapping copies; Said first direction is a moving direction of waiting to move icon, and second direction is the direction vertical with first direction;
The Resistance expanding element when being used for size on the second direction of Resistance and being not more than turnover zone and Resistance and comprising imperfect icon and said turnover zone and do not comprise this imperfect icon, is expanded the Resistance according to this imperfect icon position;
The identity exchange unit; When being used for size on the second direction of Resistance greater than the size on the turnover zone second direction; Carry out following steps, up to the Resistance till the size on the second direction is not more than size and Resistance and turnover zone on the turnover zone second direction and comprises the imperfect part of same icon: with turnover zone and Resistance exchange identity; Expand the size on the Resistance second direction of exchanging after the identity based on the position on the second direction of exchanging the turnover zone after the identity; And the size on the Resistance second direction after the exchange identity after expansion is when being not more than turnover zone after comprising imperfect icon and exchange identity in size and the Resistance after the exchange identity after the expansion on the turnover zone second direction and not comprising this imperfect icon, expands the Resistance that exchanges after the identity based on this imperfect icon position;
Imperfect icon incorporates the unit into; When being used for turnover zone after the identity exchange unit is exchanged identity for the last time and comprising the imperfect part of same icon, this icon integral body is incorporated in the Resistance after once exchanging the turnover zone after the identity to the end or exchanging identity for the last time with the last Resistance that exchanges after the identity;
The location swap unit is used for incorporating imperfect icon into after the last exchange identity after the cell processing turnover zone and Resistance transposition.
CN2010102016307A 2010-06-09 2010-06-09 Method for moving icons in display area and relevant device Active CN102279695B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010102016307A CN102279695B (en) 2010-06-09 2010-06-09 Method for moving icons in display area and relevant device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010102016307A CN102279695B (en) 2010-06-09 2010-06-09 Method for moving icons in display area and relevant device

Publications (2)

Publication Number Publication Date
CN102279695A CN102279695A (en) 2011-12-14
CN102279695B true CN102279695B (en) 2012-10-31

Family

ID=45105174

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010102016307A Active CN102279695B (en) 2010-06-09 2010-06-09 Method for moving icons in display area and relevant device

Country Status (1)

Country Link
CN (1) CN102279695B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102375665B (en) * 2010-08-20 2013-04-24 中国移动通信集团公司 Icon moving method and device
CN103246500B (en) * 2012-02-06 2017-07-28 腾讯科技(深圳)有限公司 desktop icon display method and device
CN105426042A (en) * 2015-11-05 2016-03-23 小米科技有限责任公司 Icon position exchange method and apparatus
JP7005334B2 (en) * 2017-12-22 2022-01-21 キヤノン株式会社 Electronic devices, their control methods and programs
CN110221735B (en) * 2018-03-02 2021-03-12 Oppo广东移动通信有限公司 Icon processing method and device and mobile terminal
CN110515511A (en) * 2019-08-20 2019-11-29 新奥数能科技有限公司 A kind of operation application program image target method and device
CN112162667A (en) * 2020-09-28 2021-01-01 维沃移动通信有限公司 Object display control method and device and electronic equipment
CN112148170B (en) * 2020-09-29 2022-07-01 维沃移动通信有限公司 Desktop element adjusting method and device and electronic equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101308443A (en) * 2007-01-31 2008-11-19 捷讯研究有限公司 System and method for organizing icons for applications on a mobile device
CN101354629A (en) * 2007-07-24 2009-01-28 株式会社Ntt都科摩 Method and apparatus for controlling display of windows

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7509588B2 (en) * 2005-12-30 2009-03-24 Apple Inc. Portable electronic device with interface reconfiguration mode
KR101609162B1 (en) * 2008-11-13 2016-04-05 엘지전자 주식회사 Mobile Terminal With Touch Screen And Method Of Processing Data Using Same

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101308443A (en) * 2007-01-31 2008-11-19 捷讯研究有限公司 System and method for organizing icons for applications on a mobile device
CN101354629A (en) * 2007-07-24 2009-01-28 株式会社Ntt都科摩 Method and apparatus for controlling display of windows

Also Published As

Publication number Publication date
CN102279695A (en) 2011-12-14

Similar Documents

Publication Publication Date Title
CN102279695B (en) Method for moving icons in display area and relevant device
US11199942B2 (en) Method and system for sorting desktop objects
US20160202887A1 (en) Method for managing application icon and terminal
JP2018503209A (en) Method for selecting available items in a graphical user interface of a mobile computer system
EP2557490A1 (en) Icon adding method and device in interface of android system and mobile terminal
CN101763270B (en) Method for displaying and processing assembly and user equipment
CN102446021B (en) Electronic equipment and information processing method
CN110413191A (en) The method for showing equipment and control display equipment
WO2014196639A1 (en) Information processing apparatus and control program
JP6026363B2 (en) Information processing apparatus and control program
CN105280145A (en) Display device and mobile terminal
KR20120138618A (en) Method and apparatus for operating multi tasking in a mobile device
CN103744653A (en) Mobile terminal and application icon management method
CN104133614A (en) Screen menu display method and system
CN106371715A (en) Method and device for realizing multi-entry switching
CN114089884A (en) Desktop editing method and electronic equipment
CN111273844B (en) Multi-signal-source switching control method of touch display device and touch display device
CN103902188A (en) Information processing method and electronic device
CN102375664B (en) Icon moving method and device
CN110209462B (en) Window arrangement method, device and equipment
CN103914245A (en) Control method and device of electronic device
CN102375665B (en) Icon moving method and device
CN104793848A (en) Information processing method and electronic equipment
CN104777981A (en) Information fast sharing method and device
CN103677572A (en) Method and electronic device for processing information

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant