# US 2010/0077328 A1 · Automatically arranging widgets of a model within a canvas using iterative region based widget relative adjustments

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2010/0077328 A1
- Document ID: US20100077328A1
- Status: Published application
- Kind: A1
- Application number: 12/236,069
- Filed: 2008-09-23
- Published: 2010-03-25
- Earliest claimed: 2008-09-23
- Assignees: International Business Machines Corporation
- Inventors: DANIEL C. BERG; BRAD L. BLANCETT; MICHAEL D. ELDER; CHAD M. HOLLIDAY; NARINDER MAKIN; JOHN E. SWANKE
- Web page: https://patentgrep.com/patent/US20100077328A1

## CPC

- G06F 3/0481: based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A widget adjustment event can be detected for a widget that is part of a model that is presented on a canvas of a user interface. On-canvas objects proximate to the widget can be adjusted. The on-canvas objects can include other widgets. The adjustments can be performed relative to a layout position of the widget after the widget adjustment event has occurred. Additional on-canvas objects further from the widget can the adjusted on-canvas objects can then be adjusted as necessary due to new positions of the adjusted on-canvas objects.

## Claims

### Claim 1

A method for automatically adjusting a layout of widgets in a canvas comprising:
detecting a widget adjustment event for a widget that is part of a model that is presented on a canvas of a user interface, wherein the widget adjustment event affects a layout positioning of the widget on the canvas;
adjusting on-canvas objects, which include other widgets, proximate to the widget, wherein adjustments of the on-canvas objects are performed relative to a layout position of the widget after the widget adjustment event has occurred; and
adjusting additional on-canvas objects further from the widget than the adjusted on-canvas objects, wherein adjustments of the additional on-canvas objects are performed relative to layout positions of the adjusted on-canvas objects after the adjustments for their positioning relative to the widget have occurred, wherein the adjustments occur automatically responsive to detecting of the widget adjustment event.

### Claim 2 (depends on 1)

The method of claim 1, wherein each of the on-canvas objects and the addition canvas objects are widgets, wherein labels, relationships, and other visual elements rendered on the canvas are adjusted in accordance with post adjustment widget positions.

### Claim 3 (depends on 1)

The method of claim 1, wherein the widget adjustment event is a user triggered event occurring responsive to a user interaction with the user interface.

### Claim 4 (depends on 1)

The method of claim 1, wherein the user interface is a graphical user interface of a graphical editor software application.

### Claim 5 (depends on 1)

The method of claim 1, wherein an order and a nature of the adjustments of the on-canvas objects and of the additional on-canvas objects ensures that subsequent adjustments do not result in a need to re-adjust a layout position on the canvas of previously adjusted on-canvas objects.

### Claim 6 (depends on 1)

The method of claim 1, wherein the widget adjustment event is one of a plurality of widget adjustment events performed against the model, said method further comprising:
before each of the plurality of widget adjustment events saving a snapshot of the layout of the model;
before adjusting any on-canvas objects, determining whether a post-adjustment state of the canvas after the detected widget adjustment event occurs corresponds to a previously saved snapshot; and
when a previously saved snapshot corresponds to the post-adjustment state, retrieving the previously saved snapshot and adjusting a layout of on-canvas objects on the canvas in accordance with the retrieved snapshot.

### Claim 7 (depends on 1)

The method of claim 1, wherein the widget adjustment event is an event associated with expanding a container widget contained on the canvas.

### Claim 8 (depends on 1)

The method of claim 1, wherein the widget adjustment event is an event associated with collapsing a container widget contained on the canvas.

### Claim 9 (depends on 1)

The method of claim 1, wherein the widget adjustment event is an event associated with resizing of a widget contained on the canvas.

### Claim 10 (depends on 1)

The method of claim 1, wherein the widget adjustment event is an event associated with adding a new widget to the canvas.

### Claim 11

A graphic editor stored in a storage medium comprising:
a layout adjustment engine configured to automatically adjust widgets visually presented on a canvas relative to a layout position of a reference widget presented on the canvas responsive to a widget adjustment event that causes the layout positioning of the reference widget on the canvas to change, wherein automatic adjustments performed by the layout adjustment engine occur local to the reference widget first, and then expand outwards to affect layout positions on the canvas of other widgets, wherein the other widgets are adjusted based upon new positions of widgets, which were already adjusted responsive to the widget adjustment event.

### Claim 12 (depends on 11)

The graphic editor of claim 11, further comprising:
a model snapshot engine configured to save and situationally restore layout positions of models rendered on canvases responsive to widget adjustment events, wherein the model snapshot engine only restores layout positions when a previously saved snapshot represents a layout desired after the widget adjustment event is applied to the canvas.

### Claim 13

A computer program product for automatically adjusting a layout of widgets in a canvas comprising a computer usable medium having computer usable program code embodied therewith, the computer usable program code comprising:
computer usable program code configured to detect a widget adjustment event for a widget that is part of a model that is presented on a canvas of a user interface, wherein the widget adjustment event affects a layout positioning of the widget on the canvas;
computer usable program code configured to adjust on-canvas objects, which include other widgets, proximate to the widget, wherein adjustments of the on-canvas objects are performed relative to a layout position of the widget after the widget adjustment event has occurred; and
computer usable program code configured to adjust additional on-canvas objects further from the widget than the adjusted on-canvas objects, wherein adjustments of the additional on-canvas objects are performed relative to layout positions of the adjusted on-canvas objects after the adjustments for their positioning relative to the widget have occurred, wherein the adjustments occur automatically responsive to detecting of the widget adjustment event.

### Claim 14 (depends on 13)

The computer program product of claim 13, wherein each of the on-canvas objects and the addition canvas objects are widgets, wherein labels, relationships, and other visual elements rendered on the canvas are adjusted in accordance with post adjustment widget positions.

### Claim 15 (depends on 13)

The computer program product of claim 13, wherein the widget adjustment event is a user triggered event occurring responsive to a user interaction with the user interface.

### Claim 16 (depends on 13)

The computer program product of claim 13, wherein the user interface is a graphical user interface of a graphical editor software application.

### Claim 17 (depends on 13)

The computer program product of claim 13, wherein an order and a nature of the adjustments of the on-canvas objects and of the additional on-canvas objects ensures that subsequent adjustments do not result in a need to re-adjust a layout position on the canvas of previously adjusted on-canvas objects.

### Claim 18 (depends on 13)

The computer program product of claim 13, wherein the widget adjustment event is one of a plurality of widget adjustment events performed against the model, said method further comprising:
computer usable program code configured to, before each of the plurality of widget adjustment events, save a snapshot of the layout of the model;
computer usable program code configured to, before adjusting any on-canvas objects, determine whether a post-adjustment state of the canvas after the detected widget adjustment event occurs corresponds to a previously saved snapshot; and
computer usable program code configured to, when a previously saved snapshot corresponds to the post-adjustment state, retrieve the previously saved snapshot and adjusting a layout of on-canvas objects on the canvas in accordance with the retrieved snapshot.
