ChartDirector 7.0 (Python Edition)

CDMLTable


The CDMLTable class represents tables for CDML contents.

A CDMLTable consists of rows and columns. The rows are numbered from top to bottom, with the top row being 0. The columns are numbered from left to right, with the leftmost column being 0.

By default, the intersection of a row and a column is a cell. You may create cells that span multiple rows and/or columns with CDMLTable.setCell.

The styles of a cell, such as its background color, font, etc., are determined using the following order.

For any style attribute (eg. background color):

For example, if you set the background to white using the prototype for all cells, the background of the whole table will change to white. If you then set the background to grey using the prototype for a row, the background for that row will change to grey. Finally, if you set the background to red using the text box that represents a cell, only that cell will have a red background.

MethodInheritedDescription
setPos(Self)Sets the position of the table.
setText(Self)Puts text into a cell in the table.
setCell(Self)Sets the number of rows and columns that a cell spans, and puts text in the cell.
insertCol(Self)Inserts a column to the table.
appendCol(Self)Appends a column to the right of the table.
getColCount(Self)Gets the number of columns in the table.
insertRow(Self)Inserts a row to the table.
appendRow(Self)Appends a row to the bottom of the table.
getRowCount(Self)Gets the number of rows in the table.
getCell(Self)Gets the TextBox object that represents a cell.
getColStyle(Self)Gets the TextBox object that represents the prototype of the cells in a column.
getRowStyle(Self)Gets the TextBox object that represents the prototype of the cells in a row.
getStyle(Self)Gets the TextBox object that represents the prototype of the cells in the table.
layout(Self)Lays out the table.
getColWidth(Self)Gets the width of a column.
getRowHeight(Self)Gets the height of a row.
getWidth(Self)Gets the width of the table.
getHeight(Self)Gets the height of the table.
setZOrder(Self)Sets the z-order (drawing order) of the table.