WO2014086162A1 - 一种控制图标的方法及设备 - Google Patents

一种控制图标的方法及设备 Download PDF

Info

Publication number
WO2014086162A1
WO2014086162A1 PCT/CN2013/080590 CN2013080590W WO2014086162A1 WO 2014086162 A1 WO2014086162 A1 WO 2014086162A1 CN 2013080590 W CN2013080590 W CN 2013080590W WO 2014086162 A1 WO2014086162 A1 WO 2014086162A1
Authority
WO
WIPO (PCT)
Prior art keywords
icon
target icon
icons
shaking
end position
Prior art date
Application number
PCT/CN2013/080590
Other languages
English (en)
French (fr)
Inventor
朱丽君
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to US14/145,339 priority Critical patent/US20140157167A1/en
Publication of WO2014086162A1 publication Critical patent/WO2014086162A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/10Program control for peripheral devices

Definitions

  • the present invention relates to the field of computers, and in particular, to a method and an apparatus for controlling an icon.
  • a user can lock a program into a task bar, and an icon of the application is displayed in the task bar. Also, when a user opens an application, the icon for that application appears in the taskbar.
  • the icon in the taskbar allows the user to drag the icon from the initial position to another position on the taskbar, and the icon that was dragged when the user releases the mouse is restored to the original position.
  • Embodiments of the present invention provide a method and a device for controlling an icon. In the process of dragging an icon, an effect of a materialized presentation icon can be achieved.
  • a first aspect of the present invention provides a method for controlling an icon, including:
  • Receiving an operation instruction of the drag target icon acquiring stop position information of the drag target icon from the operation instruction, the operation instruction includes the stop position information, and controlling the target icon from the initial according to the stop position information Move the position to the end position;
  • Receiving an operation instruction for releasing the target icon controlling the target icon to move from the end position in a direction from the end position to the initial position;
  • the method further includes: monitoring a distance value obtained by moving the target icon from an initial position to an end position;
  • the controlling the movement of the target icon from the end position to the direction from the end position to the initial position comprises:
  • Controlling the target icon to move at a speed V from the end position in a direction from the end position to the initial position; the fxJ , the L being a distance value between the initial position and the end position,
  • the K is a coefficient set in advance.
  • controlling the target icon and other icons in the direction to be shaken include:
  • controlling the target icon and the shaking of other icons in the direction include: controlling the target icon and Other icons in the direction are shaken, and the shaking frequency and/or the shaking amplitude of the shaking are inversely proportional to the number of icons in the direction.
  • a fifth possible implementation controlling the target icon and other icons in the direction to be shaken; wherein, each of the directions The shaking frequency and/or the shaking amplitude of the shaking of the other icons is inversely proportional to the distance of the other icons in each of the directions from the position before the target icon is shaken.
  • the method further includes:
  • a second aspect of the present invention provides an apparatus for controlling an icon, including: a first moving unit, a second moving unit, and a shaking unit, where:
  • a first moving unit configured to receive an operation instruction of the drag target icon, and obtain stop position information of the drag target icon from the operation instruction, where the operation instruction includes the stop position information, according to the stop position information Controlling the target icon to move from an initial position to an end position;
  • a second moving unit configured to receive an operation instruction for releasing the target icon, and control the target icon to move from the end position to a direction from the end position to the initial position; a shaking unit, and a second moving unit Connecting, configured to control the target icon and the direction when the second moving unit moves the target icon in the direction to a position farthest from the end position and is not occupied by the display icon
  • the other icons on it are shaking.
  • the device further includes: a monitoring unit, configured to monitor a distance value obtained by moving the target icon from an initial position to an end position;
  • the second moving unit is specifically configured to receive an operation instruction for releasing the target icon, and control the target icon to move from the end position to a speed V in a direction from the end position to the initial position; f xJ , the L is a distance value between the initial position and the end position, and the K is a coefficient set in advance.
  • the swaying unit is specifically configured to move the target icon in the direction to the farthest from the end position, And when the position occupied by the icon is not displayed, controlling the target icon and other icons in the direction to be shaken, the shaking frequency and/or the shaking amplitude of the shaking and the target icon are from the ending position
  • the speed at which the end position is directed to the direction of the initial position is proportional.
  • the swaying unit is specifically configured to move the target icon in the direction to the farthest from the end position When the position occupied by the icon is not displayed, the target icon and other icons in the direction are controlled to be shaken, and the shaking frequency and/or the shaking amplitude of the shaking are inversely proportional to the number of icons in the direction.
  • the swaying unit is specifically configured to: when the second mobile unit moves the target icon in the direction to Controlling the target icon and other icons in the direction at a direction of a line connecting the current position of the target icon and the end position when the position farthest from the end position and is not occupied by the display icon is controlled Shake up.
  • the swaying unit is specifically configured to: when the second mobile unit moves the target icon in the direction to Controlling the target icon and other icons in the direction to sway when the position farthest from the end position and is not occupied by the display icon; wherein, the shaking frequency of other icons in each of the directions is The amplitude of the sway is inversely proportional to the distance of the other icon in each of the directions from the position before the target icon is shaken.
  • the swaying unit is specifically configured to: when the second mobile unit moves the target icon in the direction to Controlling the target icon and other icons in the direction to sway when the position farthest from the end position and is not occupied by the display icon; wherein, the shaking frequency of other icons in each of the directions is The amplitude of the sway is inversely proportional to the distance of the other icon in each of the directions from the position before the target icon is shaken.
  • the operation instruction of the drag target icon is received, and the stop position information of the drag target icon is acquired from the operation instruction, the operation instruction includes the stop position information, and the stop position information is controlled according to the stop position information.
  • FIG. 1 is a schematic flowchart of a method for controlling an icon according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of another method for controlling an icon according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of a mobile device according to an embodiment of the present invention. Schematic diagram of the icon;
  • FIG. 4 is a schematic diagram of another mobile icon according to an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of another mobile icon according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of an apparatus for controlling an icon according to an embodiment of the present invention
  • FIG. 7 is a schematic structural diagram of another apparatus for controlling an icon according to an embodiment of the present invention
  • FIG. 8 is a computer system according to an embodiment of the present invention; Schematic diagram of the structure.
  • FIG. 1 is a schematic flowchart of a method for controlling an icon according to an embodiment of the present invention. It should be understood that the icon in this embodiment is an icon for indicating an application, including but not limited to, as shown in FIG. , including:
  • the operation instruction of the drag target icon is received, and the stop position information of the drag target icon is obtained from the operation instruction, where the operation instruction includes the stop position information, and the target icon is controlled according to the stop position information. Move from the initial position to the end position;
  • the method may be specifically applied to a device supporting a drag icon such as a computer or a mobile phone.
  • the operation instruction of the drag target icon is received, and the stop position information of the drag target icon is acquired from the operation instruction, the operation instruction includes the stop position information, and the stop position information is controlled according to the stop position information.
  • FIG. 2 is a schematic flowchart of another method for controlling an icon according to an embodiment of the present invention. As shown in FIG. 2, the method includes:
  • the operation instruction of the drag target icon is received, and the stop position information of the drag target icon is obtained from the operation instruction, the operation instruction includes the stop position information, and the target icon is controlled according to the stop position information. Move from the initial position to the end position.
  • the end position may be stop position information, and when the stop position information exceeds a display boundary of the device implementing the present invention, the end position may be a display boundary position of the device.
  • the target icon may be an icon displayed on the taskbar in the computer.
  • the target icons of the present invention include, but are not limited to, icons displayed on the taskbar in the computer, such as icons in the mobile phone interface.
  • the target icon moves in the direction to the farthest from the end position, and When the position occupied by the icon is not displayed, the target icon and other icons in the direction are controlled to be shaken.
  • the swaying frequency and/or the swaying amplitude of the sway is proportional to a speed at which the target icon moves from the end position to a direction from the end position to the initial position
  • the shaking frequency and/or the shaking amplitude of the shaking is inversely proportional to the number of icons in the direction.
  • the target icon is an icon displayed on the computer taskbar
  • the task bar displays three icons, as shown in FIG. 3, from left to right, icon 1, icon 2, and icon 3, when the target icon is an icon. 1st
  • step 201 receives operation information input by the user, control icon 1 moves to the above end position, H does not have the above end position on the right side of the task bar, during the dragging process, since icon 1 is dragged, icon 2 and
  • the icon 3 can be moved to the left one position in turn to display the icon, that is, the icon 2 and the icon 3 are respectively moved to the positions where the original icon 1 and the icon 2 are located.
  • Step 202 controls the icon 1 to move from the end position to the direction from the end position to the initial position, that is, from the right to the left, in step 203, the target icon moves in the direction to the end position.
  • the farthest, and not occupied by the display icon is the position where the icon 3 is not executed before step 201.
  • step 203 sways the control target icon and other icons in the direction. Just like this, you can give the user an icon 1 hit the icon 3 and icon 2, when the icon 1 hits the icon 3 and the icon 2, the icon 1, the icon 2 and the icon 3 are shaken.
  • step 101 drags the icon 1
  • the icon 2 and icon 3 are respectively moved to the position occupied by the icon 1 and the above-mentioned undisplayed icon
  • step 203 controls the icon 1 to move to the original position of the icon 2.
  • the icon 101 is dragged
  • the icon 2 and the icon 3 are respectively moved to the original positions of the icon 1 and the icon 2, that is, the position occupied by the undisplayed icon continues to be retained, and then, the step 203 is controlled again. Icon 1 moves to the original position of icon 3.
  • the faster the above speed, or the swaying frequency and/or the swaying amplitude of the swaying is greater; the greater the number of icons in the above direction, the smaller the swaying frequency and/or the swaying amplitude of the swaying. It should be noted that when the target icon moves from the end position in the above direction, the step
  • the 203 controls the target icon and the icon in the above direction to sway, so that the user can have an effect similar to the collision of a plurality of objects. If the target icon hits other icons in the direction, the target icon and other icons in the direction are shaken.
  • step 204 may be specifically performed after the shaking occurs in step 203. This can give the user a collision of the target icon with other icons in the direction, and the effect of shaking and then stopping.
  • the method may further include: monitoring a distance value of the target icon moving from the initial position to the end position; optionally, in the embodiment, step 202 is specific.
  • V is KxL
  • L is the a distance value between the initial position and the end position
  • K is a coefficient set in advance.
  • step 203 may specifically include:
  • Controlling the target icon and other icons in the direction at a current position of the target icon when the target icon moves in the direction to a position farthest from the end position and is not occupied by the display icon Shaking in a direction of a line connecting the position and the end position, the shaking frequency and/or the shaking amplitude of the shaking and the movement of the target icon from the end position in a direction from the end position to the initial position
  • the speed is proportional to the swaying frequency and/or the swaying amplitude of the sway being inversely proportional to the number of icons in the direction.
  • the swaying may be a round-trip sway. If the direction of the connection is a horizontal direction, the swaying may be swayed in the horizontal direction with the current position of the icon as the origin, for example, the direction of the connection is In the vertical direction, the above-mentioned shaking can be shaken up and down with the current position of the icon as the origin in the vertical direction.
  • the target icon is an icon 3, and the icon in the direction includes an icon. 1 and icon 2
  • step 201 controls the icon 3 to move to the end position (position B in Fig. 3)
  • step 202 controls the icon 3 to move in the direction
  • step 203 when the target icon moves in the direction away from the
  • the control icon 1, icon 2, and icon 3 are shaken (as shown in the fourth line of FIG. 3)
  • step 204 controls the icon 1.
  • Icon 2 and icon 3 return to the position where the shaking occurred (as shown in the fifth line of Figure 3).
  • step 203 may specifically include:
  • each The sloshing frequency and/or sway amplitude of other icons in the direction is inversely proportional to the distance of other icons in each of the directions from the position at which the target icon was first displaced.
  • the shaking frequency and/or the shaking amplitude of the shaking of the icon at different positions may be different.
  • the distance of the icon 2 from the position where the icon 3 is displaced before the first displacement is smaller than the icon 1 from the icon 3
  • the distance at which the sway occurs before the sway occurs, and the swaying frequency and/or the swaying amplitude of the swaying of the icon 2 is greater than the swaying frequency and/or the swaying amplitude of the swaying that occurs in the icon 2.
  • the swaying may be performed by first shaking in the direction and then swaying in the opposite direction of the direction. It can also be repeated swaying. If the direction is the direction pointing to the left, and the opposite direction of the direction is pointing to the right direction, then the swaying can be swaying from side to side. Of course, it can also be swayed once and swaying. And/or the amplitude of the sway is reduced accordingly.
  • target icon is an icon displayed by the computer taskbar
  • other icons in the direction only indicate icons in the task bar in the direction, and do not include other icons in the direction (for example: Start icon).
  • the step of controlling the target icon and other icons in the direction to stop shaking is added, so that the user can generate a target icon and other icons in the direction. Collision, and the effect of shaking and then stopping. At the same time, it is also possible to realize the effect of the materialized display icon in the process of dragging the icon.
  • the following is a device embodiment of the present invention.
  • the device embodiment of the present invention is used to perform the method for implementing the first to second embodiments of the present invention. For the convenience of description, only parts related to the embodiment of the present invention are shown, and the specific technical details are not disclosed. Please refer to Embodiment 1 and Embodiment 2 of the present invention.
  • FIG. 6 is a schematic structural diagram of an apparatus for controlling an icon according to an embodiment of the present invention.
  • the method includes: a first moving unit 31, a second moving unit 32, and a shaking unit 43, wherein: the first moving unit 31 And receiving an operation instruction for dragging the target icon, acquiring stop position information of the drag target icon from the operation instruction, the operation instruction includes the stop position information, and controlling the target according to the stop position information
  • the icon moves from the initial position to the end position;
  • a second moving unit 32 configured to receive an operation instruction for releasing the target icon, and control the target icon to move from the end position to a direction from the end position to the initial position;
  • a shaking unit 33 connected to the second moving unit 32, for when the second moving unit 32 controls the target icon to move in the direction to the position farthest from the end position and is not occupied by the display icon, Controlling the target icon and other icons in the direction are shaken.
  • the device may specifically be a device that supports dragging icons such as a computer or a mobile phone.
  • the operation instruction of the drag target icon is received, and the stop position information of the drag target icon is acquired from the operation instruction, the operation instruction includes the stop position information, and the stop position information is controlled according to the stop position information. Transmitting the target icon from the initial position to the end position; receiving an operation instruction to release the target icon, controlling the target icon to move from the end position in a direction from the end position to the initial position; when the target When the icon moves in the direction to the position farthest from the end position and is not occupied by the display icon, the target icon and other icons in the direction are controlled to be shaken.
  • FIG. 7 is a schematic structural diagram of another apparatus for controlling an icon according to an embodiment of the present invention, such as As shown in FIG. 7, the method includes: a first moving unit 41, a second moving unit 42, a shaking unit 43, and a stopping unit 44, wherein:
  • a first moving unit 41 configured to receive an operation instruction of dragging a target icon, and obtain stop position information of the drag target icon from the operation instruction, where the operation instruction includes the stop position information, according to the stop position The information controls the target icon to move from the initial position to the end position.
  • the target icon may be an icon displayed on the taskbar in the computer.
  • the target icons of the present invention include, but are not limited to, icons displayed on the taskbar in the computer, such as icons in the mobile phone interface.
  • the second moving unit 42 is configured to receive an operation instruction for releasing the target icon, and control the target icon to move from the end position in a direction from the end position to the initial position.
  • a shaking unit 43 connected to the second moving unit 41, for when the second moving unit 42 controls the target icon to move in the direction to the position farthest from the end position and is not occupied by the display icon, Controlling the target icon and other icons in the direction are shaken.
  • the shaking frequency and/or the shaking amplitude of the shaking is proportional to a speed at which the target icon moves from the end position to a direction from the end position to the initial position.
  • the swaying frequency and/or the swaying amplitude of the sway is inversely proportional to the number of icons in the direction.
  • the target icon is an icon displayed on the computer taskbar
  • the task bar displays three icons, as shown in FIG. 3, from left to right, icon 1, icon 2, and icon 3, when the target icon is an icon. 1st
  • the first moving unit 41 receives the operation information input by the user, and the control icon 1 moves to the above end position, H does not have the above end position on the right side of the task bar, and during the dragging process, since the icon 1 is dragged,
  • the icon 2 and the icon 3 can be sequentially moved to the left by one position of the display icon, that is, the icon 2 and the icon 3 are respectively moved to the positions where the original icon 1 and the icon 2 are located.
  • the second moving unit 42 controls the icon 1 to move from the above-mentioned end position in a direction from the end position to the initial position, that is, from the right to the left, and the target icon moves in the direction to the end position.
  • the farthest position that is not occupied by the display icon is the position at which the first moving unit 41 does not perform the above-described movement before the icon 3.
  • the shaking unit 43 controls the target icon and other icons in the direction to be shaken. In this case, the user can feel the feeling that the icon 1 hits the icon 3 and the icon 2.
  • the icon 1 hits the icon 3 and the icon 2
  • the icon 1, the icon 2, and the icon 3 are shaken.
  • the shaking unit 43 controls the target icon and the icon in the direction to sway, so that the user can be similar to the collision of multiple objects. . If the target icon hits other icons in the direction, the target icon and other icons in the direction are shaken.
  • the stopping unit 44 is configured to control the target icon and other icons in the direction to stop shaking when the shaking unit 43 controls the target icon and other icons in the direction are shaken.
  • the device may further include:
  • a monitoring unit (not shown in the drawing) for monitoring a distance value obtained by moving the target icon from an initial position to an end position;
  • the shaking unit 43 may specifically be further configured to: when the second moving unit 42 controls the target icon to move in the direction to be farthest from the end position, and the icon is not displayed When the occupied position is controlled, the target icon and other icons in the direction are controlled to sway in a direction of a line connecting the current position of the target icon and the end position, the shaking frequency and/or the shaking amplitude of the shaking Swinging the swaying frequency of the target icon from the end position in a direction moving from the end position to the initial position
  • the rate and/or amplitude of the sway is inversely proportional to the number of icons in the direction.
  • the target icon is an icon 3, and the icon in the direction includes an icon 1 and an icon 2.
  • the first moving unit 41 controls the icon 3 to move to an end position (position B in FIG. 3), and the second movement
  • the unit 42 controls the icon 3 to move along the method, and when the target icon moves in the direction to the position farthest from the end position and is not occupied by the display icon (position A in the figure), the shaking unit 43
  • the control icon 1, the icon 2, and the icon 3 are shaken (as shown in the fourth line of FIG. 3), and the stop unit 44 controls the position where the icon 1, the icon 2, and the icon 3 are returned before the shaking occurs (as shown in the fifth line of FIG. 3). ).
  • the shaking unit 43 may specifically be further configured to: when the second moving unit 42 controls the target icon to move in the direction to be farthest from the end position, and the icon is not displayed Controlling the target icon and other icons in the direction to sway when occupying the position; wherein, the shaking frequency and/or the shaking amplitude of the other icons in each of the directions and other icons in each of the directions It is inversely proportional to the distance of the position at which the target icon is displaced before the first displacement occurs.
  • the shaking frequency and/or the shaking amplitude of the shaking of the icon at different positions may be different.
  • the distance of the icon 2 from the position where the icon 3 is displaced before the first displacement is smaller than the icon 1 from the icon 3
  • the distance at which the sway occurs before the sway occurs, and the swaying frequency and/or the swaying amplitude of the swaying of the icon 2 is greater than the swaying frequency and/or the swaying amplitude of the swaying that occurs in the icon 2.
  • the swaying may be performed by first shaking in the direction and then swaying in the opposite direction of the direction. It can also be repeated swaying. If the direction is the direction pointing to the left, and the opposite direction of the direction is pointing to the right direction, then the swaying can be swaying from side to side. Of course, it can also be swayed once and swaying. And/or the amplitude of the sway is reduced accordingly.
  • target icon is an icon displayed by the computer taskbar
  • other icons in the direction only indicate icons in the task bar in the direction, and do not include other icons in the direction (for example: Start icon).
  • the stopping unit is configured to control the target icon and other icons in the direction to stop shaking, so that the user can be given a
  • the target icon collides with other icons in the direction, and the effect of shaking and stopping is generated. Shaking frequency and/or shaking amplitude.
  • FIG. 8 is a schematic structural diagram of a computer system according to an embodiment of the present invention, as shown in FIG. 8.
  • the computer system of this embodiment may include a bus 51, a processor 52 connected to the bus 51, and a memory 53 connected to the bus 51.
  • the processor 52 calls the code stored in the memory 53 through the bus for: Receiving an operation instruction of dragging the target icon, controlling the target icon to move from an initial position to an end position; receiving an operation instruction for releasing the target icon, and controlling the target icon to point from the end position to the end position Moving in the direction of the initial position; controlling the target icon and other displays in the direction when the target icon moves in the direction to the position farthest from the end position and is not occupied by the display icon
  • the icon is shaking.
  • the computer system further includes an interface 54 connected to the bus 51.
  • the interface 54 is connected with a display 55;
  • the display 55 is configured to display a screen state in which the target icon moves from an initial position to an end position, a screen state in which the target icon moves from the end position in a direction from the end position to the initial position, or The screen icon/effect of the target icon and other display icons in the direction are shaken.
  • the processor 52 is further configured to:
  • the screen state/effect of controlling the target icon and other icons in the direction to stop shaking may be specifically displayed on the display 55. This gives the user a collision between the target icon and other icons in the direction, and the effect of shaking and then stopping.
  • the processor 52 is further configured to: monitor a distance value obtained by moving the target icon from the initial position to the end position;
  • the controlling the execution of the execution performed by the processor 52 to move the target icon from the end position to the initial position in the direction from the end position may include:
  • Controlling the target icon to move at a speed V from the end position in a direction from the end position to the initial position; the fxJ , the L being the initial position and the end point The distance value of the position, the K being a preset coefficient.
  • the processor 52 controls the target icon when the target icon moves in the direction to the position farthest from the end position and is not occupied by the display icon.
  • the shaking of other icons in the direction may specifically include:
  • Controlling the target icon and other icons in the direction at a current position of the target icon when the target icon moves in the direction to a position farthest from the end position and is not occupied by the display icon Shaking in a direction of a line connecting the position and the end position, the shaking frequency and/or the shaking amplitude of the shaking and the movement of the target icon from the end position in a direction from the end position to the initial position
  • the speed is proportional to the swaying frequency and/or the swaying amplitude of the sway being inversely proportional to the number of icons in the direction.
  • the processor 52 controls the target icon when the target icon moves in the direction to the position farthest from the end position and is not occupied by the display icon.
  • the shaking of other icons in the direction may specifically include:
  • each The sloshing frequency and/or sway amplitude of other icons in the direction is inversely proportional to the distance of other icons in each of the directions from the position at which the target icon was first displaced.
  • the shaking frequency and/or the shaking amplitude of the shaking of the icons at different positions may be different.
  • the distance of the icon 2 from the position where the icon 3 is displaced before the first displacement is smaller than the icon 1 icon. 3
  • the distance at which the position is before the sway occurs, and the swaying frequency and/or the swaying amplitude of the swaying of the icon 2 is greater than the swaying frequency and/or the swaying amplitude of the swaying of the icon 2.
  • the swaying may be performed by first shaking in the direction and then swaying in the opposite direction of the direction. It can also be repeated swaying. If the direction is the direction pointing to the left, and the opposite direction of the direction is pointing to the right direction, then the swaying can be swaying from side to side. Of course, it can also be swayed once and swaying. And/or the amplitude of the sway Reduced.
  • target icon is an icon displayed by the computer taskbar
  • other icons in the direction only indicate icons in the task bar in the direction, and do not include other icons in the direction (for example: Start icon).
  • the operation instruction of the drag target icon is received, and the target icon is controlled to move from the initial position to the end position according to the stop position information; receiving an operation instruction for releasing the target icon, and controlling the target icon from the The end position is moved in a direction from the end position to the initial position; when the target icon moves in the direction to a position farthest from the end position and is not occupied by the display icon, the control station The target icon and other icons in the direction are shaken. In this way, an effect of colliding a target icon with other icons in the direction can be generated, so that the effect of the materialized display icon can be realized in the process of dragging the icon.
  • the storage medium may be a magnetic disk, an optical disk, or a read-only storage memory.
  • ROM Read-Only Memory
  • RAM Random Access Memory

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

