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.

DrawingTextBody.java 646B

1234567891011121314151617181920212223
  1. package org.apache.poi.xslf.usermodel;
  2. import org.openxmlformats.schemas.drawingml.x2006.main.CTTextBody;
  3. import org.openxmlformats.schemas.drawingml.x2006.main.CTTextParagraph;
  4. public class DrawingTextBody {
  5. private final CTTextBody textBody;
  6. public DrawingTextBody(CTTextBody textBody) {
  7. this.textBody = textBody;
  8. }
  9. public DrawingParagraph[] getParagraphs() {
  10. CTTextParagraph[] pArray = textBody.getPArray();
  11. DrawingParagraph[] o = new DrawingParagraph[pArray.length];
  12. for (int i=0; i<o.length; i++) {
  13. o[i] = new DrawingParagraph(pArray[i]);
  14. }
  15. return o;
  16. }
  17. }