public class Paragraph extends BlockElement<Paragraph>
BlockElement
which essentially acts as a container for leaf elements
.
Modifier and Type | Field and Description |
---|---|
protected DefaultAccessibilityProperties |
tagProperties |
childElements, nextRenderer, styles
properties
Constructor and Description |
---|
Paragraph()
Creates a Paragraph.
|
Paragraph(String text)
Creates a Paragraph, initialized with a piece of text.
|
Paragraph(Text text)
Creates a Paragraph, initialized with a piece of text.
|
Modifier and Type | Method and Description |
---|---|
Paragraph |
add(IBlockElement element)
|
Paragraph |
add(ILeafElement element)
|
Paragraph |
add(String text)
Adds a piece of text to this Paragraph .
|
|
addAll(List
|
Paragraph |
addTabStops(List<TabStop> tabStops)
|
Paragraph |
addTabStops(TabStop... tabStops)
Adds an unspecified amount of tabstop elements as properties to this Paragraph .
|
AccessibilityProperties |
getAccessibilityProperties()
Gets the accessibility properties .
|
|
getDefaultProperty(int property)
Gets the default property from this entity.
|
protected IRenderer |
makeNewRenderer()
Creates new renderer instance.
|
Paragraph |
removeTabStop(float tabStopPosition)
Removes a tabstop position from the Paragraph, if it is present in the Property.TAB_STOPS property.
|
Paragraph |
setFirstLineIndent(float indent)
Sets the indent value for the first line of the Paragraph .
|
Paragraph |
setFixedLeading(float leading)
Sets the leading value, using the Leading.FIXED strategy.
|
Paragraph |
setMultipliedLeading(float leading)
Sets the leading value, using the Leading.MULTIPLIED strategy.
|
Paragraph |
setOrphansControl(ParagraphOrphansControl orphansControl)
Sets orphans restriction on a Paragraph .
|
Paragraph |
setWidowsControl(ParagraphWidowsControl widowsControl)
Sets widows restriction on a Paragraph .
|
getHeight, getMarginBottom, getMarginLeft, getMarginRight, getMarginTop, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getWidth, isKeepTogether, isKeepWithNext, setHeight, setHeight, setKeepTogether, setKeepWithNext, setMargin, setMarginBottom, setMarginLeft, setMarginRight, setMargins, setMarginTop, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setNeutralRole, setPadding, setPaddingBottom, setPaddingLeft, setPaddingRight, setPaddings, setPaddingTop, setRotationAngle, setRotationAngle, setSpacingRatio, setVerticalAlignment, setWidth, setWidth
addStyle, createRendererSubTree, getChildren, getProperty, getRenderer, hasProperty, isEmpty, setAction, setNextRenderer, setPageNumber
deleteOwnProperty, getOwnProperty, getSplitCharacters, getStrokeColor, getStrokeWidth, getTextRenderingMode, hasOwnProperty, setBackgroundColor, setBackgroundColor, setBackgroundColor, setBackgroundColor, setBackgroundImage, setBackgroundImage, setBaseDirection, setBold, setBorder, setBorderBottom, setBorderBottomLeftRadius, setBorderBottomRightRadius, setBorderLeft, setBorderRadius, setBorderRight, setBorderTop, setBorderTopLeftRadius, setBorderTopRightRadius, setCharacterSpacing, setDestination, setFixedPosition, setFixedPosition, setFixedPosition, setFixedPosition, setFont, setFontColor, setFontColor, setFontFamily, setFontFamily, setFontKerning, setFontScript, setFontSize, setHorizontalAlignment, setHyphenation, setItalic, setLineThrough, setOpacity, setProperty, setRelativePosition, setSplitCharacters, setStrokeColor, setStrokeWidth, setTextAlignment, setTextRenderingMode, setUnderline, setUnderline, setUnderline, setUnderline, setWordSpacing
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getChildren
createRendererSubTree, getRenderer, setNextRenderer
deleteOwnProperty, getOwnProperty, getProperty, hasOwnProperty, hasProperty, setProperty
protected DefaultAccessibilityProperties tagProperties
public Paragraph()
public Paragraph(String text)
text
- the initial textual content, as a String
public Paragraph add(ILeafElement element)
element
- the content to be added, any ILeafElement
Paragraph
public Paragraph add(IBlockElement element)
element
- the content to be added, any IBlockElement
Paragraph
publicILeafElement> Paragraph addAll(List elements)
T2
- any ILeafElement
elements
- the content to be added
Paragraph
public Paragraph addTabStops(TabStop... tabStops)
Paragraph
.
tabStops
- the tabstop(s)
to be added as properties
Paragraph
TabStop
public Paragraph removeTabStop(float tabStopPosition)
Property.TAB_STOPS
property.
publicT1 getDefaultProperty(int property)
IPropertyContainer
getDefaultProperty
in interface IPropertyContainer
getDefaultProperty
in class BlockElement<Paragraph>
T1
- the return type associated with the property
property
- the property to be retrieved
null
will be returned
public Paragraph setFirstLineIndent(float indent)
Paragraph
.
indent
- the indent value that must be applied to the first line of the Paragraph, as a float
public Paragraph setOrphansControl(ParagraphOrphansControl orphansControl)
Paragraph
.
orphansControl
- an instance of ParagraphOrphansControl
.
Paragraph
instance.
public Paragraph setWidowsControl(ParagraphWidowsControl widowsControl)
Paragraph
.
widowsControl
- an instance of ParagraphWidowsControl
.
Paragraph
instance.
public Paragraph setFixedLeading(float leading)
Leading.FIXED
strategy.
leading
- the new leading value
Leading
public Paragraph setMultipliedLeading(float leading)
Leading.MULTIPLIED
strategy.
leading
- the new leading value
Leading
public AccessibilityProperties getAccessibilityProperties()
IAccessibleElement
accessibility properties
. See also IAccessibleElement
.
protected IRenderer makeNewRenderer()
AbstractElement
makeNewRenderer
in class AbstractElement<Paragraph>
IRenderer
Copyright © 1998–2022 iText Group NV. All rights reserved.