Patent ID: 8429517

Claim:
A non-transitory computer-readable medium having instructions encoded thereon for enabling a processor to perform a method for generating and rendering a template of a pre-defined layout 1000 , the method comprising: determining an underlying graph structure of a pre-defined layout comprising one or more pre-placed objects (A-E); providing information from said underlying graph structure into a plurality of matrices; providing a first direction result o said determining of said underlying graph structure into a first direction matrix; providing a second direction result of said determining said underlying graph structure into a second direction matrix, the first direction orthogonal to the second direction; determining one or more pre-placed objects parameters of said pre-defined layout 1000 ; utilizing said plurality of matrices in conjunction with said one or more pre-placed object parameters to determine location coordinates and size information for said one or more pre-placed objects (A-E); utilizing a recursive lookup into said first direction matrix and said second direction matrix to generate coordinates for each one or more pre-placed objects (A-E) to be rendered on said template; and rendering a template based on the location coordinates and size information for said one or more pre-placed objects (A-E).