/** * @since 4.0.1 */ public XDDFRunProperties addDefaultRunProperties() { return getOrCreateProperties().addDefaultRunProperties(); }
public XDDFParagraphBulletProperties getOrCreateBulletProperties() { return getOrCreateProperties().getBulletProperties(); }
public XDDFTabStop insertTabStop(int index) { return getOrCreateProperties().insertTabStop(index); }
public XDDFTabStop addTabStop() { return getOrCreateProperties().addTabStop(); }
/** * Specifies the alignment that is to be applied to the paragraph. Possible * values for this include left, right, centered, justified and distributed, * * @param align * text alignment */ public void setTextAlignment(TextAlignment align) { if (align != null || _p.isSetPPr()) { getOrCreateProperties().setTextAlignment(align); } }
public void setLatinLineBreak(Boolean value) { if (value != null || _p.isSetPPr()) { getOrCreateProperties().setLatinLineBreak(value); } }
public void setHangingPunctuation(Boolean value) { if (value != null || _p.isSetPPr()) { getOrCreateProperties().setHangingPunctuation(value); } }
/** * Specifies the default size for a tab character within this paragraph. * * @param points * the default tab size in points. The value <code>null</code> * unsets the default tab size for this paragraph. */ public void setDefaultTabSize(Double points) { if (points != null || _p.isSetPPr()) { getOrCreateProperties().setDefaultTabSize(points); } }
public void setEastAsianLineBreak(Boolean value) { if (value != null || _p.isSetPPr()) { getOrCreateProperties().setEastAsianLineBreak(value); } }
public void setRightToLeft(Boolean value) { if (value != null || _p.isSetPPr()) { getOrCreateProperties().setRightToLeft(value); } }
public void setDefaultRunProperties(XDDFRunProperties properties) { if (properties != null || _p.isSetPPr()) { getOrCreateProperties().setDefaultRunProperties(properties); } }
/** * Determines where vertically on a line of text the actual words are * positioned. This deals with vertical placement of the characters with * respect to the baselines. For instance having text anchored to the top * baseline, anchored to the bottom baseline, centered in between, etc. * * @param align * text font alignment */ public void setFontAlignment(FontAlignment align) { if (align != null || _p.isSetPPr()) { getOrCreateProperties().setFontAlignment(align); } }
/** * Specifies the right margin of the paragraph. This is specified in * addition to the text body inset and applies only to this text paragraph. * That is the text body inset and the RightMargin attributes are additive * with respect to the text position. * * @param points * the margin in points. The value <code>null</code> unsets the * right margin for this paragraph. * <dl> * <dt>Minimum inclusive =</dt> * <dd>0</dd> * <dt>Maximum inclusive =</dt> * <dd>4032</dd></dt> */ public void setMarginRight(Double points) { if (points != null || _p.isSetPPr()) { getOrCreateProperties().setMarginRight(points); } }
/** * Specifies the left margin of the paragraph. This is specified in addition * to the text body inset and applies only to this text paragraph. That is * the text body inset and the LeftMargin attributes are additive with * respect to the text position. * * @param points * the margin in points. The value <code>null</code> unsets the * left margin for this paragraph. * <dl> * <dt>Minimum inclusive =</dt> * <dd>0</dd> * <dt>Maximum inclusive =</dt> * <dd>4032</dd></dt> */ public void setMarginLeft(Double points) { if (points != null || _p.isSetPPr()) { getOrCreateProperties().setMarginLeft(points); } }
/** * Specifies the indentation size that will be applied to the first line of * text in the paragraph. * * @param points * the indentation in points. The value <code>null</code> unsets * the indentation for this paragraph. * <dl> * <dt>Minimum inclusive =</dt> * <dd>-4032</dd> * <dt>Maximum inclusive =</dt> * <dd>4032</dd></dt> */ public void setIndentation(Double points) { if (points != null || _p.isSetPPr()) { getOrCreateProperties().setIndentation(points); ; } }
/** * Set the amount of vertical white space that will be present after the * paragraph. This may be specified in two different ways, percentage * spacing or font points spacing: * <p> * If spacing is instance of XDDFSpacingPercent, then spacing is a * percentage of normal line height. If spacing is instance of * XDDFSpacingPoints, then spacing is expressed in points. * </p> * Examples: * * <pre> * <code> * // The paragraph will be formatted to have a spacing after the paragraph text. * // The spacing will be 200% of the size of the largest text on each line * paragraph.setSpaceAfter(new XDDFSpacingPercent(200)); * * // The spacing will be a size of 48 points * paragraph.setSpaceAfter(new XDDFSpacingPoints(48.0)); * </code> * </pre> * * @param spaceAfter * the vertical white space after the paragraph. */ public void setSpaceAfter(XDDFSpacing spaceAfter) { if (spaceAfter != null || _p.isSetPPr()) { getOrCreateProperties().setSpaceAfter(spaceAfter); } }
/** * Set the amount of vertical white space that will be present before the * paragraph. This may be specified in two different ways, percentage * spacing or font points spacing: * <p> * If spacing is instance of XDDFSpacingPercent, then spacing is a * percentage of normal line height. If spacing is instance of * XDDFSpacingPoints, then spacing is expressed in points. * </p> * Examples: * * <pre> * <code> * // The paragraph will be formatted to have a spacing before the paragraph text. * // The spacing will be 200% of the size of the largest text on each line * paragraph.setSpaceBefore(new XDDFSpacingPercent(200)); * * // The spacing will be a size of 48 points * paragraph.setSpaceBefore(new XDDFSpacingPoints(48.0)); * </code> * </pre> * * @param spaceBefore * the vertical white space before the paragraph. */ public void setSpaceBefore(XDDFSpacing spaceBefore) { if (spaceBefore != null || _p.isSetPPr()) { getOrCreateProperties().setSpaceBefore(spaceBefore); } }
getOrCreateProperties().setLineSpacing(linespacing);
public void setLatinLineBreak(Boolean value) { if (value != null || _p.isSetPPr()) { getOrCreateProperties().setLatinLineBreak(value); } }
public void setHangingPunctuation(Boolean value) { if (value != null || _p.isSetPPr()) { getOrCreateProperties().setHangingPunctuation(value); } }