Patent ID: 9324168
Filing Date: 2016-04-26
CPC Classification: G06T

Claim Text:
1. A computer-implemented method for correcting a diagram layout comprising a plurality of shapes positioned within a list of regions, the method comprising: receiving a layout correction request; in response to the layout correction request, for each region of the list of regions, wherein the list of regions comprises a plurality of containers that abut one another, determining a corrected layout of a set of shapes without determining a region correction, determining a minimum additional spacing around the corrected layout of the set of shapes within the region, and determining corrected region boundaries according to the minimum additional spacing; resolving an ambiguity when a plurality of parent shapes are associated with a shape of the plurality of shapes by using a placement tree rule to select one parent shape of the plurality of parent shapes so that each shape of the plurality of shapes has only one parent shape, the placement tree rule defining an order of processing for a branch of a dependency tree created to resolve the ambiguity; and sequentially repositioning the set of shapes and region boundaries for each region of the list of regions according to the corrected layout and the corrected region boundaries by progressing through the dependency tree and repositioning the set of shapes and region boundaries for each region of the list of regions according to the placement tree rule.