Echo.Sync.Grid
Processor
Class Hierarchy:

Performs processing on layout of grid, determining rendered cell sizes, and eliminating conflicting row/column spans. This object describes coordinates in terms of x and y, rather than column/row. The translation between x/y and column/row varies based on the grid's orientation. For horizontally oriented grids, the x-axis represents columns and the y-axis rows. For vertically oriented grids, the x-axis represents rows and the y-axis columns.

Descendant Class Summary
Echo.Sync.Grid.Processor.Cell

Constructor Summary
Public Echo.Sync.Grid.Processor()
Creates a new Processor instance.

Instance Method Summary
Public addExtents()
Adds two extents.
Public calculateExtents()
Calculates sizes of columns and rows.
Public createCells()
Creates array of Cell instances representing child components of the grid.
Internal _getCellArray()
Returns an array representing the cells at the specified y-index.
Public getColumnCount()
Returns the number of columns that should be rendered.
Public getCell()
Returns the cell that should be rendered at the specified position.
Public getRowCount()
Returns the number of rows that should be rendered.
Public reduceX()
Remove duplicates from the x-axis where all cells simply "span over" a given x-axis coordinate.
Public reduceY()
Remove duplicates from the y-axis where all cells simply "span over" a given y-axis coordinate.
Public renderCellMatrix()
Iterates over cells to create the cell matrix, adjusting column and row spans as of cells to ensure that no overlap occurs between column and row spans.

Constructor Detail
Echo.Sync.Grid.Processor()
Creates a new Processor instance.
Parameters:
grid (Echo.Grid) - the supported grid

Instance Method Detail
addExtents
Adds two extents.
Parameters:
a (#Extent) - the first extent
b (#Extent) - the second extent
flag (Boolean) - indicating whether extents are horizontal
Returns:
(#Extent) the sum of the extents

calculateExtents
Calculates sizes of columns and rows.

createCells
Creates array of Cell instances representing child components of the grid.
Returns:
(Array) the array of Cell instances

_getCellArray
Returns an array representing the cells at the specified y-index. If no array currently exists, one is created.
Parameters:
y (Integer) - the y-index
Returns:
(Array) the array of cells.

getColumnCount
Returns the number of columns that should be rendered.
Returns:
(Integer) the number of rendered columns

getCell
Returns the cell that should be rendered at the specified position.
Parameters:
column (Integer) - the column index
row (Integer) - the row index
Returns:
(Echo.Sync.Grid.Processor.Cell) the cell

getRowCount
Returns the number of rows that should be rendered.
Returns:
(Integer) the number of rendered rows

reduceX
Remove duplicates from the x-axis where all cells simply "span over" a given x-axis coordinate.

reduceY
Remove duplicates from the y-axis where all cells simply "span over" a given y-axis coordinate.

renderCellMatrix
Iterates over cells to create the cell matrix, adjusting column and row spans as of cells to ensure that no overlap occurs between column and row spans. Additionally determines actual y-size of grid.
Parameters:
cells (Array) - array of Echo.Sync.Grid.Processor.Cell instances