org.apache.poi.xwpf.converter.core.styles.paragraph
Class ParagraphLineSpacingValueProvider

java.lang.Object
  extended by org.apache.poi.xwpf.converter.core.styles.AbstractValueProvider<Value,org.apache.poi.xwpf.usermodel.XWPFParagraph>
      extended by org.apache.poi.xwpf.converter.core.styles.paragraph.AbstractParagraphValueProvider<Value>
          extended by org.apache.poi.xwpf.converter.core.styles.paragraph.AbstractSpacingParagraphValueProvider<ParagraphLineSpacing>
              extended by org.apache.poi.xwpf.converter.core.styles.paragraph.ParagraphLineSpacingValueProvider
All Implemented Interfaces:
IValueProvider<ParagraphLineSpacing,org.apache.poi.xwpf.usermodel.XWPFParagraph>

public class ParagraphLineSpacingValueProvider
extends AbstractSpacingParagraphValueProvider<ParagraphLineSpacing>

17.3.1.33 spacing (Spacing Between Lines and Above/Below Paragraph) This element specifies the inter-line and inter-paragraph spacing which shall be applied to the contents of this paragraph when it is displayed by a consumer. If this element is omitted on a given paragraph, each of its values is determined by the setting previously set at any level of the style hierarchy (i.e. that previous setting remains unchanged). If this setting is never specified in the style hierarchy, then the paragraph shall have no spacing applied to its lines, or above and below its contents. [Example: Consider the following WordprocessingML paragraph: This paragraph specifies that it must have at least 200 twentieths of a point after the last line in each paragraph, and that the spacing in each line should be automatically calculated based on a 1.15 times (276 divided by 240) the normal single spacing calculation. end example]


Field Summary
static ParagraphLineSpacingValueProvider INSTANCE
           
protected static float LINE_SPACING_FACTOR
           
 
Constructor Summary
ParagraphLineSpacingValueProvider()
           
 
Method Summary
protected  ParagraphLineSpacing getValue(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTSpacing spacing)
           
 
Methods inherited from class org.apache.poi.xwpf.converter.core.styles.paragraph.AbstractSpacingParagraphValueProvider
getKeyBuffer, getSpacing, getValue
 
Methods inherited from class org.apache.poi.xwpf.converter.core.styles.paragraph.AbstractParagraphValueProvider
getCTPPr, getCTPPr, getCTPPr, getCTPPr, getDefaultStyle, getParentTableCell, getStyleID, getValueFromDocDefaultsStyle, getValueFromElement, getValueFromStyle, getValueFromTableStyle
 
Methods inherited from class org.apache.poi.xwpf.converter.core.styles.AbstractValueProvider
getDefaultValue, getKey, getStaticValue, getValue, getValueFromDefaultStyle, getValueFromDocDefaultsStyle, getValueFromStyleIds, getValueFromStyles, internalGetValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LINE_SPACING_FACTOR

protected static final float LINE_SPACING_FACTOR
See Also:
Constant Field Values

INSTANCE

public static final ParagraphLineSpacingValueProvider INSTANCE
Constructor Detail

ParagraphLineSpacingValueProvider

public ParagraphLineSpacingValueProvider()
Method Detail

getValue

protected ParagraphLineSpacing getValue(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTSpacing spacing)
Specified by:
getValue in class AbstractSpacingParagraphValueProvider<ParagraphLineSpacing>


Copyright © 2013. All rights reserved.