Provides analysis of a
Grid
for rendering purposes.
This object defines the Grid
in terms of two axes, "x" and "y". The axes are transposed based on whether the origin
property of the Grid
is horizontal or vertical. For horizontally-oriented Grid
s, the x-axis represents columns and the y-axis represents rows. For vertically oriented Grid
s, the x-axis represents rows and the y-axis represents columns.
Once a GridProcessor
has been instantiated, the rendering GridPeer
can make inquiries to it to determine how the HTML table representing the Grid should be rendered.
Upon instantiation, the dimensions of the grid are calculated, and the content of each cell within those dimensions is determined. By specifying an "x" and "y" coordinate to various getXXX() methods, the renderer can determine what Component
exists at a particular coordinate, how many rows and columns that Component
spans, and the index of the Component
within its parent Grid
's children.
This class should not be extended or used by classes outside of the Echo framework.