public void setLevel3Properties(XDDFParagraphProperties properties) { if (properties == null) { if (_body.isSetLstStyle()) { CTTextListStyle style = _body.getLstStyle(); if (style.isSetLvl3PPr()) { style.unsetLvl3PPr(); } } } else { CTTextListStyle style = _body.isSetLstStyle() ? _body.getLstStyle() : _body.addNewLstStyle(); style.setLvl3PPr(properties.getXmlObject()); } }
public void setLevel8Properties(XDDFParagraphProperties properties) { if (properties == null) { if (_body.isSetLstStyle()) { CTTextListStyle style = _body.getLstStyle(); if (style.isSetLvl8PPr()) { style.unsetLvl8PPr(); } } } else { CTTextListStyle style = _body.isSetLstStyle() ? _body.getLstStyle() : _body.addNewLstStyle(); style.setLvl8PPr(properties.getXmlObject()); } }
public void setLevel2Properties(XDDFParagraphProperties properties) { if (properties == null) { if (_body.isSetLstStyle()) { CTTextListStyle style = _body.getLstStyle(); if (style.isSetLvl2PPr()) { style.unsetLvl2PPr(); } } } else { CTTextListStyle style = _body.isSetLstStyle() ? _body.getLstStyle() : _body.addNewLstStyle(); style.setLvl2PPr(properties.getXmlObject()); } }
public void setLevel9Properties(XDDFParagraphProperties properties) { if (properties == null) { if (_body.isSetLstStyle()) { CTTextListStyle style = _body.getLstStyle(); if (style.isSetLvl9PPr()) { style.unsetLvl9PPr(); } } } else { CTTextListStyle style = _body.isSetLstStyle() ? _body.getLstStyle() : _body.addNewLstStyle(); style.setLvl9PPr(properties.getXmlObject()); } }
public void setLevel1Properties(XDDFParagraphProperties properties) { if (properties == null) { if (_body.isSetLstStyle()) { CTTextListStyle style = _body.getLstStyle(); if (style.isSetLvl1PPr()) { style.unsetLvl1PPr(); } } } else { CTTextListStyle style = _body.isSetLstStyle() ? _body.getLstStyle() : _body.addNewLstStyle(); style.setLvl1PPr(properties.getXmlObject()); } }
public void setLevel5Properties(XDDFParagraphProperties properties) { if (properties == null) { if (_body.isSetLstStyle()) { CTTextListStyle style = _body.getLstStyle(); if (style.isSetLvl5PPr()) { style.unsetLvl5PPr(); } } } else { CTTextListStyle style = _body.isSetLstStyle() ? _body.getLstStyle() : _body.addNewLstStyle(); style.setLvl5PPr(properties.getXmlObject()); } }
public void setLevel7Properties(XDDFParagraphProperties properties) { if (properties == null) { if (_body.isSetLstStyle()) { CTTextListStyle style = _body.getLstStyle(); if (style.isSetLvl7PPr()) { style.unsetLvl7PPr(); } } } else { CTTextListStyle style = _body.isSetLstStyle() ? _body.getLstStyle() : _body.addNewLstStyle(); style.setLvl7PPr(properties.getXmlObject()); } }
public void setDefaultProperties(XDDFParagraphProperties properties) { if (properties == null) { if (_body.isSetLstStyle()) { CTTextListStyle style = _body.getLstStyle(); if (style.isSetDefPPr()) { style.unsetDefPPr(); } } } else { CTTextListStyle style = _body.isSetLstStyle() ? _body.getLstStyle() : _body.addNewLstStyle(); style.setDefPPr(properties.getXmlObject()); } }
public void setLevel4Properties(XDDFParagraphProperties properties) { if (properties == null) { if (_body.isSetLstStyle()) { CTTextListStyle style = _body.getLstStyle(); if (style.isSetLvl4PPr()) { style.unsetLvl4PPr(); } } } else { CTTextListStyle style = _body.isSetLstStyle() ? _body.getLstStyle() : _body.addNewLstStyle(); style.setLvl4PPr(properties.getXmlObject()); } }
public void setLevel6Properties(XDDFParagraphProperties properties) { if (properties == null) { if (_body.isSetLstStyle()) { CTTextListStyle style = _body.getLstStyle(); if (style.isSetLvl6PPr()) { style.unsetLvl6PPr(); } } } else { CTTextListStyle style = _body.isSetLstStyle() ? _body.getLstStyle() : _body.addNewLstStyle(); style.setLvl6PPr(properties.getXmlObject()); } }
public XDDFTextParagraph initialize() { _body.addNewLstStyle(); _body.addNewBodyPr(); XDDFBodyProperties bp = getBodyProperties(); bp.setAnchoring(AnchorType.TOP); bp.setRightToLeft(false); XDDFTextParagraph p = addNewParagraph(); p.setTextAlignment(TextAlignment.LEFT); XDDFRunProperties end = p.addAfterLastRunProperties(); end.setLanguage(Locale.US); end.setFontSize(11.0); return p; }
protected CTTextBody getTextBody(boolean create){ CTShape shape = (CTShape) getXmlObject(); CTTextBody txBody = shape.getTxBody(); if (txBody == null && create) { txBody = shape.addNewTxBody(); txBody.addNewBodyPr(); txBody.addNewLstStyle(); } return txBody; }
@Override protected CTTextBody getTextBody(boolean create){ CTTableCell cell = getXmlObject(); CTTextBody txBody = cell.getTxBody(); if (txBody == null && create) { txBody = cell.addNewTxBody(); txBody.addNewBodyPr(); txBody.addNewLstStyle(); } return txBody; }
public void setLevel5Properties(XDDFParagraphProperties properties) { if (properties == null) { if (_body.isSetLstStyle()) { CTTextListStyle style = _body.getLstStyle(); if (style.isSetLvl5PPr()) { style.unsetLvl5PPr(); } } } else { CTTextListStyle style = _body.isSetLstStyle() ? _body.getLstStyle() : _body.addNewLstStyle(); style.setLvl5PPr(properties.getXmlObject()); } }
public void setDefaultProperties(XDDFParagraphProperties properties) { if (properties == null) { if (_body.isSetLstStyle()) { CTTextListStyle style = _body.getLstStyle(); if (style.isSetDefPPr()) { style.unsetDefPPr(); } } } else { CTTextListStyle style = _body.isSetLstStyle() ? _body.getLstStyle() : _body.addNewLstStyle(); style.setDefPPr(properties.getXmlObject()); } }
public void setLevel2Properties(XDDFParagraphProperties properties) { if (properties == null) { if (_body.isSetLstStyle()) { CTTextListStyle style = _body.getLstStyle(); if (style.isSetLvl2PPr()) { style.unsetLvl2PPr(); } } } else { CTTextListStyle style = _body.isSetLstStyle() ? _body.getLstStyle() : _body.addNewLstStyle(); style.setLvl2PPr(properties.getXmlObject()); } }
public void setLevel4Properties(XDDFParagraphProperties properties) { if (properties == null) { if (_body.isSetLstStyle()) { CTTextListStyle style = _body.getLstStyle(); if (style.isSetLvl4PPr()) { style.unsetLvl4PPr(); } } } else { CTTextListStyle style = _body.isSetLstStyle() ? _body.getLstStyle() : _body.addNewLstStyle(); style.setLvl4PPr(properties.getXmlObject()); } }
public void setLevel7Properties(XDDFParagraphProperties properties) { if (properties == null) { if (_body.isSetLstStyle()) { CTTextListStyle style = _body.getLstStyle(); if (style.isSetLvl7PPr()) { style.unsetLvl7PPr(); } } } else { CTTextListStyle style = _body.isSetLstStyle() ? _body.getLstStyle() : _body.addNewLstStyle(); style.setLvl7PPr(properties.getXmlObject()); } }
public XDDFTextParagraph initialize() { _body.addNewLstStyle(); _body.addNewBodyPr(); XDDFBodyProperties bp = getBodyProperties(); bp.setAnchoring(AnchorType.TOP); bp.setRightToLeft(false); XDDFTextParagraph p = addNewParagraph(); p.setTextAlignment(TextAlignment.LEFT); XDDFRunProperties end = p.addAfterLastRunProperties(); end.setLanguage(Locale.US); end.setFontSize(11.0); return p; }
public static void setAxisTitle(XSSFChart chart, int axisIdx, String title) { CTValAx valAx = chart.getCTChart().getPlotArea().getValAxArray(axisIdx); CTTitle ctTitle = valAx.addNewTitle(); ctTitle.addNewLayout(); ctTitle.addNewOverlay().setVal(false); CTTextBody rich = ctTitle.addNewTx().addNewRich(); rich.addNewBodyPr(); rich.addNewLstStyle(); CTTextParagraph p = rich.addNewP(); p.addNewPPr().addNewDefRPr(); p.addNewR().setT(title); p.addNewEndParaRPr(); }