Package net.sf.jasperreports.engine.base
Class JRBaseParagraph
java.lang.Object
net.sf.jasperreports.engine.base.JRBaseParagraph
- All Implemented Interfaces:
Serializable
,Cloneable
,Deduplicable
,JRChangeEventsSupport
,JRParagraph
,JRStyleContainer
public class JRBaseParagraph
extends Object
implements JRParagraph, Serializable, Cloneable, JRChangeEventsSupport, Deduplicable
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Integer
protected Integer
protected LineSpacingEnum
protected Float
protected JRParagraphContainer
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
protected Integer
protected Integer
protected Integer
protected Integer
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 -
Method Summary
Modifier and TypeMethodDescriptionvoid
addTabStop
(int index, TabStop tabStop) void
addTabStop
(TabStop tabStop) clone
(JRParagraphContainer paragraphContainer) Returns the property change support object for this instance.Gets the text first line indent.int
Returns a hash code to be used for the deduplicate map.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.getStyle()
Returns this object's style.Returns the name of an external style which is to be used by this object.protected StyleResolver
TabStop[]
Gets the custom tab stops.Gets the text tab stop width.boolean
isIdentical
(Object object) Determines if this instance is identical to another object.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 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
-
Field Details
-
PROPERTY_LINE_SPACING
- See Also:
-
PROPERTY_LINE_SPACING_SIZE
- See Also:
-
PROPERTY_FIRST_LINE_INDENT
- See Also:
-
PROPERTY_LEFT_INDENT
- See Also:
-
PROPERTY_RIGHT_INDENT
- See Also:
-
PROPERTY_SPACING_BEFORE
- See Also:
-
PROPERTY_SPACING_AFTER
- See Also:
-
PROPERTY_TAB_STOP_WIDTH
- See Also:
-
PROPERTY_TAB_STOPS
- See Also:
-
paragraphContainer
-
lineSpacing
-
lineSpacingSize
-
firstLineIndent
-
leftIndent
-
rightIndent
-
spacingBefore
-
spacingAfter
-
tabStopWidth
-
tabStopsList
-
-
Constructor Details
-
JRBaseParagraph
-
-
Method Details
-
getDefaultStyleProvider
- Specified by:
getDefaultStyleProvider
in interfaceJRStyleContainer
-
getStyleResolver
-
getStyle
Description copied from interface:JRStyleContainer
Returns this object's style.- Specified by:
getStyle
in interfaceJRStyleContainer
- Returns:
- this object's style
-
getStyleNameReference
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
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
-
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
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
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
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
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
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
-
getFirstLineIndent
Description copied from interface:JRParagraph
Gets the text first line indent.- Specified by:
getFirstLineIndent
in interfaceJRParagraph
-
getOwnFirstLineIndent
Description copied from interface:JRParagraph
Gets the text own first line indent.- Specified by:
getOwnFirstLineIndent
in interfaceJRParagraph
-
setFirstLineIndent
Description copied from interface:JRParagraph
Sets the text own first line indent.- Specified by:
setFirstLineIndent
in interfaceJRParagraph
-
getLeftIndent
Description copied from interface:JRParagraph
Gets the text left indent.- Specified by:
getLeftIndent
in interfaceJRParagraph
-
getOwnLeftIndent
Description copied from interface:JRParagraph
Gets the text own left indent.- Specified by:
getOwnLeftIndent
in interfaceJRParagraph
-
setLeftIndent
Description copied from interface:JRParagraph
Sets the text own left indent.- Specified by:
setLeftIndent
in interfaceJRParagraph
-
getRightIndent
Description copied from interface:JRParagraph
Gets the text right indent.- Specified by:
getRightIndent
in interfaceJRParagraph
-
getOwnRightIndent
Description copied from interface:JRParagraph
Gets the text own right indent.- Specified by:
getOwnRightIndent
in interfaceJRParagraph
-
setRightIndent
Description copied from interface:JRParagraph
Sets the text own right indent.- Specified by:
setRightIndent
in interfaceJRParagraph
-
getSpacingBefore
Description copied from interface:JRParagraph
Gets the text spacing before.- Specified by:
getSpacingBefore
in interfaceJRParagraph
-
getOwnSpacingBefore
Description copied from interface:JRParagraph
Gets the text own spacing before.- Specified by:
getOwnSpacingBefore
in interfaceJRParagraph
-
setSpacingBefore
Description copied from interface:JRParagraph
Sets the text own spacing before.- Specified by:
setSpacingBefore
in interfaceJRParagraph
-
getSpacingAfter
Description copied from interface:JRParagraph
Gets the text spacing after.- Specified by:
getSpacingAfter
in interfaceJRParagraph
-
getOwnSpacingAfter
Description copied from interface:JRParagraph
Gets the text own spacing after.- Specified by:
getOwnSpacingAfter
in interfaceJRParagraph
-
setSpacingAfter
Description copied from interface:JRParagraph
Sets the text own spacing after.- Specified by:
setSpacingAfter
in interfaceJRParagraph
-
getTabStopWidth
Description copied from interface:JRParagraph
Gets the text tab stop width.- Specified by:
getTabStopWidth
in interfaceJRParagraph
-
getOwnTabStopWidth
Description copied from interface:JRParagraph
Gets the text own tab stop width.- Specified by:
getOwnTabStopWidth
in interfaceJRParagraph
-
setTabStopWidth
Description copied from interface:JRParagraph
Sets the text own tab stop width.- Specified by:
setTabStopWidth
in interfaceJRParagraph
-
getTabStops
Description copied from interface:JRParagraph
Gets the custom tab stops.- Specified by:
getTabStops
in interfaceJRParagraph
-
getOwnTabStops
Description copied from interface:JRParagraph
Gets the custom tab stops.- Specified by:
getOwnTabStops
in interfaceJRParagraph
-
addTabStop
- Specified by:
addTabStop
in interfaceJRParagraph
-
addTabStop
- Specified by:
addTabStop
in interfaceJRParagraph
-
removeTabStop
- Specified by:
removeTabStop
in interfaceJRParagraph
-
removeTabStop
public void removeTabStop(int index) - Specified by:
removeTabStop
in interfaceJRParagraph
-
clone
- Specified by:
clone
in interfaceJRParagraph
-
getEventSupport
Description copied from interface:JRChangeEventsSupport
Returns the property change support object for this instance.- Specified by:
getEventSupport
in interfaceJRChangeEventsSupport
- Returns:
- the property change support object for this instance
-
getHashCode
public int getHashCode()Description copied from interface:Deduplicable
Returns a hash code to be used for the deduplicate map. The returned hash code should be consitent wiwhDeduplicable.isIdentical(Object)
, i.e. if two objects are identical they should have the same hash code.- Specified by:
getHashCode
in interfaceDeduplicable
- Returns:
- deduplication hash code
-
isIdentical
Description copied from interface:Deduplicable
Determines if this instance is identical to another object.- Specified by:
isIdentical
in interfaceDeduplicable
- Parameters:
object
- the object to compare with this instance- Returns:
true
if the two objects are identical and can be deduplicated
-
populateStyle
public void populateStyle()- Specified by:
populateStyle
in interfaceJRParagraph
-