Method and device for movement of image object
First Claim
1. A method for moving a graphic object, wherein the method comprises:
- A. determining a module X and a movement direction corresponding to a graphic object to be moved;
B. moving the module X by one unit in the movement direction, determining whether the module X overlaps partially with another module, and if not so, then taking the status after the movement as a movement result and ending the process;
otherwise, restoring the module X to its original location and determining and mirror-inverting a smallest mirrored area including the module X; and
C. determining whether the mirror-inverted module X can be further moved in the movement direction, and if not so, then indicating a movement failure and ending the process;
otherwise, moving the module X by one unit in the movement direction, determining whether the module X overlaps partially with another module, and if not so, taking the status after the movement as a movement result and ending the process;
otherwise, repeating the step C.
1 Assignment
0 Petitions
Accused Products
Abstract
Provided is a method for the movement of an image object. In the method: A. determining the direction of movement of an image object to be moved, and a module X corresponding to same; B. moving the module X along the direction of movement by one unit; determining whether or not an overlap exists between the module X and another module; if no overlap exists, making the post-movement state as a movement result, and terminating the process; if an overlap exists, restoring the module X to the original position; determining a minimum mirror area comprising the module X; flipping the minimum mirror area; C. determining whether or not the module X can continue to move along the direction of movement; if not, then the movement has failed, terminating the process; if yes, then moving the module X upwards by one unit from the direction of movement; determining whether or not an overlap exists between module X and another module; if no overlap exists, making the post-movement state as the movement result, and terminating the process; if an overlap exists, repeating step C. Also provided is a device for the movement of the image object. The user experience is enhanced by using the method and the device.
0 Citations
6 Claims
-
1. A method for moving a graphic object, wherein the method comprises:
-
A. determining a module X and a movement direction corresponding to a graphic object to be moved; B. moving the module X by one unit in the movement direction, determining whether the module X overlaps partially with another module, and if not so, then taking the status after the movement as a movement result and ending the process;
otherwise, restoring the module X to its original location and determining and mirror-inverting a smallest mirrored area including the module X; andC. determining whether the mirror-inverted module X can be further moved in the movement direction, and if not so, then indicating a movement failure and ending the process;
otherwise, moving the module X by one unit in the movement direction, determining whether the module X overlaps partially with another module, and if not so, taking the status after the movement as a movement result and ending the process;
otherwise, repeating the step C. - View Dependent Claims (2, 3, 4)
-
-
5. An apparatus for moving a graphic object, wherein the apparatus comprises:
-
a memory has program codes stored therein; and a processor, configured to execute the program codes to implement;
determining a module X and a movement direction corresponding to a graphic object to be moved;moving the module X by one unit in the movement direction, determining whether the module X overlaps partially with another module, and if not so, taking the status after the movement as a movement result and ending the process;
otherwise, restoring-the module X to its original location and determining and mirror-invert a smallest mirrored area including the module X; anddetermining whether the mirror-inverted module X can be further moved in the movement direction, and if not so, indicating a movement failure and ending the process;
otherwise, moving the module X by one unit in the movement direction, determining whether the module X overlaps partially with another module, and if not so, taking the status after the movement as a movement result and ending the process;
otherwise, performing again the function of the second moving unit. - View Dependent Claims (6)
-
Specification