public class CParagraph extends CBlockElement
elementPtr| Constructor and Description |
|---|
CParagraph(long ptr)
Create a paragraph element with native pointer.
|
| Modifier and Type | Method and Description |
|---|---|
CText |
createTextElement(java.lang.String text)
Create a text element as a child of this paragraph.
|
CElementType |
getType()
Get element type.
|
void |
setFirstLineIndent(float firstLineIndent)
Set first line indent for this paragraph.
|
void |
setFixedLeading(CUnitValue leading)
Set a fixed line leading (line spacing) using a unit value.
|
void |
setFixedLeading(float leading)
Set a fixed line leading (line spacing) in points.
|
void |
setMultipliedLeading(float multipliedLeading)
Set multiplied leading (line spacing multiplier).
|
getHeight, getMarginBottom, getMarginLeft, getMarginRight, getMarginTop, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getWidth, setHeight, setHeight, setMargin, setMarginBottom, setMarginLeft, setMarginRight, setMargins, setMarginTop, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setPadding, setPaddingBottom, setPaddingLeft, setPaddingRight, setPaddings, setPaddingTop, setVerticalAlignment, setWidth, setWidthaddStyle, getChildren, getStyles, hasProperty, isAbsolute, isEmptydeleteProperty, getProperties, getStrokeColor, getStrokeWidth, hasProperty, setAbsolutePosition, setAbsolutePosition, setBackgroundColor, setBackgroundImage, setBorder, setBorderBottom, setBorderBottomLeftRadius, setBorderBottomRightRadius, setBorderLeft, setBorderRadius, setBorderRight, setBorderTop, setBorderTopLeftRadius, setBorderTopRightRadius, setCharacterSpacing, setFontColor, setFontFamily, setFontSize, setFontStyle, setFontWeight, setHorizontalAlignment, setInlineVerticalAlignment, setOpacity, setStrokeColor, setStrokeWidth, setTextAlignment, setUnderline, setWordSpacingpublic CParagraph(long ptr)
ptr - Native paragraph pointer/handle.public CElementType getType()
CElementType.ELEMENT_PARAGRAPH.public CText createTextElement(java.lang.String text)
text - Text content.CText element instance.public void setFixedLeading(float leading)
leading - Leading value in points.public void setFixedLeading(CUnitValue leading)
leading - Leading as CUnitValue.public void setMultipliedLeading(float multipliedLeading)
multipliedLeading - Multiplier value.public void setFirstLineIndent(float firstLineIndent)
firstLineIndent - First line indent value (unit is implementation-defined; commonly points).