Package net.sf.jasperreports.engine.fill
Class CachingParagraph
- java.lang.Object
-
- net.sf.jasperreports.engine.fill.CachingParagraph
-
- All Implemented Interfaces:
JRParagraph
,JRStyleContainer
public class CachingParagraph extends Object implements JRParagraph
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
-
Field Summary
-
Fields inherited from interface net.sf.jasperreports.engine.JRParagraph
DEFAULT_FIRST_LINE_INDENT, DEFAULT_LEFT_INDENT, DEFAULT_LINE_SPACING_SIZE, DEFAULT_RIGHT_INDENT, DEFAULT_SPACING_AFTER, DEFAULT_SPACING_BEFORE, DEFAULT_TAB_STOP_WIDTH
-
-
Constructor Summary
Constructors Constructor Description CachingParagraph(JRParagraph base)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addTabStop(int index, TabStop tabStop)
void
addTabStop(TabStop tabStop)
JRParagraph
clone(JRParagraphContainer paragraphContainer)
JRDefaultStyleProvider
getDefaultStyleProvider()
Deprecated.Replaced bygetParagraphContainer()
.Integer
getFirstLineIndent()
Gets the text first line indent.Integer
getLeftIndent()
Gets the text left indent.LineSpacingEnum
getLineSpacing()
Gets the text line spacing.Float
getLineSpacingSize()
Gets the text line spacing size to be used in combination with the line spacing type.Integer
getOwnFirstLineIndent()
Gets the text own first line indent.Integer
getOwnLeftIndent()
Gets the text own left indent.LineSpacingEnum
getOwnLineSpacing()
Gets the text own line spacing.Float
getOwnLineSpacingSize()
Gets the text own line spacing size to be used in combination with the line spacing type.Integer
getOwnRightIndent()
Gets the text own right indent.Integer
getOwnSpacingAfter()
Gets the text own spacing after.Integer
getOwnSpacingBefore()
Gets the text own spacing before.TabStop[]
getOwnTabStops()
Gets the custom tab stops.Integer
getOwnTabStopWidth()
Gets the text own tab stop width.JRParagraphContainer
getParagraphContainer()
Gets the text line spacing.Integer
getRightIndent()
Gets the text right indent.Integer
getSpacingAfter()
Gets the text spacing after.Integer
getSpacingBefore()
Gets the text spacing before.JRStyle
getStyle()
Deprecated.Replaced bygetParagraphContainer()
.String
getStyleNameReference()
Deprecated.Replaced bygetParagraphContainer()
.TabStop[]
getTabStops()
Gets the custom tab stops.Integer
getTabStopWidth()
Gets the text tab stop width.void
populateStyle()
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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sf.jasperreports.engine.JRStyleContainer
getStyleName
-
-
-
-
Constructor Detail
-
CachingParagraph
public CachingParagraph(JRParagraph base)
-
-
Method Detail
-
getDefaultStyleProvider
public JRDefaultStyleProvider getDefaultStyleProvider()
Deprecated.Replaced bygetParagraphContainer()
.- Specified by:
getDefaultStyleProvider
in interfaceJRStyleContainer
-
getStyle
public JRStyle getStyle()
Deprecated.Replaced bygetParagraphContainer()
.Description copied from interface:JRStyleContainer
Returns this object's style.- Specified by:
getStyle
in interfaceJRStyleContainer
- Returns:
- this object's style
-
getStyleNameReference
public String getStyleNameReference()
Deprecated.Replaced bygetParagraphContainer()
.Description copied from interface:JRStyleContainer
Returns the name of an external style which is to be used by this object. External styles are defined intemplates
and are resolved at fill time. This attribute is only effective if no direct style (as returned bygetStyle()
is specified for this object.- Specified by:
getStyleNameReference
in interfaceJRStyleContainer
- Returns:
- the name of an external style
-
getParagraphContainer
public JRParagraphContainer getParagraphContainer()
Description copied from interface:JRParagraph
Gets the text line spacing.- Specified by:
getParagraphContainer
in interfaceJRParagraph
- Returns:
- a value representing one of the line spacing constants in
LineSpacingEnum
-
clone
public JRParagraph clone(JRParagraphContainer paragraphContainer)
- Specified by:
clone
in interfaceJRParagraph
-
populateStyle
public void populateStyle()
- Specified by:
populateStyle
in interfaceJRParagraph
-
getLineSpacing
public LineSpacingEnum getLineSpacing()
Description copied from interface:JRParagraph
Gets the text line spacing.- Specified by:
getLineSpacing
in interfaceJRParagraph
- Returns:
- a value representing one of the line spacing constants in
LineSpacingEnum
-
getOwnLineSpacing
public LineSpacingEnum getOwnLineSpacing()
Description copied from interface:JRParagraph
Gets the text own line spacing.- Specified by:
getOwnLineSpacing
in interfaceJRParagraph
- Returns:
- a value representing one of the line spacing constants in
LineSpacingEnum
-
setLineSpacing
public void setLineSpacing(LineSpacingEnum lineSpacing)
Description copied from interface:JRParagraph
Sets the text line spacing.- Specified by:
setLineSpacing
in interfaceJRParagraph
- Parameters:
lineSpacing
- a value representing one of the line spacing constants inLineSpacingEnum
-
getLineSpacingSize
public Float getLineSpacingSize()
Description copied from interface:JRParagraph
Gets the text line spacing size to be used in combination with the line spacing type.- Specified by:
getLineSpacingSize
in interfaceJRParagraph
-
getOwnLineSpacingSize
public Float getOwnLineSpacingSize()
Description copied from interface:JRParagraph
Gets the text own line spacing size to be used in combination with the line spacing type.- Specified by:
getOwnLineSpacingSize
in interfaceJRParagraph
-
setLineSpacingSize
public void setLineSpacingSize(Float lineSpacingSize)
Description copied from interface:JRParagraph
Sets the text line spacing size to be used in combination with the line spacing type.- Specified by:
setLineSpacingSize
in interfaceJRParagraph
-
getLeftIndent
public Integer getLeftIndent()
Description copied from interface:JRParagraph
Gets the text left indent.- Specified by:
getLeftIndent
in interfaceJRParagraph
-
getOwnLeftIndent
public Integer getOwnLeftIndent()
Description copied from interface:JRParagraph
Gets the text own left indent.- Specified by:
getOwnLeftIndent
in interfaceJRParagraph
-
setLeftIndent
public void setLeftIndent(Integer leftIndent)
Description copied from interface:JRParagraph
Sets the text own left indent.- Specified by:
setLeftIndent
in interfaceJRParagraph
-
getFirstLineIndent
public Integer getFirstLineIndent()
Description copied from interface:JRParagraph
Gets the text first line indent.- Specified by:
getFirstLineIndent
in interfaceJRParagraph
-
getOwnFirstLineIndent
public Integer getOwnFirstLineIndent()
Description copied from interface:JRParagraph
Gets the text own first line indent.- Specified by:
getOwnFirstLineIndent
in interfaceJRParagraph
-
setFirstLineIndent
public void setFirstLineIndent(Integer firstLineIndent)
Description copied from interface:JRParagraph
Sets the text own first line indent.- Specified by:
setFirstLineIndent
in interfaceJRParagraph
-
getRightIndent
public Integer getRightIndent()
Description copied from interface:JRParagraph
Gets the text right indent.- Specified by:
getRightIndent
in interfaceJRParagraph
-
getOwnRightIndent
public Integer getOwnRightIndent()
Description copied from interface:JRParagraph
Gets the text own right indent.- Specified by:
getOwnRightIndent
in interfaceJRParagraph
-
setRightIndent
public void setRightIndent(Integer rightIndent)
Description copied from interface:JRParagraph
Sets the text own right indent.- Specified by:
setRightIndent
in interfaceJRParagraph
-
getSpacingBefore
public Integer getSpacingBefore()
Description copied from interface:JRParagraph
Gets the text spacing before.- Specified by:
getSpacingBefore
in interfaceJRParagraph
-
getOwnSpacingBefore
public Integer getOwnSpacingBefore()
Description copied from interface:JRParagraph
Gets the text own spacing before.- Specified by:
getOwnSpacingBefore
in interfaceJRParagraph
-
setSpacingBefore
public void setSpacingBefore(Integer spacingBefore)
Description copied from interface:JRParagraph
Sets the text own spacing before.- Specified by:
setSpacingBefore
in interfaceJRParagraph
-
getSpacingAfter
public Integer getSpacingAfter()
Description copied from interface:JRParagraph
Gets the text spacing after.- Specified by:
getSpacingAfter
in interfaceJRParagraph
-
getOwnSpacingAfter
public Integer getOwnSpacingAfter()
Description copied from interface:JRParagraph
Gets the text own spacing after.- Specified by:
getOwnSpacingAfter
in interfaceJRParagraph
-
setSpacingAfter
public void setSpacingAfter(Integer spacingAfter)
Description copied from interface:JRParagraph
Sets the text own spacing after.- Specified by:
setSpacingAfter
in interfaceJRParagraph
-
getTabStopWidth
public Integer getTabStopWidth()
Description copied from interface:JRParagraph
Gets the text tab stop width.- Specified by:
getTabStopWidth
in interfaceJRParagraph
-
getOwnTabStopWidth
public Integer getOwnTabStopWidth()
Description copied from interface:JRParagraph
Gets the text own tab stop width.- Specified by:
getOwnTabStopWidth
in interfaceJRParagraph
-
setTabStopWidth
public void setTabStopWidth(Integer tabStopWidth)
Description copied from interface:JRParagraph
Sets the text own tab stop width.- Specified by:
setTabStopWidth
in interfaceJRParagraph
-
getTabStops
public TabStop[] getTabStops()
Description copied from interface:JRParagraph
Gets the custom tab stops.- Specified by:
getTabStops
in interfaceJRParagraph
-
getOwnTabStops
public TabStop[] getOwnTabStops()
Description copied from interface:JRParagraph
Gets the custom tab stops.- Specified by:
getOwnTabStops
in interfaceJRParagraph
-
addTabStop
public void addTabStop(TabStop tabStop)
- Specified by:
addTabStop
in interfaceJRParagraph
-
addTabStop
public void addTabStop(int index, TabStop tabStop)
- Specified by:
addTabStop
in interfaceJRParagraph
-
removeTabStop
public void removeTabStop(int index)
- Specified by:
removeTabStop
in interfaceJRParagraph
-
removeTabStop
public void removeTabStop(TabStop tabStop)
- Specified by:
removeTabStop
in interfaceJRParagraph
-
-