一种控制图标的方法及设备。其中该方法包括:接收拖动目标图标的操作指令,从所述操作指令中获取拖动目标图标的停止位置信息,所述操作指令中包括所述停止位置信息,根据所述停止位置信息控制所述目标图标从初始位置移动到所述终点位置(101);接收释放所述目标图标的操作指令,控制所述目标图标从所述终点位置沿从所述终点位置向所述初始位置的方向移动(102);当所述目标图标沿所述方向移动至离所述终点位置最远的,并且未被显示图标占用的位置时,控制所述目标图标以及所述方向上的其它图标发生晃动(103)。该方法及装置可以在拖动过图标的过程中,实现拟物化展现图标的效果。

Description

一种控制图标的方法及设备 技术领域 本发明涉及计算机领域, 尤其涉及一种控制图标的方法及设备。
背景技术 在 Windows操作***中用户可以将某个程序锁定到任务栏中, 在任务 栏中会显示该应用程序的图标。 同时, 当用户打开某个应用程序时, 任务 栏中也会出现该应用程序的图标。
现在的 Windows操作***中, 任务栏中的图标支持用户将图标从初始 位置拖动任务栏的另一位置, 当用户释放鼠标时被拖动的图标恢复到初始 位置。
在上述拖动图标的过程中, 不会对任务栏上其它图标产生影响, 无法 实现拟物化展现图标的效果。
发明内容 本发明实施例提供了一种控制图标的方法及设备, 在拖动图标的过程 中, 可以实现拟物化展现图标的效果。
本发明第一方面提供一种控制图标的方法, 包括:
接收拖动目标图标的操作指令, 从所述操作指令中获取拖动目标图标 的停止位置信息, 所述操作指令中包括所述停止位置信息, 根据所述停止 位置信息控制所述目标图标从初始位置移动到终点位置;
接收释放所述目标图标的操作指令, 控制所述目标图标从所述终点位 置沿从所述终点位置指向所述初始位置的方向移动;
当所述目标图标沿所述方向移动至离所述终点位置最远的, 并且未被 显示图标占用的位置时, 控制所述目标图标以及所述方向上的其它图标发 生晃动。
结合第一方面, 在第一种可能的实现方式中, 所述接收拖动目标图标 的操作指令之后, 还包括: 监测得到所述目标图标从初始位置移动到终点 位置的距离值;
所述控制所述目标图标从所述终点位置沿从所述终点位置指向所述初 始位置的方向移动包括:
控制所述目标图标从所述终点位置沿从所述终点位置指向所述初始位 置的方向以速度 V移动; 所述 = fxJ ,所述 L为所述初始位置与所述终点 位置的距离值, 所述 K为预先设置的系数。
结合第一方面的第一种可能的实现方式, 在第二种可能的实现方式中, 所述控制所述目标图标以及所述方向上的其它图标发生晃动包括:
控制所述目标图标以及所述方向上的其它图标发生晃动, 所述晃动的 晃动频率和 /或晃动幅度与所述目标图标从所述终点位置沿从所述终点位置 指向所述初始位置的方向移动的速度成正比。
结合第一方面或第一方面的上述任一实现方式, 在第三种可能的实现 方式中, 所述控制所述目标图标以及所述方向上的其它图标发生晃动包括: 控制所述目标图标以及所述方向上的其它图标发生晃动, 所述晃动的 晃动频率和 /或晃动幅度与所述方向上图标的数量成反比。
结合第一方面或第一方面的上述任一实现方式, 在第四种可能的实现 方式中, 控制所述目标图标以及所述方向上的其它图标在所述目标图标的 当前位置与所述终点位置的连线的方向上晃动。
结合第一方面或第一方面的上述任一实现方式, 在第五种可能的实现 方式中, 控制所述目标图标以及所述方向上的其它图标发生晃动; 其中, 每个所述方向上的其它图标的晃动的晃动频率和 /或晃动幅度与每个所述方 向上的其它图标离所述目标图标发生晃动前所处的位置的距离成反比。
结合第一方面或第一方面的上述任一实现方式, 在第六种可能的实现 方式中, 所述控制所述目标图标以及所述方向上的其它图标发生晃动之后, 所述方法还包括:
控制所述目标图标以及所述方向上的其它图标停止晃动。 本发明第二方面提供一种控制图标的设备, 包括: 第一移动单元、 第 二移动单元和晃动单元, 其中:
第一移动单元, 用于接收拖动目标图标的操作指令, 从所述操作指令 中获取拖动目标图标的停止位置信息, 所述操作指令中包括所述停止位置 信息, 根据所述停止位置信息控制所述目标图标从初始位置移动到终点位 置;
第二移动单元, 用于接收释放所述目标图标的操作指令, 控制所述目 标图标从所述终点位置沿从所述终点位置指向所述初始位置的方向移动; 晃动单元, 与第二移动单元连接, 用于当当所述第二移动单元将所述 目标图标沿所述方向移动至离所述终点位置最远的, 并且未被显示图标占 用的位置时, 控制所述目标图标以及所述方向上的其它图标发生晃动。
结合第二方面, 在第一种可能的实现方式中, 所述设备还包括: 监测单元, 用于监测得到所述目标图标从初始位置移动到终点位置的 距离值;
所述第二移动单元具体用于接收释放所述目标图标的操作指令, 控制 所述目标图标从所述终点位置沿从所述终点位置指向所述初始位置的方向 以速度 V移动; 所述 = f xJ ,所述 L为所述初始位置与所述终点位置的距 离值, 所述 K为预先设置的系数。
结合第二方面的第一种可能的实现方式, 在第二种可能的实现方式中, 所述晃动单元具体用于当所述目标图标沿所述方向移动至离所述终点位置 最远的, 并且未被显示图标占用的位置时, 控制所述目标图标以及所述方 向上的其它图标发生晃动, 所述晃动的晃动频率和 /或晃动幅度与所述目标 图标从所述终点位置沿从所述终点位置指向所述初始位置的方向移动的速 度成正比。
结合第二方面或第二方面的上述任一实现方式, 在第三种可能的实现 方式中, 所述晃动单元具体用于当所述目标图标沿所述方向移动至离所述 终点位置最远的, 并且未被显示图标占用的位置时, 控制所述目标图标以 及所述方向上的其它图标发生晃动, 所述晃动的晃动频率和 /或晃动幅度与 所述方向上图标的数量成反比。 结合第二方面或第二方面的上述任一实现方式, 在第四种可能的实现 方式中, 所述晃动单元具体用于当所述第二移动单元将所述目标图标沿所 述方向移动至离所述终点位置最远的, 并且未被显示图标占用的位置时, 控制所述目标图标以及所述方向上的其它图标在所述目标图标的当前位置 与所述终点位置的连线的方向上晃动。
结合第二方面或第二方面的上述任一实现方式, 在第五种可能的实现 方式中, 所述晃动单元具体用于当所述第二移动单元将所述目标图标沿所 述方向移动至离所述终点位置最远的, 并且未被显示图标占用的位置时, 控制所述目标图标以及所述方向上的其它图标发生晃动; 其中, 每个所述 方向上的其它图标的晃动频率和 /或晃动幅度与每个所述方向上的其它图标 离所述目标图标发生晃动前所处的位置的距离成反比。
结合第二方面或第二方面的上述任一实现方式, 在第六种可能的实现 方式中, 所述晃动单元具体用于当所述第二移动单元将所述目标图标沿所 述方向移动至离所述终点位置最远的, 并且未被显示图标占用的位置时, 控制所述目标图标以及所述方向上的其它图标发生晃动; 其中, 每个所述 方向上的其它图标的晃动频率和 /或晃动幅度与每个所述方向上的其它图标 离所述目标图标发生晃动前所处的位置的距离成反比。
上述技术方案中, 接收拖动目标图标的操作指令, 从所述操作指令中 获取拖动目标图标的停止位置信息, 所述操作指令中包括所述停止位置信 息, 根据所述停止位置信息控制所述目标图标从初始位置移动到终点位置; 接收释放所述目标图标的操作指令, 控制所述目标图标从所述终点位置沿 从所述终点位置指向所述初始位置的方向移动; 当所述目标图标沿所述方 向移动至离所述终点位置最远的, 并且未被显示图标占用的位置时, 控制 所述目标图标以及所述方向上的其它图标发生晃动。 这样就可以产生一个 目标图标与所述方向上的其它图标发生碰撞的效果, 以实现在拖动图标的 过程中, 可以实现拟物化展现图标的效果。
附图说明 为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对 实施例或现有技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是本发明的一些实施例, 对于本领域普通技术人员 来讲, 在不付出创造性劳动的前提下, 还可以根据这些附图获得其他的附 图。
图 1是本发明实施例提供的一种控制图标的方法的流程示意图; 图 2是本发明实施例提供的另一种控制图标的方法的流程示意图; 图 3是本发明实施例提供一种移动图标的示意图;
图 4是本发明实施例提供另一种移动图标的示意图;
图 5是本发明实施例提供另一种移动图标的示意图;
图 6是本发明实施例提供的一种控制图标的设备的结构示意图; 图 7是本发明实施例提供的另一种控制图标的设备的结构示意图; 图 8为本发明实施例提供的计算机***的结构示意图。
具体实施方式 下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进 行清楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没 有作出创造性劳动前提下所获得的所有其他实施例, 都属于本发明保护的 范围。
图 1 是本发明实施例提供的一种控制图标的方法的流程示意图, 应当 理解的是, 本实施例中的图标为用于表示应用程序的图标, 包括但不限于 此, 如图 1所示, 包括:
101、 接收拖动目标图标的操作指令, 从所述操作指令中获取拖动目标 图标的停止位置信息, 所述操作指令中包括所述停止位置信息, 根据所述 停止位置信息控制所述目标图标从初始位置移动到终点位置;
102、 接收释放所述目标图标的操作指令, 控制所述目标图标从所述终 点位置沿从所述终点位置指向所述初始位置的方向移动; 103、 当所述目标图标沿所述方向移动至离所述终点位置最远的, 并且 未被显示图标占用的位置时, 控制所述目标图标以及所述方向上的其它图 标发生晃动。
需要说明的, 所述方法具体可以应用于电脑或手机等支持拖动图标的 设备。
上述技术方案中, 接收拖动目标图标的操作指令, 从所述操作指令中 获取拖动目标图标的停止位置信息, 所述操作指令中包括所述停止位置信 息, 根据所述停止位置信息控制所述目标图标从初始位置移动到终点位置; 接收释放所述目标图标的操作指令, 控制所述目标图标从所述终点位置沿 从所述终点位置指向所述初始位置的方向移动; 当所述目标图标沿所述方 向移动至离所述终点位置最远的, 并且未被显示图标占用的位置时, 控制 所述目标图标以及所述方向上的其它图标发生晃动。 这样就可以产生一个 目标图标与所述方向上的其它图标发生碰撞的效果, 以实现在拖动图标的 过程中, 可以实现拟物化展现图标的效果。 图 2是本发明实施例提供的另一种控制图标的方法的流程示意图, 如 图 2所示, 包括:
201、 接收拖动目标图标的操作指令, 从所述操作指令中获取拖动目标 图标的停止位置信息, 所述操作指令中包括所述停止位置信息, 根据所述 停止位置信息控制所述目标图标从初始位置移动到终点位置。
可选的, 上述终点位置可以是停止位置信息, 当上述停止位置信息超 出实现本发明的设备的显示边界时, 终点位置可以是该设备的显示边界位 置。
可选的, 上述目标图标具体可以为电脑中任务栏显示的图标, 当然本 发明的目标图标包括但不限于电脑中任务栏显示的图标, 如手机界面中的 图标。
202、 接收释放所述目标图标的操作指令, 控制所述目标图标从所述终 点位置沿从所述终点位置指向所述初始位置的方向移动。
203、 当所述目标图标沿所述方向移动至离所述终点位置最远的, 并且 未被显示图标占用的位置时, 控制所述目标图标以及所述方向上的其它图 标发生晃动。
作为一种可选的实施方式, 上述晃动的晃动频率和 /或晃动幅度与所述 目标图标从所述终点位置沿从所述终点位置指向所述初始位置的方向移动 的速度成正比, 所述晃动的晃动频率和 /或晃动幅度与所述方向上图标的数 量成反比。
例如, 上述目标图标为电脑任务栏显示的图标, 且该任务栏显示有 3 个图标, 如图 3所示, 从左至右依次为图标 1、 图标 2和图标 3 , 当上述目 标图标为图标 1时, 步骤 201接收用户输入的操作信息, 控制图标 1移动 到上述终点位置, H没上述终点位置在该任务栏的右边, 在该拖动过程中, 由于图标 1被拖动, 图标 2和图标 3可以依次向左移动一个显示图标的位 置, 也就是说, 图标 2和图标 3分别被移动到原来图标 1和图标 2所处的 位置。 步骤 202控制图标 1从上述终点位置沿从所述终点位置指向所述初 始位置的方向移动, 也就是从右边至左边移动, 步骤 203 中所述目标图标 沿所述方向移动至离所述终点位置最远的, 并且未被显示图标占用的位置 也就是未执行步骤 201前图标 3所处的位置。 当步骤 202控制目标图标移 动到该位置时, 步骤 203 就控制目标图标以及所述方向上的其它图标发生 晃动。 就样就可以给用户一种图标 1撞上图标 3和图标 2的感觉, 当图标 1 撞上图标 3和图标 2时, 图标 1、 图标 2和图标 3都发生晃动。
可选的, 如图 4 所示, 当显示的图标中间存在未被显示图标占用的位 置, 如图 4所示的, 图 1和图 2中间的位置时, 步骤 101拖动图标 1后, 图标 2和图标 3分别移动至图标 1和上述未被显示图标占用的位置, 然后, 步骤 203再控制图标 1移动至图标 2原来的位置。 当然在本发明中, 步骤 101拖动图标 1后,图标 2和图标 3分别移动至图标 1和图标 2原来的位置 , 即, 上述未被显示图标占用的位置继续保留, 然后, 步骤 203再控制图标 1 移动至图标 3原来的位置.
可选的, 当上述速度越快, 或上述晃动的晃动频率和 /或晃动幅度就越 大; 当上述方向上图标的数量越多上述晃动的晃动频率和 /或晃动幅度就越 小。 需要说明的是, 当上述目标图标从终点位置沿上述方向移动时, 步骤
203就控制上述目标图标以及上述方向上的图标发生晃动,这样就可以给用 户一种类似多个物体相撞的效果。 如目标图标撞上所述方向上的其它图标, 目标图标和所述方向上的其它图标都发生晃动。
204、 控制所述目标图标以及所述方向上的其它图标停止晃动。
需要说明的是, 步骤 204具体可以是在步骤 203发生晃动结束后执行 的。 这样就可以给用户一种目标图标与所述方向上的其它图标发生碰撞, 并产生晃动, 再停止的效果。
作为一种可选的实施方式, 在步骤 201之后, 所述方法还可以包括: 监测得到所述目标图标从初始位置移动到终点位置的距离值; 可选的, 该实施方式中, 步骤 202具体可以包括:
接收释放所述目标图标的操作指令, 控制所述目标图标从所述终点位 置沿从所述终点位置指向所述初始位置的方向以速度 V移动;所述 V = KxL , 所述 L为所述初始位置与所述终点位置的距离值, 所述 K为预先设置的系 数。
该实施方式中, 当上述初始位置与终点位置之前的距离越远时, 上述 速度就越大, 从而导致上述晃动的晃动频率和 /或晃动幅度也就越大。
作为一种可选的实施方式, 步骤 203具体可以包括:
当所述目标图标沿所述方向移动至离所述终点位置最远的, 并且未被 显示图标占用的位置时, 控制所述目标图标以及所述方向上的其它图标在 所述目标图标的当前位置与所述终点位置的连线的方向上晃动, 所述晃动 的晃动频率和 /或晃动幅度与所述目标图标从所述终点位置沿从所述终点位 置指向所述初始位置的方向移动的速度成正比, 所述晃动的晃动频率和 /或 晃动幅度与所述方向上图标的数量成反比。
可选的, 上述晃动可以是往返晃动, 如上述连线的方向为水平的方向 时, 那么上述晃动可以在该水平方向上以图标的当前位置为原点进行左右 晃动, 如上述连线的方向为垂直的方向时, 那么上述晃动可以在该垂直方 向上以图标的当前位置为原点进行上下晃动。
具体如图 5所示, 上述目标图标为图标 3 , 上述方向上的图标包括图标 1和图标 2, 步骤 201控制图标 3移动到终点位置 (图 3中的位置 B ), 步 骤 202控制图标 3沿所述方向移动, 步骤 203当所述目标图标沿所述方向 移动至离所述终点位置最远的,并且未被显示图标占用的位置(图中位置 A ) 时, 控制图标 1、 图标 2和图标 3发生晃动(如图 3第四行所示), 步骤 204 控制图标 1、 图标 2和图标 3返回发生晃动之前所处的位置(如图 3第五行 所示 )。
作为一种可选的实施方式, 步骤 203具体可以包括:
当所述目标图标沿所述方向移动至离所述终点位置最远的, 并且未被 显示图标占用的位置时, 控制所述目标图标以及所述方向上的其它图标发 生晃动; 其中, 每个所述方向上的其它图标的晃动频率和 /或晃动幅度与每 个所述方向上的其它图标离所述目标图标发生第一位移前所处的位置的距 离成反比。
该实施方式中, 可以实现不同位置的图标发生的晃动的晃动频率和 /或 晃动幅度不同, 如图中, 图标 2离图标 3发生第一位移前所处的位置的距 离小于图标 1 离图标 3发生晃动前所处的位置的距离, 那么图标 2发生的 晃动的晃动频率和 /或晃动幅度就大于图标 2发生的晃动的晃动频率和 /或晃 动幅度。
作为一种可选的实施方式, 上述晃动具体可以是先向所述方向晃动, 再向所述方向的反方向晃动。 还可以是重复晃动, 如所述方向是指向左的 方向, 所述方向的反方向就指向右的方向, 那么上述晃动就可以是左右来 回晃动, 当然, 还可以每晃动一次, 晃动的晃动频率和 /或晃动幅度就相应 减小。
需要说明的是, 当上述目标图标为电脑任务栏显示的图标时, 所述方 向上的其它图标仅指示所述方向上任务栏中的图标, 而不包含所述方向上 的其它图标(例如: 开始图标)。
上述技术方案中, 上面实施例的基础上, 增加了控制所述目标图标以 及所述方向上的其它图标停止晃动的步骤, 这样就可以给用户一种目标图 标与所述方向上的其它图标发生碰撞, 并产生晃动, 再停止的效果。 同时, 还可以实现在拖动图标的过程中, 可以实现拟物化展现图标的效果。 下面为本发明装置实施例, 本发明装置实施例用于执行本发明方法实 施例一至二实现的方法, 为了便于说明, 仅示出了与本发明实施例相关的 部分, 具体技术细节未揭示的, 请参照本发明实施例一和实施例二。 图 6是本发明实施例提供的一种控制图标的设备的结构示意图,如图 6 所示, 包括: 第一移动单元 31、 第二移动单元 32和晃动单元 43 , 其中: 第一移动单元 31 , 用于接收拖动目标图标的操作指令, 从所述操作指 令中获取拖动目标图标的停止位置信息, 所述操作指令中包括所述停止位 置信息, 根据所述停止位置信息控制所述目标图标从初始位置移动到终点 位置;
第二移动单元 32 , 用于接收释放所述目标图标的操作指令, 控制所述 目标图标从所述终点位置沿从所述终点位置指向所述初始位置的方向移 动;
晃动单元 33 , 与第二移动单元 32连接, 用于当第二移动单元 32控制 所述目标图标沿所述方向移动至离所述终点位置最远的, 并且未被显示图 标占用的位置时, 控制所述目标图标以及所述方向上的其它图标发生晃动。
需要说明的, 所述设备具体可以是电脑或手机等支持拖动图标的设备。 上述技术方案中, 接收拖动目标图标的操作指令, 从所述操作指令中 获取拖动目标图标的停止位置信息, 所述操作指令中包括所述停止位置信 息, 根据所述停止位置信息控制所述目标图标从初始位置移动到终点位置; 接收释放所述目标图标的操作指令, 控制所述目标图标从所述终点位置沿 从所述终点位置指向所述初始位置的方向移动; 当所述目标图标沿所述方 向移动至离所述终点位置最远的, 并且未被显示图标占用的位置时, 控制 所述目标图标以及所述方向上的其它图标发生晃动。 这样就可以产生一个 目标图标与所述方向上的其它图标发生碰撞的效果, 以实现在拖动图标的 过程中, 可以实现拟物化展现图标的效果。 图 7是本发明实施例提供的另一种控制图标的设备的结构示意图, 如 图 7所示, 包括: 第一移动单元 41、 第二移动单元 42、 晃动单元 43和停 止单元 44, 其中:
第一移动单元 41 , 用于接收拖动目标图标的操作指令, 从所述操作指 令中获取拖动目标图标的停止位置信息, 所述操作指令中包括所述停止位 置信息, 根据所述停止位置信息控制所述目标图标从初始位置移动到终点 位置。
可选的, 上述目标图标具体可以为电脑中任务栏显示的图标, 当然本 发明的目标图标包括但不限于电脑中任务栏显示的图标, 如手机界面中的 图标。
第二移动单元 42 , 用于接收释放所述目标图标的操作指令, 控制所述 目标图标从所述终点位置沿从所述终点位置指向所述初始位置的方向移 动。
晃动单元 43 , 与第二移动单元 41连接, 用于当第二移动单元 42控制 所述目标图标沿所述方向移动至离所述终点位置最远的, 并且未被显示图 标占用的位置时, 控制所述目标图标以及所述方向上的其它图标发生晃动。
作为一种可选的实施方式, 所述晃动的晃动频率和 /或晃动幅度与所述 目标图标从所述终点位置沿从所述终点位置指向所述初始位置的方向移动 的速度成正比, 所述晃动的晃动频率和 /或晃动幅度与所述方向上图标的数 量成反比。
例如, 上述目标图标为电脑任务栏显示的图标, 且该任务栏显示有 3 个图标, 如图 3所示, 从左至右依次为图标 1、 图标 2和图标 3 , 当上述目 标图标为图标 1时, 第一移动单元 41接收用户输入的操作信息, 控制图标 1移动到上述终点位置, H没上述终点位置在该任务栏的右边, 在该拖动过 程中, 由于图标 1被拖动, 图标 2和图标 3可以依次向左移动一个显示图 标的位置, 也就是说, 图标 2和图标 3分别被移动到原来图标 1和图标 2 所处的位置。 第二移动单元 42控制图标 1从上述终点位置沿从所述终点位 置指向所述初始位置的方向移动, 也就是从右边至左边移动, 所述目标图 标沿所述方向移动至离所述终点位置最远的, 并且未被显示图标占用的位 置也就是第一移动单元 41未执行上述移动前图标 3所处的位置。 当第二移 动单元 42控制目标图标移动到该位置时, 晃动单元 43就控制目标图标以 及所述方向上的其它图标发生晃动。 就样就可以给用户一种图标 1 撞上图 标 3和图标 2的感觉, 当图标 1撞上图标 3和图标 2时, 图标 1、 图标 2和 图标 3都发生晃动。
可选的, 当上述速度越快, 或上述晃动的晃动频率和 /或晃动幅度就越 大; 当上述方向上图标的数量越多上述晃动的晃动频率和 /或晃动幅度就越 小。
需要说明的是, 当上述目标图标从终点位置沿上述方向移动时, 晃动 单元 43就控制上述目标图标以及上述方向上的图标发生晃动, 这样就可以 给用户一种类似多个物体相撞的效果。 如目标图标撞上所述方向上的其它 图标, 目标图标和所述方向上的其它图标都发生晃动。
停止单元 44 ,用于当晃动单元 43控制所述目标图标以及所述方向上的 其它图标发生晃动后, 控制所述目标图标以及所述方向上的其它图标停止 晃动。
作为一种可选的实施方式, 所述设备还可以包括:
监测单元(附图中未画出), 用于监测得到所述目标图标从初始位置移 动到终点位置的距离值;
第二移动单元 42具体还可以用于接收释放所述目标图标的操作指令, 控制所述目标图标从所述终点位置沿从所述终点位置指向所述初始位置的 方向以速度 V移动; 所述 = fxJ ,所述 L为所述初始位置与所述终点位置 的距离值, 所述 K为预先设置的系数。
该实施方式中, 当上述初始位置与终点位置之前的距离越远时, 上述 速度就越大, 从而导致上述晃动的晃动频率和 /或晃动幅度也就越大。
作为一种可选的实施方式, 晃动单元 43具体还可以用于当所述第二移 动单元 42控制所述目标图标沿所述方向移动至离所述终点位置最远的, 并 且未被显示图标占用的位置时, 控制所述目标图标以及所述方向上的其它 图标在所述目标图标的当前位置与所述终点位置的连线的方向上晃动, 所 述晃动的晃动频率和 /或晃动幅度与所述目标图标从所述终点位置沿从所述 终点位置指向所述初始位置的方向移动的速度成正比, 所述晃动的晃动频 率和 /或晃动幅度与所述方向上图标的数量成反比。
具体如图 5所示, 上述目标图标为图标 3 , 上述方向上的图标包括图标 1和图标 2,第一移动单元 41控制图标 3移动到终点位置(图 3中的位置 B ), 第二移动单元 42控制图标 3沿所述方法移动, 当所述目标图标沿所述方向 移动至离所述终点位置最远的,并且未被显示图标占用的位置(图中位置 A ) 时, 晃动单元 43控制图标 1、 图标 2和图标 3发生晃动 (如图 3第四行所 示),停止单元 44控制图标 1、 图标 2和图标 3返回发生晃动之前所处的位 置 (如图 3第五行所示)。
作为一种可选的实施方式, 晃动单元 43具体还可以用于当所述第二移 动单元 42控制所述目标图标沿所述方向移动至离所述终点位置最远的, 并 且未被显示图标占用的位置时, 控制所述目标图标以及所述方向上的其它 图标发生晃动; 其中, 每个所述方向上的其它图标的晃动频率和 /或晃动幅 度与每个所述方向上的其它图标离所述目标图标发生第一位移前所处的位 置的距离成反比。
该实施方式中, 可以实现不同位置的图标发生的晃动的晃动频率和 /或 晃动幅度不同, 如图中, 图标 2离图标 3发生第一位移前所处的位置的距 离小于图标 1 离图标 3发生晃动前所处的位置的距离, 那么图标 2发生的 晃动的晃动频率和 /或晃动幅度就大于图标 2发生的晃动的晃动频率和 /或晃 动幅度。
作为一种可选的实施方式, 上述晃动具体可以是先向所述方向晃动, 再向所述方向的反方向晃动。 还可以是重复晃动, 如所述方向是指向左的 方向, 所述方向的反方向就指向右的方向, 那么上述晃动就可以是左右来 回晃动, 当然, 还可以每晃动一次, 晃动的晃动频率和 /或晃动幅度就相应 减小。
需要说明的是, 当上述目标图标为电脑任务栏显示的图标时, 所述方 向上的其它图标仅指示所述方向上任务栏中的图标, 而不包含所述方向上 的其它图标(例如: 开始图标)。
上述技术方案中, 上面实施例的基础上, 实现了停止单元用于控制所 述目标图标以及所述方向上的其它图标停止晃动, 这样就可以给用户一种 目标图标与所述方向上的其它图标发生碰撞, 并产生晃动, 再停止的效果。 晃动的晃动频率和 /或晃动幅度。 同时, 还可以实现在拖动图标的过程中, 可以实现拟物化展现图标的效果。 图 8为本发明实施例提供的计算机***的结构示意图, 如图 8所示。 本实施例的计算机***可以包括总线 51、 与总线 51相连的处理器 52; 与 总线 51相连的存储器 53; 其中, 处理器 52通过所述总线, 调用存储器 53 中存储的代码, 以用于: 接收拖动目标图标的操作指令, 控制所述目标图 标从初始位置移动到终点位置; 接收释放所述目标图标的操作指令, 控制 所述目标图标从所述终点位置沿从所述终点位置指向所述初始位置的方向 移动; 当所述目标图标沿所述方向移动至离所述终点位置最远的, 并且未 被显示图标占用的位置时, 控制所述目标图标以及所述方向上的其它显示 图标发生晃动。
在本发明的另一个实施例中, 所述计算机***还包括与总线 51相连的 接口 54, 接口 54连接有显示器 55;
显示器 55用于显示所述目标图标从初始位置移动到终点位置的屏幕状 态、 所述目标图标从所述终点位置沿从所述终点位置指向所述初始位置的 方向移动的屏幕状态, 或所述目标图标以及所述方向上的其它显示图标发 生晃动的屏幕状态 /效果。 在本发明的另一个实施例中, 处理器 52在执行控制所述目标图标以及 所述方向上的其它图标发生晃动之后, 还用于:
控制所述目标图标以及所述方向上的其它图标停止晃动。
本实施例中, 具体可以通过显示器 55显示上述控制所述目标图标以及 所述方向上的其它图标停止晃动的屏幕状态 /效果。 这样就可以给用户一种 目标图标与所述方向上的其它图标发生碰撞, 并产生晃动, 再停止的效果。
在本发明的另一个实施例中, 处理器 52在执行接收拖动目标图标的操 作指令之后, 还用于: 监测得到所述目标图标从初始位置移动到终点位置 的距离值;
处理器 52执行的执行的控制所述目标图标从所述终点位置沿从所述终 点位置指向所述初始位置的方向移动具体可以包括:
控制所述目标图标从所述终点位置沿从所述终点位置指向所述初始位 置的方向以速度 V移动; 所述 = fxJ ,所述 L为所述初始位置与所述终点 位置的距离值, 所述 K为预先设置的系数。
该实施例中, 当上述初始位置与终点位置之前的距离越远时, 上述速 度就越大, 从而导致上述晃动的晃动频率和 /或晃动幅度也就越大。
在本发明的另一个实施例中, 处理器 52执行的当所述目标图标沿所述 方向移动至离所述终点位置最远的, 并且未被显示图标占用的位置时, 控 制所述目标图标以及所述方向上的其它图标发生晃动具体可以包括:
当所述目标图标沿所述方向移动至离所述终点位置最远的, 并且未被 显示图标占用的位置时, 控制所述目标图标以及所述方向上的其它图标在 所述目标图标的当前位置与所述终点位置的连线的方向上晃动, 所述晃动 的晃动频率和 /或晃动幅度与所述目标图标从所述终点位置沿从所述终点位 置指向所述初始位置的方向移动的速度成正比, 所述晃动的晃动频率和 /或 晃动幅度与所述方向上图标的数量成反比。
在本发明的另一个实施例中, 处理器 52执行的当所述目标图标沿所述 方向移动至离所述终点位置最远的, 并且未被显示图标占用的位置时, 控 制所述目标图标以及所述方向上的其它图标发生晃动具体可以包括:
当所述目标图标沿所述方向移动至离所述终点位置最远的, 并且未被 显示图标占用的位置时, 控制所述目标图标以及所述方向上的其它图标发 生晃动; 其中, 每个所述方向上的其它图标的晃动频率和 /或晃动幅度与每 个所述方向上的其它图标离所述目标图标发生第一位移前所处的位置的距 离成反比。
该实施例中, 可以实现不同位置的图标发生的晃动的晃动频率和 /或晃 动幅度不同, 如图 5中, 图标 2离图标 3发生第一位移前所处的位置的距 离小于图标 1 离图标 3发生晃动前所处的位置的距离, 那么图标 2发生的 晃动的晃动频率和 /或晃动幅度就大于图标 2发生的晃动的晃动频率和 /或晃 动幅度。
在本发明的另一个实施例中, 上述晃动具体可以是先向所述方向晃动, 再向所述方向的反方向晃动。 还可以是重复晃动, 如所述方向是指向左的 方向, 所述方向的反方向就指向右的方向, 那么上述晃动就可以是左右来 回晃动, 当然, 还可以每晃动一次, 晃动的晃动频率和 /或晃动幅度就相应 减小。
需要说明的是, 当上述目标图标为电脑任务栏显示的图标时, 所述方 向上的其它图标仅指示所述方向上任务栏中的图标, 而不包含所述方向上 的其它图标(例如: 开始图标)。
上述技术方案中, 接收拖动目标图标的操作指令, 根据所述停止位置 信息控制所述目标图标从初始位置移动到终点位置; 接收释放所述目标图 标的操作指令, 控制所述目标图标从所述终点位置沿从所述终点位置指向 所述初始位置的方向移动; 当所述目标图标沿所述方向移动至离所述终点 位置最远的, 并且未被显示图标占用的位置时, 控制所述目标图标以及所 述方向上的其它图标发生晃动。 这样就可以产生一个目标图标与所述方向 上的其它图标发生碰撞的效果, 以实现在拖动图标的过程中, 可以实现拟 物化展现图标的效果。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流 程, 是可以通过计算机程序来指令相关的硬件来完成, 所述的程序可存储 于一计算机可读取存储介质中, 该程序在执行时, 可包括如上述各方法的 实施例的流程。 其中, 所述的存储介质可为磁碟、 光盘、 只读存储记忆体
( Read-Only Memory, ROM )或随机存取存 4诸器 ( Random Access Memory, 简称 RAM )等。
以上所揭露的仅为本发明较佳实施例而已, 当然不能以此来限定本发 明之权利范围, 因此依本发明权利要求所作的等同变化, 仍属本发明所涵 盖的范围。

