public class JRBaseParagraph extends Object implements JRParagraph, Serializable, Cloneable, JRChangeEventsSupport, Deduplicable
| Modifier and Type | Field and Description |
|---|---|
protected Integer |
firstLineIndent |
protected Integer |
leftIndent |
protected LineSpacingEnum |
lineSpacing |
protected Float |
lineSpacingSize |
protected JRParagraphContainer |
paragraphContainer |
static String |
PROPERTY_FIRST_LINE_INDENT |
static String |
PROPERTY_LEFT_INDENT |
static String |
PROPERTY_LINE_SPACING |
static String |
PROPERTY_LINE_SPACING_SIZE |
static String |
PROPERTY_RIGHT_INDENT |
static String |
PROPERTY_SPACING_AFTER |
static String |
PROPERTY_SPACING_BEFORE |
static String |
PROPERTY_TAB_STOP_WIDTH |
static String |
PROPERTY_TAB_STOPS |
protected Integer |
rightIndent |
protected Integer |
spacingAfter |
protected Integer |
spacingBefore |
protected List<TabStop> |
tabStops |
protected Integer |
tabStopWidth |
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 and Description |
|---|
JRBaseParagraph(JRParagraphContainer paragraphContainer) |
| Modifier and Type | Method and Description |
|---|---|
void |
addTabStop(int index,
TabStop tabStop) |
void |
addTabStop(TabStop tabStop) |
JRParagraph |
clone(JRParagraphContainer paragraphContainer) |
JRDefaultStyleProvider |
getDefaultStyleProvider() |
JRPropertyChangeSupport |
getEventSupport()
Returns the property change support object for this instance.
|
Integer |
getFirstLineIndent()
Gets the text first line indent.
|
int |
getHashCode()
Returns a hash code to be used for the deduplicate map.
|
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()
Returns this object's style.
|
String |
getStyleNameReference()
Returns the name of an external style which is to be used by this object.
|
protected StyleResolver |
getStyleResolver() |
TabStop[] |
getTabStops()
Gets the custom tab stops.
|
Integer |
getTabStopWidth()
Gets the text tab stop width.
|
boolean |
isIdentical(Object object)
Determines if this instance is identical to another object.
|
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.
|
public static final String PROPERTY_LINE_SPACING
public static final String PROPERTY_LINE_SPACING_SIZE
public static final String PROPERTY_FIRST_LINE_INDENT
public static final String PROPERTY_LEFT_INDENT
public static final String PROPERTY_RIGHT_INDENT
public static final String PROPERTY_SPACING_BEFORE
public static final String PROPERTY_SPACING_AFTER
public static final String PROPERTY_TAB_STOP_WIDTH
public static final String PROPERTY_TAB_STOPS
protected JRParagraphContainer paragraphContainer
protected LineSpacingEnum lineSpacing
protected Float lineSpacingSize
protected Integer firstLineIndent
protected Integer leftIndent
protected Integer rightIndent
protected Integer spacingBefore
protected Integer spacingAfter
protected Integer tabStopWidth
public JRBaseParagraph(JRParagraphContainer paragraphContainer)
public JRDefaultStyleProvider getDefaultStyleProvider()
getDefaultStyleProvider in interface JRStyleContainerprotected StyleResolver getStyleResolver()
public JRStyle getStyle()
JRStyleContainergetStyle in interface JRStyleContainerpublic String getStyleNameReference()
JRStyleContainertemplates and are resolved
at fill time.
This attribute is only effective if no direct style (as returned by getStyle()
is specified for this object.getStyleNameReference in interface JRStyleContainerpublic JRParagraphContainer getParagraphContainer()
JRParagraphgetParagraphContainer in interface JRParagraphLineSpacingEnumpublic LineSpacingEnum getLineSpacing()
JRParagraphgetLineSpacing in interface JRParagraphLineSpacingEnumpublic LineSpacingEnum getOwnLineSpacing()
JRParagraphgetOwnLineSpacing in interface JRParagraphLineSpacingEnumpublic void setLineSpacing(LineSpacingEnum lineSpacing)
JRParagraphsetLineSpacing in interface JRParagraphlineSpacing - a value representing one of the line spacing constants in LineSpacingEnumpublic Float getLineSpacingSize()
JRParagraphgetLineSpacingSize in interface JRParagraphpublic Float getOwnLineSpacingSize()
JRParagraphgetOwnLineSpacingSize in interface JRParagraphpublic void setLineSpacingSize(Float lineSpacingSize)
JRParagraphsetLineSpacingSize in interface JRParagraphpublic Integer getFirstLineIndent()
JRParagraphgetFirstLineIndent in interface JRParagraphpublic Integer getOwnFirstLineIndent()
JRParagraphgetOwnFirstLineIndent in interface JRParagraphpublic void setFirstLineIndent(Integer firstLineIndent)
JRParagraphsetFirstLineIndent in interface JRParagraphpublic Integer getLeftIndent()
JRParagraphgetLeftIndent in interface JRParagraphpublic Integer getOwnLeftIndent()
JRParagraphgetOwnLeftIndent in interface JRParagraphpublic void setLeftIndent(Integer leftIndent)
JRParagraphsetLeftIndent in interface JRParagraphpublic Integer getRightIndent()
JRParagraphgetRightIndent in interface JRParagraphpublic Integer getOwnRightIndent()
JRParagraphgetOwnRightIndent in interface JRParagraphpublic void setRightIndent(Integer rightIndent)
JRParagraphsetRightIndent in interface JRParagraphpublic Integer getSpacingBefore()
JRParagraphgetSpacingBefore in interface JRParagraphpublic Integer getOwnSpacingBefore()
JRParagraphgetOwnSpacingBefore in interface JRParagraphpublic void setSpacingBefore(Integer spacingBefore)
JRParagraphsetSpacingBefore in interface JRParagraphpublic Integer getSpacingAfter()
JRParagraphgetSpacingAfter in interface JRParagraphpublic Integer getOwnSpacingAfter()
JRParagraphgetOwnSpacingAfter in interface JRParagraphpublic void setSpacingAfter(Integer spacingAfter)
JRParagraphsetSpacingAfter in interface JRParagraphpublic Integer getTabStopWidth()
JRParagraphgetTabStopWidth in interface JRParagraphpublic Integer getOwnTabStopWidth()
JRParagraphgetOwnTabStopWidth in interface JRParagraphpublic void setTabStopWidth(Integer tabStopWidth)
JRParagraphsetTabStopWidth in interface JRParagraphpublic TabStop[] getTabStops()
JRParagraphgetTabStops in interface JRParagraphpublic TabStop[] getOwnTabStops()
JRParagraphgetOwnTabStops in interface JRParagraphpublic void addTabStop(TabStop tabStop)
addTabStop in interface JRParagraphpublic void addTabStop(int index,
TabStop tabStop)
addTabStop in interface JRParagraphpublic void removeTabStop(TabStop tabStop)
removeTabStop in interface JRParagraphpublic void removeTabStop(int index)
removeTabStop in interface JRParagraphpublic JRParagraph clone(JRParagraphContainer paragraphContainer)
clone in interface JRParagraphpublic JRPropertyChangeSupport getEventSupport()
JRChangeEventsSupportgetEventSupport in interface JRChangeEventsSupportpublic int getHashCode()
DeduplicableDeduplicable.isIdentical(Object),
i.e. if two objects are identical they should have the same hash code.getHashCode in interface Deduplicablepublic boolean isIdentical(Object object)
DeduplicableisIdentical in interface Deduplicableobject - the object to compare with this instancetrue if the two objects are identical and can be deduplicatedCopyright © 2017. All rights reserved.