Resolving document object collisions
First Claim
Patent Images
1. A computer-implemented method for resolving collisions between document objects on an electronic document page, the method comprising:
- identifying the occurrence of a collision of a first document object and a second document object;
identifying, in response to the identified collision occurrence, a collision region comprising an overlapping area between the first document object and the second document object, the collision region having a first distance comprising a maximum length of the collision region in a side-to-side direction relative to the electronic document page and the collision region having a second distance comprising a maximum length of the collision region in a top-to-bottom direction relative to the electronic document page;
determining the shortest distance to move the second document object to resolve the collision wherein determining the shortest distance comprises;
determining the value of the first distance between the first document object and the second document object in the side-to-side direction relative to the electronic document page,determining the value of the second distance between the first document object and the second document object in the top-to-bottom direction relative to the electronic document page,setting a direction of the shortest distance to side-to-side if the first distance is less than the second distance, andsetting the direction of the shortest distance to top-to-bottom if the first distance is greater than or equal to the second distance;
moving the second document object in the direction of the shortest distance;
recording the original location of the document object to be moved; and
returning the document object to its original location if the document layout is further modified to allow the document object to return to its original location without resulting in a collision.
2 Assignments
0 Petitions
Accused Products
Abstract
Collisions between document objects on a document page are resolved. A collision is identified and a two-dimension resolution of the collision is provided by moving the object the shortest distance from a pre-collision location that would avoid the collision. The process calculates the shortest distance to move the object. The invention also may establish logic that designates some objects as “not able to collide” and the process will not move those objects to resolve a collision.
95 Citations
20 Claims
-
1. A computer-implemented method for resolving collisions between document objects on an electronic document page, the method comprising:
-
identifying the occurrence of a collision of a first document object and a second document object; identifying, in response to the identified collision occurrence, a collision region comprising an overlapping area between the first document object and the second document object, the collision region having a first distance comprising a maximum length of the collision region in a side-to-side direction relative to the electronic document page and the collision region having a second distance comprising a maximum length of the collision region in a top-to-bottom direction relative to the electronic document page; determining the shortest distance to move the second document object to resolve the collision wherein determining the shortest distance comprises; determining the value of the first distance between the first document object and the second document object in the side-to-side direction relative to the electronic document page, determining the value of the second distance between the first document object and the second document object in the top-to-bottom direction relative to the electronic document page, setting a direction of the shortest distance to side-to-side if the first distance is less than the second distance, and setting the direction of the shortest distance to top-to-bottom if the first distance is greater than or equal to the second distance; moving the second document object in the direction of the shortest distance; recording the original location of the document object to be moved; and returning the document object to its original location if the document layout is further modified to allow the document object to return to its original location without resulting in a collision. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17)
-
-
18. A system for resolving collisions between document objects on an electronic document page, the system comprising:
-
a memory storage; and a processing unit coupled to the memory storage, wherein the processing unit is operative to; identify the occurrence of a collision of a first document object and a second document object; determine that the second document object has not been designated as not able to collide; determine, in response to determining that the second document object has been designated as able to collide, the shortest distance to move the second document object to resolve the collision wherein the processing unit being operative to determine the shortest distance comprises the processing unit being operative to; determine a first distance between the first document object and the second document object in a side-to-side direction relative to the electronic document page, determine a second distance between the first document object and the second document object in a top-to-bottom direction relative to the electronic document page, set a direction of the shortest distance to side-to-side if the first distance is less than the second distance, and set the direction of the shortest distance to top-to-bottom if the first distance is greater than or equal to the second distance; move, in response to determining that the second document object has been designated as able to collide, the second document object in the direction of the shortest distance; record the original location of the document object to be moved; and return the document object to its original location if the document layout is further modified to allow the document object to return to its original location without resulting in a collision. - View Dependent Claims (19)
-
-
20. A computer-readable medium which stores a set of instructions which when executed performs a method for resolving collisions between document objects on an electronic document page, the method executed by the set of instructions comprising:
-
identifying the occurrence of a collision of a first document object and a second document object; determining that the second document object has been designated as able to collide; identifying, in response to the identified collision occurrence and in response to determining that the second document object has been designated as able to collide, a collision region comprising an overlapping area between the first document object and the second document object, the collision region having a first distance comprising a maximum length of the collision region in a side-to-side direction relative to the electronic document page and the collision region having a second distance comprising a maximum length of the collision region in a top-to-bottom direction relative to the electronic document page; determining, in response to determining that the second document object has been designated as able to collide, the shortest distance to move the second document object to resolve the collision wherein determining the shortest distance comprises; determining the value of the a first distance between the first document object and the second document object in the side-to-side direction relative to the electronic document page, determining the value of the a second distance between the first document object and the second document object in the top-to-bottom direction relative to the electronic document page, setting a direction of the shortest distance to side-to-side if the first distance is less than the second distance, and setting the direction of the shortest distance to top-to-bottom if the first distance is greater than or equal to the second distance; moving, in response to determining that the second document object has been designated as able to collide, the second document object in the direction of the shortest distance; recording the original location of the document object to be moved; and returning the document object to its original location if the document layout is further modified to allow the document object to return to its original location without resulting in a collision.
-
Specification