Schema-driven object alignment
First Claim
1. A computer-implemented method for enabling a schema-driven object alignment on a canvas, wherein the canvas displays a chart comprising a plurality of items, wherein the chart comprises a model analyzing a real-world scenario and the plurality of items comprise real-world entities associated with the model, wherein the canvas comprises a plurality of objects, and the plurality of objects represent the plurality of items on the chart, the method comprising:
- defining, by one or more schemas, an associated item type for each item associated with the plurality of items, wherein the one or more schemas further comprise definitions that define at least one type of link formed between the plurality of items in the chart based on the defined associated type of item for each item, wherein the definitions comprise text that is displayed on the canvas and that describes the at least one type of link formed;
based on the definitions and a compatibility between each item defined by the associated item type, specifying whether the at least one type of link is capable of being validly formed between at least two items associated with the plurality of items;
receiving an indication of a selected object on the canvas, wherein the selected object represents a first item associated with the plurality of items on the chart;
based on the definitions and the defined associated item type for the selected object, identifying, from amongst the plurality of objects, a closest compatible object which is displayed closest to a position of the selected object on the canvas and for which at least one link associated with the at least one type of link is capable of being formed between a second item represented by the closest compatible object and the first item represented by the selected object;
based on a predetermined distance, maintaining the second item as the closest compatible object to the selected object as the selected object is dragged across the plurality of objects on the canvas;
in response to the selected object being dragged out of the predetermined distance from the second item, and based on an elapsed time that the selected object is dragged out of the predetermined distance from the second item, identifying a third item as the closest compatible object;
defining an alignment guide for the closest compatible object; and
in response to a movement of the selected object;
determining whether the selected object has been moved within a determined range of the alignment guide;
in response to the determination that the selected object has been moved within the determined range of the alignment guide, modifying a location at which the selected object is displayed on the canvas so that the selected object is aligned with the alignment guide; and
based on the associated item type and the definitions, forming the at least one type of link between the selected object and the closest compatible link, wherein forming the at least one type of link further comprises displaying, on the canvas, text between the selected object and the closest compatible link to describe the at least one type of link formed based on the real-world scenario.
1 Assignment
0 Petitions
Accused Products
Abstract
A method is provided for enabling a schema-driven object alignment on a canvas. The method may include receiving an indication of a selected object on the canvas, identifying a closest compatible object displayed closest to a position of the selected object on the canvas wherein a link associated is formed between an item represented by the closest compatible object and the item represented by the selected object. The method may further include defining an alignment guide for the closest compatible object. The method may also include, determining whether the selected object has been moved within a determined range of the alignment guide, and in response to the determination that the selected object has been moved within the determined range of the alignment guide, modifying a location at which the selected object is displayed on the canvas so that the selected object is aligned with the alignment guide.
-
Citations
18 Claims
-
1. A computer-implemented method for enabling a schema-driven object alignment on a canvas, wherein the canvas displays a chart comprising a plurality of items, wherein the chart comprises a model analyzing a real-world scenario and the plurality of items comprise real-world entities associated with the model, wherein the canvas comprises a plurality of objects, and the plurality of objects represent the plurality of items on the chart, the method comprising:
-
defining, by one or more schemas, an associated item type for each item associated with the plurality of items, wherein the one or more schemas further comprise definitions that define at least one type of link formed between the plurality of items in the chart based on the defined associated type of item for each item, wherein the definitions comprise text that is displayed on the canvas and that describes the at least one type of link formed; based on the definitions and a compatibility between each item defined by the associated item type, specifying whether the at least one type of link is capable of being validly formed between at least two items associated with the plurality of items; receiving an indication of a selected object on the canvas, wherein the selected object represents a first item associated with the plurality of items on the chart; based on the definitions and the defined associated item type for the selected object, identifying, from amongst the plurality of objects, a closest compatible object which is displayed closest to a position of the selected object on the canvas and for which at least one link associated with the at least one type of link is capable of being formed between a second item represented by the closest compatible object and the first item represented by the selected object; based on a predetermined distance, maintaining the second item as the closest compatible object to the selected object as the selected object is dragged across the plurality of objects on the canvas; in response to the selected object being dragged out of the predetermined distance from the second item, and based on an elapsed time that the selected object is dragged out of the predetermined distance from the second item, identifying a third item as the closest compatible object; defining an alignment guide for the closest compatible object; and in response to a movement of the selected object; determining whether the selected object has been moved within a determined range of the alignment guide; in response to the determination that the selected object has been moved within the determined range of the alignment guide, modifying a location at which the selected object is displayed on the canvas so that the selected object is aligned with the alignment guide; and based on the associated item type and the definitions, forming the at least one type of link between the selected object and the closest compatible link, wherein forming the at least one type of link further comprises displaying, on the canvas, text between the selected object and the closest compatible link to describe the at least one type of link formed based on the real-world scenario. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11)
-
-
12. A system for enabling a schema-driven object alignment on a canvas, wherein the canvas displays a chart comprising a plurality of items, wherein the canvas comprises a plurality of objects, and the plurality of objects represent the plurality of items on the chart, the system comprising:
-
a display for displaying a view of the canvas; a user input device for receiving an indication, from a user, of a selected object on the canvas; and a processor capable of performing a method comprising; defining, by one or more schemas, an associated item type for each item associated with the plurality of items, wherein the one or more schemas further comprise definitions that define at least one type of link formed between the plurality of items in the chart based on the defined associated type of item for each item, wherein the definitions comprise text that is displayed on the canvas and that describes the at least one type of link formed; based on the definitions and a compatibility between each item defined by the associated item type, specifying whether the at least one type of link is capable of being validly formed between at least two items associated with the plurality of items; receiving an indication of a selected object on the canvas, wherein the selected object represents a first item associated with the plurality of items on the chart; based on the definitions and the defined associated item type for the selected object, identifying, from amongst the plurality of objects, a closest compatible object which is displayed closest to a position of the selected object on the canvas and for which at least one link associated with the at least one type of link is capable of being formed between a second item represented by the closest compatible object and the first item represented by the selected object; based on a predetermined distance, maintaining the second item as the closest compatible object to the selected object as the selected object is dragged across the plurality of objects on the canvas; in response to the selected object being dragged out of the predetermined distance from the second item, and based on an elapsed time that the selected object is dragged out of the predetermined distance from the second item, identifying a third item as the closest compatible object; defining an alignment guide for the closest compatible object; and in response to a movement of the selected object; determining whether the selected object has been moved within a determined range of the alignment guide; in response to the determination that the selected object has been moved within the determined range of the alignment guide, modifying a location at which the selected object is displayed on the canvas so that the selected object is aligned with the alignment guide; and based on the associated item type and the definitions, forming the at least one type link between the selected object and the closest compatible, wherein forming the at least one type of link further comprises displaying, on the canvas, text between the selected object and the closest compatible link to describe the at least one type of link formed based on the real-world scenario. - View Dependent Claims (13, 14, 15, 16, 17)
-
-
18. A computer program product for enabling a schema-driven object alignment on a canvas, wherein the canvas displays a chart comprising a plurality of items, wherein the chart comprises a model analyzing a real-world scenario and the plurality of items comprise real-world entities associated with the model, wherein the canvas comprises a plurality of objects, and the plurality of objects represent the plurality of items on the chart, the computer program product comprising a computer readable storage medium having stored thereon:
-
program instructions to define, by one or more schemas, an associated item type for each item associated with the plurality of items, wherein the one or more schemas further comprise definitions that define at least one type of link formed between the plurality of items in the chart based on the defined associated type of item for each item, wherein the definitions comprise text that is displayed on the canvas and that describes the at least one type of link formed; based on the definitions and a compatibility between each item defined by the associated item type, program instructions to specify whether the at least one type of link is capable of being validly formed between at least two items associated with the plurality of items; program instructions to receive an indication of a selected object on the canvas wherein the selected object represents a first item associated with the plurality of items on the chart; based on the definitions and the defined associated item type for the selected object, program instructions to identify, from amongst the plurality of objects, a closest compatible object which is displayed closest to a position of the selected object on the canvas and for which at least one link associated with the at least one type of link is capable of being formed between a second item represented by the closest compatible object and the first item represented by the selected object; program instructions to, based on a predetermined distance, maintain the second item as the closest compatible object to the selected object as the selected object is dragged across the plurality of objects on the canvas; in response to the selected object being dragged out of the predetermined distance from the second item, and based on an elapsed time that the selected object is dragged out of the predetermined distance from the second item, program instructions to identify a third item as the closest compatible object; program instructions to define an alignment guide for the closest compatible object; in response to a movement of the selected object, program instructions to determine whether the selected object has been moved within a determined range of the alignment guide, and in response to the determination that the selected object has been moved within the determined range of the alignment guide, program instructions to modify a location at which the selected object is displayed on the canvas so that the selected object is aligned with the alignment guide; and based on the associated item type and the definitions, program instructions to form the at least one type link between the selected object and the closest compatible, wherein the program instructions to form the at least one type of link further comprises program instructions to display, on the canvas, text between the selected object and the closest compatible link to describe the at least one type of link formed based on the real-world scenario.
-
Specification