Claims

权利要求
1、 一种控制图标的方法, 其特征在于, 包括:
接收拖动目标图标的操作指令, 从所述操作指令中获取拖动目标图标 的停止位置信息, 所述操作指令中包括所述停止位置信息, 根据所述停止 位置信息控制所述目标图标从初始位置移动到终点位置; 接收释放所述目 标图标的操作指令, 控制所述目标图标从所述终点位置沿从所述终点位置 指向所述初始位置的方向移动;
当所述目标图标沿所述方向移动至离所述终点位置最远的, 并且未被 显示图标占用的位置时, 控制所述目标图标以及所述方向上的其它显示图 标发生晃动。
2、 如权利要求 1所述的方法, 其特征在于, 所述接收拖动目标图标的 操作指令之后, 还包括: 监测得到所述目标图标从初始位置移动到终点位 置的距离值;
所述控制所述目标图标从所述终点位置沿从所述终点位置指向所述初 始位置的方向移动包括:
控制所述目标图标从所述终点位置沿从所述终点位置指向所述初始位 置的方向以速度 V移动; 所述 = fxJ ,所述 L为所述初始位置与所述终点 位置的距离值, 所述 K为预先设置的系数。
3、 如权利要求 2所述的方法, 其特征在于, 所述控制所述目标图标以 及所述方向上的其它图标发生晃动包括:
控制所述目标图标以及所述方向上的其它图标发生晃动, 所述晃动的 晃动频率和 /或晃动幅度与所述目标图标从所述终点位置沿从所述终点位置 指向所述初始位置的方向移动的速度成正比。
4、 如权利要求 1-3任一项所述的方法, 其特征在于, 所述控制所述目 标图标以及所述方向上的其它图标发生晃动包括:
控制所述目标图标以及所述方向上的其它图标发生晃动, 所述晃动的 晃动频率和 /或晃动幅度与所述方向上图标的数量成反比。
5、 如权利要求 1-4中任一项所述的方法, 其特征在于, 所述控制所述 目标图标以及所述方向上的其它图标发生晃动包括:
控制所述目标图标以及所述方向上的其它图标在所述目标图标的当前 位置与所述终点位置的连线的方向上晃动。
6、 如权利要求 1-5中任一项所述的方法, 其特征在于, 所述控制所述 目标图标以及所述方向上的其它图标发生晃动包括:
控制所述目标图标以及所述方向上的其它图标发生晃动; 其中, 每个 所述方向上的其它图标的晃动的晃动频率和 /或晃动幅度与每个所述方向上 的其它图标离所述目标图标发生晃动前所处的位置的距离成反比。
7、 如权利要求 1-6中任一项所述的方法, 其特征在于, 所述控制所述 目标图标以及所述方向上的其它图标发生晃动之后, 所述方法还包括: 控制所述目标图标以及所述方向上的其它图标停止晃动。
8、 一种控制图标的设备, 其特征在于, 包括: 第一移动单元、 第二移 动单元和晃动单元, 其中:
第一移动单元, 用于接收拖动目标图标的操作指令, 从所述操作指令 中获取拖动目标图标的停止位置信息, 所述操作指令中包括所述停止位置 信息, 根据所述停止位置信息控制所述目标图标从初始位置移动到终点位 置;
第二移动单元, 用于接收释放所述目标图标的操作指令, 控制所述目 标图标从所述终点位置沿从所述终点位置指向所述初始位置的方向移动; 晃动单元, 与第二移动单元连接, 用于当所述第二移动单元控制所述 目标图标沿所述方向移动至离所述终点位置最远的, 并且未被显示图标占 用的位置时, 控制所述目标图标以及所述方向上的其它图标发生晃动。
9、 如权利要求 8所述的设备, 其特征在于, 所述设备还包括: 监测单元, 用于监测得到所述目标图标从初始位置移动到终点位置的 距离值;
所述第二移动单元具体用于接收释放所述目标图标的操作指令, 控制 所述目标图标从所述终点位置沿从所述终点位置指向所述初始位置的方向 以速度 V移动; 所述 = f xJ ,所述 L为所述初始位置与所述终点位置的距 离值, 所述 K为预先设置的系数。
10、 如权利要求 9所述的设备, 其特征在于, 所述晃动单元具体用于 当所述目标图标沿所述方向移动至离所述终点位置最远的, 并且未被显示 图标占用的位置时, 控制所述目标图标以及所述方向上的其它图标发生晃 动, 所述晃动的晃动频率和 /或晃动幅度与所述目标图标从所述终点位置沿 从所述终点位置指向所述初始位置的方向移动的速度成正比。
11、 如权利要求 8-10中任一项所述的设备, 其特征在于, 所述晃动单 元具体用于当所述目标图标沿所述方向移动至离所述终点位置最远的, 并 且未被显示图标占用的位置时, 控制所述目标图标以及所述方向上的其它 图标发生晃动, 所述晃动的晃动频率和 /或晃动幅度与所述方向上图标的数 量成反比。
12、 如权利要求 8-11中任一项所述的设备, 其特征在于, 所述晃动单 元具体用于当所述第二移动单元将所述目标图标沿所述方向移动至离所述 终点位置最远的, 并且未被显示图标占用的位置时, 控制所述目标图标以 及所述方向上的其它图标在所述目标图标的当前位置与所述终点位置的连 线的方向上晃动。
13、 如权利要求 8-12中任一项所述的设备, 其特征在于, 所述晃动单 元具体用于当所述第二移动单元将所述目标图标沿所述方向移动至离所述 终点位置最远的, 并且未被显示图标占用的位置时, 控制所述目标图标以 及所述方向上的其它图标发生晃动; 其中, 每个所述方向上的其它图标的 晃动频率和 /或晃动幅度与每个所述方向上的其它图标离所述目标图标发生 晃动前所处的位置的距离成反比。
14、 如权利要求 8-13中任一项所述的设备, 其特征在于, 所述设备还 包括:
停止单元, 用于当所述晃动单元控制所述目标图标以及所述方向上的 其它图标发生晃动后, 控制所述目标图标以及所述方向上的其它图标停止 晃动。
PCT/CN2013/080590 2012-12-05 2013-08-01 一种控制图标的方法及设备 WO2014086162A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US14/145,339 US20140157167A1 (en) 2012-12-05 2013-12-31 Method and Device for Controlling Icon

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210514545.5A CN103853445B (zh) 2012-12-05 2012-12-05 一种控制图标的方法及设备
CN201210514545.5 2012-12-05

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US14/145,339 Continuation US20140157167A1 (en) 2012-12-05 2013-12-31 Method and Device for Controlling Icon

