public abstract class JRFillTextElement extends JRFillElement implements JRTextElement
| Modifier and Type | Field and Description |
|---|---|
static String |
EXCEPTION_MESSAGE_KEY_INVALID_START_INDEX |
static String |
EXCEPTION_MESSAGE_KEY_MISSING_MARKUP_PROCESSOR_FACTORY |
protected JRLineBox |
initLineBox |
protected JRParagraph |
initParagraph |
protected JRLineBox |
lineBox |
protected JRParagraph |
paragraph |
static String |
PROPERTY_CONSUME_SPACE_ON_OVERFLOW |
band, conditionalStylesContainer, currentEvaluation, currentStyle, defaultStyleProvider, delayedEvaluationsMap, dynamicProperties, dynamicTransferProperties, elementGroup, expressionEvaluator, fillContainerContext, filler, initStyle, mergedProperties, originProvider, parent, printElementOriginator, printWhenGroupChanges, propertyExpressions, providerStyle, staticProperties, styleProviders, templatesPROPERTY_PRINT_KEEP_FULL_TEXT, PROPERTY_SAVE_LINE_BREAKS, PROPERTY_TRUNCATE_AT_CHAR, PROPERTY_TRUNCATE_SUFFIXDEFAULT_FONT_NAME, DEFAULT_FONT_SIZE, DEFAULT_PDF_EMBEDDED, DEFAULT_PDF_ENCODING, DEFAULT_PDF_FONT_NAMEMARKUP_HTML, MARKUP_NONE, MARKUP_RTF, MARKUP_STYLED_TEXT| Modifier | Constructor and Description |
|---|---|
protected |
JRFillTextElement(JRBaseFiller filler,
JRTextElement textElement,
JRFillObjectFactory factory) |
protected |
JRFillTextElement(JRFillTextElement textElement,
JRFillCloneFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract boolean |
canOverflow() |
protected void |
chopTextElement(int availableStretchHeight) |
protected void |
ensureTextMeasurer() |
protected void |
evaluateStyle(byte evaluation) |
Color |
getDefaultLineColor() |
JRFont |
getFont()
Deprecated.
|
String |
getFontName() |
float |
getFontsize() |
int |
getFontSize()
Deprecated.
Replaced by
getFontsize(). |
HorizontalAlignEnum |
getHorizontalAlignmentValue()
Deprecated.
Replaced by
getHorizontalTextAlign(). |
HorizontalTextAlignEnum |
getHorizontalTextAlign()
Gets the text horizontal alignment.
|
protected float |
getLeadingOffset() |
JRLineBox |
getLineBox() |
protected short[] |
getLineBreakOffsets() |
protected float |
getLineSpacingFactor() |
LineSpacingEnum |
getLineSpacingValue()
Deprecated.
Replaced by
JRParagraph.getLineSpacing(). |
String |
getMarkup()
Returns the text markup.
|
protected MarkupProcessor |
getMarkupProcessor(String markup) |
ModeEnum |
getModeValue()
Returns the element transparency mode.
|
String |
getOwnFontName() |
Float |
getOwnFontsize() |
Integer |
getOwnFontSize()
Deprecated.
Replaced by
getOwnFontsize(). |
HorizontalAlignEnum |
getOwnHorizontalAlignmentValue()
Deprecated.
Replaced by
getOwnHorizontalTextAlign(). |
HorizontalTextAlignEnum |
getOwnHorizontalTextAlign() |
LineSpacingEnum |
getOwnLineSpacingValue()
Deprecated.
Replaced by
JRParagraph.getOwnLineSpacing(). |
String |
getOwnMarkup() |
String |
getOwnPdfEncoding() |
String |
getOwnPdfFontName() |
RotationEnum |
getOwnRotationValue()
Gets the text own rotation.
|
VerticalAlignEnum |
getOwnVerticalAlignmentValue()
Deprecated.
Replaced by
getOwnVerticalTextAlign(). |
VerticalTextAlignEnum |
getOwnVerticalTextAlign() |
JRParagraph |
getParagraph() |
String |
getPdfEncoding() |
String |
getPdfFontName() |
int |
getPrintElementHeight() |
protected JRLineBox |
getPrintLineBox() |
protected JRParagraph |
getPrintParagraph() |
protected JRStyledText |
getProcessedStyledText() |
protected String |
getRawText() |
RotationEnum |
getRotationValue()
Gets the text rotation.
|
RunDirectionEnum |
getRunDirectionValue() |
protected JRStyledText |
getStyledText() |
protected Map<AttributedCharacterIterator.Attribute,Object> |
getStyledTextAttributes() |
String |
getText() |
protected int |
getTextEnd() |
protected float |
getTextHeight() |
protected int |
getTextStart() |
protected String |
getTextTruncateSuffix() |
float |
getTextWidth() |
VerticalAlignEnum |
getVerticalAlignmentValue()
Deprecated.
Replaced by
getVerticalTextAlign(). |
VerticalTextAlignEnum |
getVerticalTextAlign()
Gets the text vertical alignment.
|
boolean |
isBold() |
boolean |
isItalic() |
Boolean |
isOwnBold() |
Boolean |
isOwnItalic() |
Boolean |
isOwnPdfEmbedded() |
Boolean |
isOwnStrikeThrough() |
Boolean |
isOwnUnderline() |
boolean |
isPdfEmbedded() |
boolean |
isStrikeThrough() |
boolean |
isUnderline() |
protected boolean |
keepFullText() |
protected String |
processMarkupText(String text) |
void |
reset() |
protected void |
resetTextChunk() |
void |
rewind() |
void |
setBold(boolean isBold) |
void |
setBold(Boolean isBold)
Alternative setBold method which allows also to reset
the "own" isBold property.
|
void |
setFontName(String fontName) |
void |
setFontSize(Float size) |
void |
setFontSize(int size)
Deprecated.
Replaced by
setFontSize(Float). |
void |
setFontSize(Integer size)
Deprecated.
Replaced by
setFontSize(Float). |
void |
setHeight(int height) |
void |
setHorizontalAlignment(HorizontalAlignEnum horizontalAlignmentValue)
Deprecated.
Replaced by
setHorizontalTextAlign(HorizontalTextAlignEnum). |
void |
setHorizontalTextAlign(HorizontalTextAlignEnum horizontalAlignment)
Sets the text horizontal alignment.
|
void |
setItalic(boolean isItalic) |
void |
setItalic(Boolean isItalic)
Alternative setItalic method which allows also to reset
the "own" isItalic property.
|
protected void |
setLeadingOffset(float leadingOffset) |
protected void |
setLineBreakOffsets(short[] lineBreakOffsets) |
void |
setLineSpacing(LineSpacingEnum lineSpacing)
Deprecated.
Replaced by
JRParagraph.setLineSpacing(LineSpacingEnum). |
protected void |
setLineSpacingFactor(float lineSpacingFactor) |
void |
setMarkup(String markup) |
void |
setPdfEmbedded(boolean isPdfEmbedded) |
void |
setPdfEmbedded(Boolean isPdfEmbedded)
Alternative setPdfEmbedded method which allows also to reset
the "own" isPdfEmbedded property.
|
void |
setPdfEncoding(String pdfEncoding) |
void |
setPdfFontName(String pdfFontName) |
protected void |
setPrintText(JRPrintText printText) |
protected void |
setPrintText(JRPrintText printText,
String text) |
protected void |
setRawText(String rawText) |
void |
setRotation(RotationEnum rotation)
Sets the text rotation.
|
void |
setStrikeThrough(boolean isStrikeThrough) |
void |
setStrikeThrough(Boolean isStrikeThrough)
Alternative setStrikeThrough method which allows also to reset
the "own" isStrikeThrough property.
|
protected void |
setTextEnd(int textEnd) |
protected void |
setTextHeight(float textHeight) |
protected void |
setTextStart(int textStart) |
protected void |
setTextTruncateSuffix(String textTruncateSuffix) |
protected void |
setTextWidth(float textWidth) |
void |
setUnderline(boolean isUnderline) |
void |
setUnderline(Boolean isUnderline)
Alternative setUnderline method which allows also to reset
the "own" isUnderline property.
|
void |
setVerticalAlignment(VerticalAlignEnum verticalAlignmentValue)
Deprecated.
Replaced by
setVerticalTextAlign(VerticalTextAlignEnum). |
void |
setVerticalTextAlign(VerticalTextAlignEnum verticalAlignment)
Gets the text vertical alignment.
|
void |
setWidth(int width) |
_moveDependantElements, _stretchElement, _stretchElementToHeight, addDependantElement, addDynamicProperty, clone, clone, clone, collectDelayedEvaluations, collectDelayedEvaluations, collectDelayedEvaluations, collectStyleDelayedEvaluations, collectStyleProviderDelayedEvaluations, createElementTemplate, delayedEvaluate, delayedEvaluationUpdatesTemplate, evaluate, evaluateExpression, evaluatePrintWhenExpression, evaluateProperties, fill, getBackcolor, getBand, getCollapsedHeightAbove, getCollapsedHeightBelow, getConditionalStylesContainer, getDefaultStyleProvider, getDependantElements, getDynamicProperties, getElementGroup, getElementOrigin, getElementTemplate, getEvaluatedProperties, getEvaluationTimeValue, getField, getFiller, getForecolor, getGroupElements, getHeight, getInitStyle, getKey, getOwnBackcolor, getOwnForecolor, getOwnModeValue, getParent, getParentProperties, getPositionTypeValue, getPrepareHeight, getPrintWhenExpression, getPrintWhenGroupChanges, getPropertiesMap, getPropertyExpressions, getRelativeY, getStretchHeight, getStretchTypeValue, getStyle, getStyleNameReference, getStyleResolver, getTemplate, getUUID, getVariable, getWidth, getX, getY, hasDynamicProperties, hasDynamicProperty, hasProperties, initDelayedEvaluationPrint, initDelayedEvaluations, initStyleProviders, isAlreadyPrinted, isAutoEvaluateNow, isDelayedStyleEvaluation, isEvaluateAuto, isEvaluateNow, isPrintInFirstWholeBand, isPrintRepeatedValues, isPrintWhenDetailOverflows, isPrintWhenExpressionNull, isPrintWhenTrue, isRemoveLineWhenBlank, isReprinted, isToPrint, isValueRepeating, moveDependantElements, performDelayedEvaluation, prepare, registerTemplate, resolveElement, resolveElement, setAlreadyPrinted, setBackcolor, setBand, setCollapsedHeightAbove, setCollapsedHeightBelow, setConditionalStylesContainer, setCurrentEvaluation, setExpressionEvaluator, setForecolor, setMode, setOriginProvider, setPositionType, setPrepareHeight, setPrintInFirstWholeBand, setPrintRepeatedValues, setPrintWhenDetailOverflows, setPrintWhenExpressionNull, setPrintWhenTrue, setRelativeY, setRemoveLineWhenBlank, setReprinted, setShrinkable, setStretchHeight, setStretchType, setStyle, setStyleNameReference, setToPrint, setValueRepeating, setX, setY, stretchElement, stretchElementToContainer, stretchElementToElementGroup, stretchElementToHeight, stretchHeightFinal, transferProperties, transferPropertiesequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclone, collectExpressions, getElementGroup, getKey, getPositionTypeValue, getPrintWhenExpression, getPrintWhenGroupChanges, getPropertyExpressions, getStretchTypeValue, getX, getY, isPrintInFirstWholeBand, isPrintRepeatedValues, isPrintWhenDetailOverflows, isRemoveLineWhenBlank, setPositionType, setPrintInFirstWholeBand, setPrintRepeatedValues, setPrintWhenDetailOverflows, setRemoveLineWhenBlank, setStretchType, setXvisitclonegetParentProperties, getPropertiesMap, hasPropertiesgetUUIDgetBackcolor, getForecolor, getHeight, getOwnBackcolor, getOwnForecolor, getOwnModeValue, getWidth, setBackcolor, setForecolor, setModegetDefaultStyleProvider, getStyle, getStyleNameReferencecreateClonepublic static final String PROPERTY_CONSUME_SPACE_ON_OVERFLOW
public static final String EXCEPTION_MESSAGE_KEY_MISSING_MARKUP_PROCESSOR_FACTORY
public static final String EXCEPTION_MESSAGE_KEY_INVALID_START_INDEX
protected final JRLineBox initLineBox
protected final JRParagraph initParagraph
protected JRLineBox lineBox
protected JRParagraph paragraph
protected JRFillTextElement(JRBaseFiller filler, JRTextElement textElement, JRFillObjectFactory factory)
protected JRFillTextElement(JRFillTextElement textElement, JRFillCloneFactory factory)
protected void ensureTextMeasurer()
protected void evaluateStyle(byte evaluation)
throws JRException
evaluateStyle in class JRFillElementJRExceptionpublic ModeEnum getModeValue()
JRCommonElementgetModeValue in interface JRCommonElementgetModeValue in class JRFillElementpublic HorizontalAlignEnum getHorizontalAlignmentValue()
getHorizontalTextAlign().JRAlignmentgetHorizontalAlignmentValue in interface JRAlignmentHorizontalAlignEnumpublic HorizontalAlignEnum getOwnHorizontalAlignmentValue()
getOwnHorizontalTextAlign().getOwnHorizontalAlignmentValue in interface JRAlignmentpublic void setHorizontalAlignment(HorizontalAlignEnum horizontalAlignmentValue)
setHorizontalTextAlign(HorizontalTextAlignEnum).JRAlignmentsetHorizontalAlignment in interface JRAlignmenthorizontalAlignmentValue - a value representing one of the horizontal alignment constants in HorizontalAlignEnumpublic VerticalAlignEnum getVerticalAlignmentValue()
getVerticalTextAlign().JRAlignmentgetVerticalAlignmentValue in interface JRAlignmentVerticalAlignEnumpublic VerticalAlignEnum getOwnVerticalAlignmentValue()
getOwnVerticalTextAlign().getOwnVerticalAlignmentValue in interface JRAlignmentpublic void setVerticalAlignment(VerticalAlignEnum verticalAlignmentValue)
setVerticalTextAlign(VerticalTextAlignEnum).JRAlignmentsetVerticalAlignment in interface JRAlignmentverticalAlignmentValue - a value representing one of the vertical alignment constants in VerticalAlignEnumpublic HorizontalTextAlignEnum getHorizontalTextAlign()
JRTextAlignmentgetHorizontalTextAlign in interface JRTextAlignmentHorizontalTextAlignEnumpublic HorizontalTextAlignEnum getOwnHorizontalTextAlign()
getOwnHorizontalTextAlign in interface JRTextAlignmentpublic void setHorizontalTextAlign(HorizontalTextAlignEnum horizontalAlignment)
JRTextAlignmentsetHorizontalTextAlign in interface JRTextAlignmenthorizontalAlignment - a value representing one of the horizontal text alignment constants in HorizontalTextAlignEnumpublic VerticalTextAlignEnum getVerticalTextAlign()
JRTextAlignmentgetVerticalTextAlign in interface JRTextAlignmentVerticalTextAlignEnumpublic VerticalTextAlignEnum getOwnVerticalTextAlign()
getOwnVerticalTextAlign in interface JRTextAlignmentpublic void setVerticalTextAlign(VerticalTextAlignEnum verticalAlignment)
JRTextAlignmentsetVerticalTextAlign in interface JRTextAlignmentverticalAlignment - a value representing one of the vertical text alignment constants in VerticalTextAlignEnumpublic RotationEnum getRotationValue()
JRCommonTextgetRotationValue in interface JRCommonTextRotationEnumpublic RotationEnum getOwnRotationValue()
JRCommonTextgetOwnRotationValue in interface JRCommonTextRotationEnumpublic void setRotation(RotationEnum rotation)
JRCommonTextsetRotation in interface JRCommonTextrotation - a value representing one of the text rotation constants in RotationEnumpublic LineSpacingEnum getLineSpacingValue()
JRParagraph.getLineSpacing().getLineSpacingValue in interface JRCommonTextpublic LineSpacingEnum getOwnLineSpacingValue()
JRParagraph.getOwnLineSpacing().getOwnLineSpacingValue in interface JRCommonTextpublic void setLineSpacing(LineSpacingEnum lineSpacing)
JRParagraph.setLineSpacing(LineSpacingEnum).setLineSpacing in interface JRCommonTextpublic String getMarkup()
JRCommonTextgetMarkup in interface JRCommonTextpublic String getOwnMarkup()
getOwnMarkup in interface JRCommonTextpublic void setMarkup(String markup)
setMarkup in interface JRCommonTextprotected JRLineBox getPrintLineBox()
public JRLineBox getLineBox()
getLineBox in interface JRBoxContainerprotected JRParagraph getPrintParagraph()
public JRParagraph getParagraph()
getParagraph in interface JRParagraphContainerpublic JRFont getFont()
protected Map<AttributedCharacterIterator.Attribute,Object> getStyledTextAttributes()
protected float getLineSpacingFactor()
protected void setLineSpacingFactor(float lineSpacingFactor)
protected float getLeadingOffset()
protected void setLeadingOffset(float leadingOffset)
public RunDirectionEnum getRunDirectionValue()
public float getTextWidth()
protected void setTextWidth(float textWidth)
protected float getTextHeight()
protected void setTextHeight(float textHeight)
protected int getTextStart()
protected void setTextStart(int textStart)
protected int getTextEnd()
protected void setTextEnd(int textEnd)
protected short[] getLineBreakOffsets()
protected void setLineBreakOffsets(short[] lineBreakOffsets)
protected void resetTextChunk()
protected String getRawText()
protected void setRawText(String rawText)
public void reset()
reset in class JRFillElementpublic void rewind()
rewind in class JRFillElementprotected JRStyledText getStyledText()
protected JRStyledText getProcessedStyledText()
public String getText()
protected void chopTextElement(int availableStretchHeight)
public int getPrintElementHeight()
protected abstract boolean canOverflow()
public String getFontName()
getFontName in interface JRFontpublic String getOwnFontName()
getOwnFontName in interface JRFontpublic void setFontName(String fontName)
setFontName in interface JRFontpublic void setBold(Boolean isBold)
public Boolean isOwnItalic()
isOwnItalic in interface JRFontpublic void setItalic(Boolean isItalic)
public boolean isUnderline()
isUnderline in interface JRFontpublic Boolean isOwnUnderline()
isOwnUnderline in interface JRFontpublic void setUnderline(boolean isUnderline)
setUnderline in interface JRFontpublic void setUnderline(Boolean isUnderline)
setUnderline in interface JRFontpublic boolean isStrikeThrough()
isStrikeThrough in interface JRFontpublic Boolean isOwnStrikeThrough()
isOwnStrikeThrough in interface JRFontpublic void setStrikeThrough(boolean isStrikeThrough)
setStrikeThrough in interface JRFontpublic void setStrikeThrough(Boolean isStrikeThrough)
setStrikeThrough in interface JRFontpublic float getFontsize()
getFontsize in interface JRCommonTextgetFontsize in interface JRFontpublic Float getOwnFontsize()
getOwnFontsize in interface JRFontpublic void setFontSize(Float size)
setFontSize in interface JRFontpublic int getFontSize()
getFontsize().getFontSize in interface JRCommonTextgetFontSize in interface JRFontpublic Integer getOwnFontSize()
getOwnFontsize().getOwnFontSize in interface JRFontpublic void setFontSize(int size)
setFontSize(Float).setFontSize in interface JRFontpublic void setFontSize(Integer size)
setFontSize(Float).setFontSize in interface JRFontpublic String getPdfFontName()
getPdfFontName in interface JRFontpublic String getOwnPdfFontName()
getOwnPdfFontName in interface JRFontpublic void setPdfFontName(String pdfFontName)
setPdfFontName in interface JRFontpublic String getPdfEncoding()
getPdfEncoding in interface JRFontpublic String getOwnPdfEncoding()
getOwnPdfEncoding in interface JRFontpublic void setPdfEncoding(String pdfEncoding)
setPdfEncoding in interface JRFontpublic boolean isPdfEmbedded()
isPdfEmbedded in interface JRFontpublic Boolean isOwnPdfEmbedded()
isOwnPdfEmbedded in interface JRFontpublic void setPdfEmbedded(boolean isPdfEmbedded)
setPdfEmbedded in interface JRFontpublic void setPdfEmbedded(Boolean isPdfEmbedded)
setPdfEmbedded in interface JRFontpublic Color getDefaultLineColor()
getDefaultLineColor in interface JRBoxContainerpublic void setHeight(int height)
setHeight in class JRFillElementpublic void setWidth(int width)
setWidth in interface JRElementsetWidth in class JRFillElementprotected MarkupProcessor getMarkupProcessor(String markup)
protected void setPrintText(JRPrintText printText)
protected boolean keepFullText()
protected void setPrintText(JRPrintText printText, String text)
protected String getTextTruncateSuffix()
protected void setTextTruncateSuffix(String textTruncateSuffix)
Copyright © 2017. All rights reserved.