/** * The amount of vertical white space before the paragraph. This may be * specified in two different ways, percentage spacing or font points * spacing: * <p> * If spacing is a percentage of normal line height, result is instance of * XDDFSpacingPercent. If spacing is expressed in points, result is instance * of XDDFSpacingPoints. * </p> * * @return the vertical white space before the paragraph. */ public XDDFSpacing getSpaceBefore() { return findDefinedParagraphProperty(props -> props.isSetSpcBef(), props -> props.getSpcBef()) .map(spacing -> extractSpacing(spacing)).orElse(null); }
/** * Returns the vertical line spacing that is to be used within a paragraph. * This may be specified in two different ways, percentage spacing or font * points spacing: * <p> * If line spacing is a percentage of normal line height, result is instance * of XDDFSpacingPercent. If line spacing is expressed in points, result is * instance of XDDFSpacingPoints. * </p> * * @return the vertical line spacing. */ public XDDFSpacing getLineSpacing() { return findDefinedParagraphProperty(props -> props.isSetLnSpc(), props -> props.getLnSpc()) .map(spacing -> extractSpacing(spacing)).orElse(null); }
/** * The amount of vertical white space after the paragraph. This may be * specified in two different ways, percentage spacing or font points * spacing: * <p> * If spacing is a percentage of normal line height, result is instance of * XDDFSpacingPercent. If spacing is expressed in points, result is instance * of XDDFSpacingPoints. * </p> * * @return the vertical white space after the paragraph. */ public XDDFSpacing getSpaceAfter() { return findDefinedParagraphProperty(props -> props.isSetSpcAft(), props -> props.getSpcAft()) .map(spacing -> extractSpacing(spacing)).orElse(null); }
/** * Returns the vertical line spacing that is to be used within a paragraph. * This may be specified in two different ways, percentage spacing or font * points spacing: * <p> * If line spacing is a percentage of normal line height, result is instance * of XDDFSpacingPercent. If line spacing is expressed in points, result is * instance of XDDFSpacingPoints. * </p> * * @return the vertical line spacing. */ public XDDFSpacing getLineSpacing() { return findDefinedParagraphProperty(props -> props.isSetLnSpc(), props -> props.getLnSpc()) .map(spacing -> extractSpacing(spacing)).orElse(null); }
/** * The amount of vertical white space before the paragraph. This may be * specified in two different ways, percentage spacing or font points * spacing: * <p> * If spacing is a percentage of normal line height, result is instance of * XDDFSpacingPercent. If spacing is expressed in points, result is instance * of XDDFSpacingPoints. * </p> * * @return the vertical white space before the paragraph. */ public XDDFSpacing getSpaceBefore() { return findDefinedParagraphProperty(props -> props.isSetSpcBef(), props -> props.getSpcBef()) .map(spacing -> extractSpacing(spacing)).orElse(null); }
/** * The amount of vertical white space after the paragraph. This may be * specified in two different ways, percentage spacing or font points * spacing: * <p> * If spacing is a percentage of normal line height, result is instance of * XDDFSpacingPercent. If spacing is expressed in points, result is instance * of XDDFSpacingPoints. * </p> * * @return the vertical white space after the paragraph. */ public XDDFSpacing getSpaceAfter() { return findDefinedParagraphProperty(props -> props.isSetSpcAft(), props -> props.getSpcAft()) .map(spacing -> extractSpacing(spacing)).orElse(null); }