You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

DrawingTable.java 612B

1234567891011121314151617181920212223
  1. package org.apache.poi.xslf.usermodel;
  2. import org.openxmlformats.schemas.drawingml.x2006.main.CTTable;
  3. import org.openxmlformats.schemas.drawingml.x2006.main.CTTableRow;
  4. public class DrawingTable {
  5. private final CTTable table;
  6. public DrawingTable(CTTable table) {
  7. this.table = table;
  8. }
  9. public DrawingTableRow[] getRows() {
  10. CTTableRow[] ctTableRows = table.getTrArray();
  11. DrawingTableRow[] o = new DrawingTableRow[ctTableRows.length];
  12. for (int i=0; i<o.length; i++) {
  13. o[i] = new DrawingTableRow(ctTableRows[i]);
  14. }
  15. return o;
  16. }
  17. }