Publications (1)

Publication Number Publication Date
WO2014086162A1 true WO2014086162A1 (zh) 2014-06-12

Family

ID=50861175

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/080590 WO2014086162A1 (zh) 2012-12-05 2013-08-01 一种控制图标的方法及设备

Country Status (2)

Country Link
CN (1) CN103853445B (zh)
WO (1) WO2014086162A1 (zh)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104216636A (zh) * 2014-09-12 2014-12-17 四川长虹电器股份有限公司 实现触摸屏幕可拖动弹性界面的方法
CN104267895B (zh) * 2014-09-12 2018-08-14 上海闻泰电子科技有限公司 通过方向感应装置增强设备操作界面效果的方法
CN105721685A (zh) * 2016-01-22 2016-06-29 庞迪 一种基于智能手环手势的图标迁移实现方法及实现***
CN105721684A (zh) * 2016-01-22 2016-06-29 庞迪 一种基于摇晃次数的图标迁移实现方法及实现***
CN105721682A (zh) * 2016-01-22 2016-06-29 庞迪 一种基于智能手环摇晃次数的图标迁移实现方法及实现***
CN116048361B (zh) * 2022-06-24 2024-04-12 荣耀终端有限公司 交互方法、可读存储介质和电子设备

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101226443A (zh) * 2007-01-20 2008-07-23 Lg电子株式会社 具有接触式输入设备的移动电子设备及使用其的显示方法
CN102495708A (zh) * 2011-12-16 2012-06-13 上海华勤通讯技术有限公司 移动终端及其待机界面的操作方法
CN102736826A (zh) * 2011-04-08 2012-10-17 深圳富泰宏精密工业有限公司 编排行动装置用户界面的方法和***
CN102736849A (zh) * 2012-04-20 2012-10-17 中兴通讯股份有限公司 菜单布局处理方法及装置

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001154766A (ja) * 1999-11-25 2001-06-08 Kenwood Corp 手探り操作装置
KR100956826B1 (ko) * 2008-03-10 2010-05-11 엘지전자 주식회사 단말기 및 그 제어 방법
CN102033710B (zh) * 2010-04-07 2015-03-11 苹果公司 用于管理文件夹的方法和相关设备
JP5779923B2 (ja) * 2011-03-17 2015-09-16 ソニー株式会社 情報処理装置、情報処理方法およびコンピュータプログラム
CN102163129A (zh) * 2011-04-26 2011-08-24 宇龙计算机通信科技(深圳)有限公司 一种实现图标变形的方法及装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101226443A (zh) * 2007-01-20 2008-07-23 Lg电子株式会社 具有接触式输入设备的移动电子设备及使用其的显示方法
CN102736826A (zh) * 2011-04-08 2012-10-17 深圳富泰宏精密工业有限公司 编排行动装置用户界面的方法和***
CN102495708A (zh) * 2011-12-16 2012-06-13 上海华勤通讯技术有限公司 移动终端及其待机界面的操作方法
CN102736849A (zh) * 2012-04-20 2012-10-17 中兴通讯股份有限公司 菜单布局处理方法及装置

