Package net.sf.jasperreports.engine
Interface JRParagraph
- All Superinterfaces:
JRStyleContainer
- All Known Implementing Classes:
CachingParagraph
,JRBaseParagraph
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Specifies the default value (in pixels) for the first line indent, if no explicit information is provided in a JR paragraph.static final String
Specifies the default value (in pixels) for the left indent, if no explicit information is provided in a JR paragraph.static final String
Specifies the default value for the text line spacing size, if no explicit information is provided in a JR paragraph.static final String
Specifies the default value (in pixels) for the right indent, if no explicit information is provided in a JR paragraph.static final String
Specifies the default value (in pixels) for the spacing after lines, if no explicit information is provided in a JR paragraph.static final String
Specifies the default value (in pixels) for the spacing before lines, if no explicit information is provided in a JR paragraph.static final String
Specifies the default value (in pixels) for the tab stop width, if no explicit information is provided in a paragraph. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addTabStop
(int index, TabStop tabStop) void
addTabStop
(TabStop tabStop) clone
(JRParagraphContainer paragraphContainer) Gets the text first line indent.Gets the text left indent.Gets the text line spacing.Gets the text line spacing size to be used in combination with the line spacing type.Gets the text own first line indent.Gets the text own left indent.Gets the text own line spacing.Gets the text own line spacing size to be used in combination with the line spacing type.Gets the text own right indent.Gets the text own spacing after.Gets the text own spacing before.TabStop[]
Gets the custom tab stops.Gets the text own tab stop width.Gets the text line spacing.Gets the text right indent.Gets the text spacing after.Gets the text spacing before.TabStop[]
Gets the custom tab stops.Gets the text tab stop width.void
void
removeTabStop
(int index) void
removeTabStop
(TabStop tabStop) void
setFirstLineIndent
(Integer firstLineIndent) Sets the text own first line indent.void
setLeftIndent
(Integer leftIndent) Sets the text own left indent.void
setLineSpacing
(LineSpacingEnum lineSpacing) Sets the text line spacing.void
setLineSpacingSize
(Float lineSpacingSize) Sets the text line spacing size to be used in combination with the line spacing type.void
setRightIndent
(Integer rightIndent) Sets the text own right indent.void
setSpacingAfter
(Integer spacingAfter) Sets the text own spacing after.void
setSpacingBefore
(Integer spacingBefore) Sets the text own spacing before.void
setTabStopWidth
(Integer tabStopWidth) Sets the text own tab stop width.Methods inherited from interface net.sf.jasperreports.engine.JRStyleContainer
getDefaultStyleProvider, getStyle, getStyleName, getStyleNameReference
-
Field Details
-
DEFAULT_LINE_SPACING_SIZE
Specifies the default value for the text line spacing size, if no explicit information is provided in a JR paragraph. This value is used in combination with the size-dependent line spacings inLineSpacingEnum
:- AT_LEAST
- FIXED
- PROPORTIONAL
- See Also:
-
DEFAULT_FIRST_LINE_INDENT
Specifies the default value (in pixels) for the first line indent, if no explicit information is provided in a JR paragraph.
By default the first line in JR paragraphs has no indentation.- See Also:
-
DEFAULT_LEFT_INDENT
Specifies the default value (in pixels) for the left indent, if no explicit information is provided in a JR paragraph.
By default JR paragraphs provide no left indentation.- See Also:
-
DEFAULT_RIGHT_INDENT
Specifies the default value (in pixels) for the right indent, if no explicit information is provided in a JR paragraph.
By default JR paragraphs provide no right indentation.- See Also:
-
DEFAULT_SPACING_BEFORE
Specifies the default value (in pixels) for the spacing before lines, if no explicit information is provided in a JR paragraph.
By default JR paragraphs provide no spacing before lines.- See Also:
-
DEFAULT_SPACING_AFTER
Specifies the default value (in pixels) for the spacing after lines, if no explicit information is provided in a JR paragraph.
By default JR paragraphs provide no spacing after lines.- See Also:
-
DEFAULT_TAB_STOP_WIDTH
Specifies the default value (in pixels) for the tab stop width, if no explicit information is provided in a paragraph.
By default JR paragraphs provide 40 pixels wide tab stops.- See Also:
-
-
Method Details
-
getParagraphContainer
JRParagraphContainer getParagraphContainer()Gets the text line spacing.- Returns:
- a value representing one of the line spacing constants in
LineSpacingEnum
-
clone
-
populateStyle
void populateStyle() -
getLineSpacing
LineSpacingEnum getLineSpacing()Gets the text line spacing.- Returns:
- a value representing one of the line spacing constants in
LineSpacingEnum
-
getOwnLineSpacing
LineSpacingEnum getOwnLineSpacing()Gets the text own line spacing.- Returns:
- a value representing one of the line spacing constants in
LineSpacingEnum
-
setLineSpacing
Sets the text line spacing.- Parameters:
lineSpacing
- a value representing one of the line spacing constants inLineSpacingEnum
-
getLineSpacingSize
Float getLineSpacingSize()Gets the text line spacing size to be used in combination with the line spacing type. -
getOwnLineSpacingSize
Float getOwnLineSpacingSize()Gets the text own line spacing size to be used in combination with the line spacing type. -
setLineSpacingSize
Sets the text line spacing size to be used in combination with the line spacing type. -
getLeftIndent
Integer getLeftIndent()Gets the text left indent. -
getOwnLeftIndent
Integer getOwnLeftIndent()Gets the text own left indent. -
setLeftIndent
Sets the text own left indent. -
getFirstLineIndent
Integer getFirstLineIndent()Gets the text first line indent. -
getOwnFirstLineIndent
Integer getOwnFirstLineIndent()Gets the text own first line indent. -
setFirstLineIndent
Sets the text own first line indent. -
getRightIndent
Integer getRightIndent()Gets the text right indent. -
getOwnRightIndent
Integer getOwnRightIndent()Gets the text own right indent. -
setRightIndent
Sets the text own right indent. -
getSpacingBefore
Integer getSpacingBefore()Gets the text spacing before. -
getOwnSpacingBefore
Integer getOwnSpacingBefore()Gets the text own spacing before. -
setSpacingBefore
Sets the text own spacing before. -
getSpacingAfter
Integer getSpacingAfter()Gets the text spacing after. -
getOwnSpacingAfter
Integer getOwnSpacingAfter()Gets the text own spacing after. -
setSpacingAfter
Sets the text own spacing after. -
getTabStopWidth
Integer getTabStopWidth()Gets the text tab stop width. -
getOwnTabStopWidth
Integer getOwnTabStopWidth()Gets the text own tab stop width. -
setTabStopWidth
Sets the text own tab stop width. -
getTabStops
TabStop[] getTabStops()Gets the custom tab stops. -
getOwnTabStops
TabStop[] getOwnTabStops()Gets the custom tab stops. -
addTabStop
-
addTabStop
-
removeTabStop
void removeTabStop(int index) -
removeTabStop
-