Lines Matching defs:table

28 import javax.swing.table.*;
38 * This implementation spreads table rows naturally in sequence
44 * across multiple pages (in an order consistent with the table's
51 * The portion of table printed on each page is headed by the
52 * appropriate section of the table's <code>JTableHeader</code>.
68 * as determined by the table's <code>ComponentOrientation</code>.
89 * It is the responsibility of the developer to ensure that the table is not
92 * The behavior of this <code>Printable</code> is undefined if the table is
99 /** The table to print. */
100 private JTable table;
102 /** For quick reference to the table's header. */
105 /** For quick reference to the table's column model. */
114 /** Provides the header text for the table. */
117 /** Provides the footer text for the table. */
129 /** Used to store an area of the table to be printed. */
132 /** Used to store an area of the table's header to be printed. */
138 /** Vertical space to leave between table and header/footer text. */
159 * @param table the table to print
167 public TablePrintable(JTable table,
172 this.table = table;
174 header = table.getTableHeader();
175 colModel = table.getColumnModel();
188 // derive the header and footer font from the table's font
189 headerFont = table.getFont().deriveFont(Font.BOLD,
191 footerFont = table.getFont().deriveFont(Font.PLAIN,
196 * Prints the specified page of the table into the given {@link Graphics}
240 // the amount of vertical space available for printing the table
270 // fit the table's entire width on the page
296 if (row >= table.getRowCount() && col == 0) {
306 // calculate the area of the table to be printed for this page
340 // constrain the table output to the available space
352 // otherwise, ensure that the current portion of the table is
363 // if there's a table header, print the current section and
381 // print the current section of the table
384 table.print(g2d);
390 // draw a box around the table
423 // otherwise, if the table is LTR, ensure the left side of
425 } else if (table.getComponentOrientation().isLeftToRight()) {
440 * Calculate the area of the table to be printed for
451 final boolean ltr = table.getComponentOrientation().isLeftToRight();
471 int rowCount = table.getRowCount();
472 int rowHeight = table.getRowHeight(row);
480 rowHeight = table.getRowHeight(row);
501 int colCount = table.getColumnCount();