Also Published As

Publication number Publication date
CN103853445B (zh) 2017-05-24
CN103853445A (zh) 2014-06-11

Similar Documents

Publication Publication Date Title
WO2014086162A1 (zh) 一种控制图标的方法及设备
US20140157167A1 (en) Method and Device for Controlling Icon
US10366602B2 (en) Interactive multi-touch remote control
US10276131B2 (en) Systems and methods for remote mouse pointer management
KR101809049B1 (ko) 디스플레이 장치 및 이의 ui 제공 방법
US10437442B2 (en) Method, apparatus, and terminal for processing notification information
US9912724B2 (en) Moving objects of a remote desktop in unstable network environments
EP3028133B1 (en) Multi-monitor full screen mode in a windowing environment
US10318135B2 (en) Method for adjusting window display position, and terminal
WO2015025345A1 (ja) 情報表示装置、情報表示方法および情報表示プログラム
TW200939105A (en) Arranging display areas utilizing enhanced window states
JP2013127794A5 (zh)
WO2014019118A1 (zh) 一种对终端进行解锁的方法及装置
WO2013004130A1 (zh) 停靠栏的实现方法、装置和***
EP2979477A1 (en) Method to unlock a screen using a touch input
US20130346915A1 (en) Wrap-around navigation
KR20200076588A (ko) 헤드 마운트 장치 입력을 위한 시스템 및 방법
JP2016115337A5 (zh)
CN112370780A (zh) 虚拟控件的显示方法和装置、存储介质及电子设备
WO2016141597A1 (zh) 一种触控方法、装置、终端及终端上的图形用户界面
WO2015131574A1 (zh) 一种终端的页面移动方法、装置及终端
CN112947805A (zh) 一种图标排序方法及装置
JP2015089485A (ja) ゲームを提供するサーバ及び方法
JP5665464B2 (ja) ウィンドウオープン方法及び情報処理装置
US20120314020A1 (en) Move-it: monitoring, operating, visualizing, editing integration toolkit for reconfigurable physical computing

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 13860965

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 13860965

Country of ref document: EP

Kind code of ref document: A1