public void setTextBody(XDDFTextBody body) { if (body == null) { if (legend.isSetTxPr()) { legend.unsetTxPr(); } } else { legend.setTxPr(body.getXmlObject()); } }
public void setTextBody(XDDFTextBody body) { if (body == null) { if (entry.isSetTxPr()) { entry.unsetTxPr(); } } else { entry.setTxPr(body.getXmlObject()); } }
@Override protected CTTextBody getTextBody(boolean create) { CTShape shape = (CTShape) getXmlObject(); CTTextBody txBody = shape.getTxBody(); if (txBody == null && create) { XDDFTextBody body = new XDDFTextBody(this); initTextBody(body); shape.setTxBody(body.getXmlObject()); txBody = shape.getTxBody(); } return txBody; }
@Override protected CTTextBody getTextBody(boolean create) { CTTableCell cell = getCell(); CTTextBody txBody = cell.getTxBody(); if (txBody == null && create) { XDDFTextBody body = new XDDFTextBody(this); initTextBody(body); cell.setTxBody(body.getXmlObject()); txBody = cell.getTxBody(); } return txBody; }
/** * * @param shapeId * 1-based shapeId */ static CTShape prototype(int shapeId) { CTShape ct = CTShape.Factory.newInstance(); CTShapeNonVisual nvSpPr = ct.addNewNvSpPr(); CTNonVisualDrawingProps cnv = nvSpPr.addNewCNvPr(); cnv.setName("TextBox " + shapeId); cnv.setId(shapeId); nvSpPr.addNewCNvSpPr().setTxBox(true); nvSpPr.addNewNvPr(); CTShapeProperties spPr = ct.addNewSpPr(); CTPresetGeometry2D prst = spPr.addNewPrstGeom(); prst.setPrst(STShapeType.RECT); prst.addNewAvLst(); XDDFTextBody body = new XDDFTextBody(null); initTextBody(body); ct.setTxBody(body.getXmlObject()); return ct; } }
public void setTextBody(XDDFTextBody body) { if (body == null) { if (entry.isSetTxPr()) { entry.unsetTxPr(); } } else { entry.setTxPr(body.getXmlObject()); } }
public void setTextBody(XDDFTextBody body) { if (body == null) { if (legend.isSetTxPr()) { legend.unsetTxPr(); } } else { legend.setTxPr(body.getXmlObject()); } }
@Override protected CTTextBody getTextBody(boolean create) { CTTableCell cell = getCell(); CTTextBody txBody = cell.getTxBody(); if (txBody == null && create) { XDDFTextBody body = new XDDFTextBody(this); initTextBody(body); cell.setTxBody(body.getXmlObject()); txBody = cell.getTxBody(); } return txBody; }
@Override protected CTTextBody getTextBody(boolean create) { CTShape shape = (CTShape) getXmlObject(); CTTextBody txBody = shape.getTxBody(); if (txBody == null && create) { XDDFTextBody body = new XDDFTextBody(this); initTextBody(body); shape.setTxBody(body.getXmlObject()); txBody = shape.getTxBody(); } return txBody; }
/** * * @param shapeId * 1-based shapeId */ static CTShape prototype(int shapeId) { CTShape ct = CTShape.Factory.newInstance(); CTShapeNonVisual nvSpPr = ct.addNewNvSpPr(); CTNonVisualDrawingProps cnv = nvSpPr.addNewCNvPr(); cnv.setName("TextBox " + shapeId); cnv.setId(shapeId); nvSpPr.addNewCNvSpPr().setTxBox(true); nvSpPr.addNewNvPr(); CTShapeProperties spPr = ct.addNewSpPr(); CTPresetGeometry2D prst = spPr.addNewPrstGeom(); prst.setPrst(STShapeType.RECT); prst.addNewAvLst(); XDDFTextBody body = new XDDFTextBody(null); initTextBody(body); ct.setTxBody(body.getXmlObject()); return ct; } }