Class: Layout::Table
Overview
A Table is a series of rows and columns that holds data.
Instance Method Summary # collapse
- #[](row_index, column_index) ⇒ Layout::TableCell
-
#dimensions ⇒ Array(Integer, Integer)
The #dimensions method returns the number of rows and columns in a Table.
- #each {|cell| ... } ⇒ Object
- #entities ⇒ Layout::Entities
-
#get_column(index) ⇒ Layout::TableColumn
The #get_column method returns the TableColumn at the specified index.
- #get_row(index) ⇒ Layout::TableRow
-
#initialize(bounds, rows, columns) ⇒ Layout::Table
constructor
The #initialize method creates a Table with a specified size, and a specified number of rows and columns.
-
#insert_column(index) ⇒ Object
The #insert_column method inserts a new column at the specified index.
-
#insert_row(index) ⇒ Object
The #insert_row method inserts a new row at the specified index.
- #merge(start_row, start_column, end_row, end_column) ⇒ Object
-
#remove_column(index) ⇒ Object
The #remove_column method removes the column at the specified index.
-
#remove_row(index) ⇒ Object
The #remove_row method removes the row at the specified index.
Methods inherited from Entity
#==, #bounds, #document, #drawing_bounds, #group, #layer_instance, #locked=, #locked?, #move_to_group, #move_to_layer, #on_shared_layer?, #page, #style, #style=, #transform!, #transformation, #untransformed_bounds, #untransformed_bounds=
Constructor Details
↑ #initialize(bounds, rows, columns) ⇒ Layout::Table
The #initialize method creates a Layout::Table with a specified size, and a specified number of rows and columns.
Instance Method Details
↑ #[](row_index, column_index) ⇒ Layout::TableCell
The #[] method returns the Layout::TableCell at the specified row and column.
↑ #dimensions ⇒ Array(Integer, Integer)
The #dimensions method returns the number of rows and columns in a Layout::Table.
↑ #each {|cell| ... } ⇒ Object
The #each method iterates in column major order through all of the cells in the Layout::Table.
↑ #entities ⇒ Layout::Entities
The #entities method creates and returns the Entities that represent the Layout::Table in its exploded form.
↑ #get_column(index) ⇒ Layout::TableColumn
The #get_column method returns the Layout::TableColumn at the specified index.
↑ #get_row(index) ⇒ Layout::TableRow
The #get_row method returns the Layout::TableRow at the specified index.
↑ #insert_column(index) ⇒ Object
The #insert_column method inserts a new column at the specified index.
↑ #insert_row(index) ⇒ Object
The #insert_row method inserts a new row at the specified index.
↑ #merge(start_row, start_column, end_row, end_column) ⇒ Object
The #merge method merges a range of cells within a Layout::Table. Only cells which are not already merged can be merged.
↑ #remove_column(index) ⇒ Object
The #remove_column method removes the column at the specified index.
↑ #remove_row(index) ⇒ Object
The #remove_row method removes the row at the specified index.