A panel to display objects in a simple grid with fixed row and column heights and widths.
protected var _columns:Array
numColumns:int [read-only]
The number of columns in the grid.
Implementation
public function get numColumns():int
numRows:int [read-only]
The number of rows in the grid.
Implementation
public function get numRows():int
protected var _rows:Array
public function GridPanel(widths:Array, heights:Array)
Creates a new grid panel.
Parameters
| widths:Array — array of numeric widths, one per grid column
|
| |
| heights:Array — array of numeric heights, one per grid row
|
public function addCell(column:int, row:int, contents:DisplayObject):void
Adds a new cell at the given column and row. The previous contents of the cell are not
removed.
Parameters
| column:int |
| |
| row:int |
| |
| contents:DisplayObject |
public function getCellSize(column:int, row:int):Point
Gets the size of a cell.
Parameters
Returns
| Point — a point with x = the width of the cell and y = to the height.
|