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 |
static String |
PROPERTY_SCALE_FONT_STEP_LIMIT |
band, conditionalStylesContainer, currentEvaluation, currentStyle, defaultStyleProvider, delayedEvaluationsMap, dynamicProperties, dynamicTransferProperties, elementGroup, EXCEPTION_MESSAGE_KEY_INVALID_BOOKMARK_LEVEL, expressionEvaluator, fillContainerContext, filler, initStyle, mergedProperties, originProvider, parent, printElementOriginator, printWhenGroupChanges, propertyExpressions, providerStyle, staticProperties, styleProviders, templates
PROPERTY_PRINT_KEEP_FULL_TEXT, PROPERTY_SAVE_LINE_BREAKS, PROPERTY_TRUNCATE_AT_CHAR, PROPERTY_TRUNCATE_SUFFIX
DEFAULT_FONT_NAME, DEFAULT_FONT_SIZE, DEFAULT_PDF_EMBEDDED, DEFAULT_PDF_ENCODING, DEFAULT_PDF_FONT_NAME
MARKUP_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() |
HorizontalTextAlignEnum |
getHorizontalTextAlign()
Gets the text horizontal alignment.
|
protected float |
getLeadingOffset() |
JRLineBox |
getLineBox() |
protected short[] |
getLineBreakOffsets() |
protected float |
getLineSpacingFactor() |
String |
getMarkup()
Returns the text markup.
|
protected MarkupProcessor |
getMarkupProcessor(String markup) |
ModeEnum |
getModeValue()
Returns the element transparency mode.
|
String |
getOwnFontName() |
Float |
getOwnFontsize() |
HorizontalTextAlignEnum |
getOwnHorizontalTextAlign() |
String |
getOwnMarkup() |
String |
getOwnPdfEncoding() |
String |
getOwnPdfFontName() |
RotationEnum |
getOwnRotationValue()
Gets the text own rotation.
|
VerticalTextAlignEnum |
getOwnVerticalTextAlign() |
JRParagraph |
getParagraph() |
String |
getPdfEncoding() |
String |
getPdfFontName() |
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() |
protected int |
getTextEnd() |
protected float |
getTextHeight() |
protected int |
getTextStart() |
String |
getTextString() |
protected String |
getTextTruncateSuffix() |
float |
getTextWidth() |
VerticalTextAlignEnum |
getVerticalTextAlign()
Gets the text vertical alignment.
|
boolean |
isBold() |
protected boolean |
isConsumeSpaceOnOverflow() |
protected boolean |
isCutParagraphToContinueInOverflow() |
boolean |
isItalic() |
Boolean |
isOwnBold() |
Boolean |
isOwnItalic() |
Boolean |
isOwnPdfEmbedded() |
Boolean |
isOwnStrikeThrough() |
Boolean |
isOwnUnderline() |
boolean |
isPdfEmbedded() |
boolean |
isStrikeThrough() |
boolean |
isUnderline() |
protected boolean |
keepFullText() |
protected boolean |
prepare(int availableHeight,
boolean isOverflow) |
protected String |
processMarkupText(String text) |
void |
reset() |
protected void |
resetTextChunk() |
void |
rewind() |
protected float |
scaleFontStepLimit() |
protected abstract boolean |
scaleFontToFit() |
void |
setBold(boolean isBold)
Deprecated.
Replaced by
setBold(Boolean) . |
void |
setBold(Boolean isBold)
Alternative setBold method which allows also to reset
the "own" isBold property.
|
protected void |
setCutParagraphToContinueInOverflow(boolean isCutParagraphToContinueInOverflow) |
void |
setFontName(String fontName) |
void |
setFontSize(Float size) |
void |
setHeight(int height) |
void |
setHorizontalTextAlign(HorizontalTextAlignEnum horizontalAlignment)
Sets the text horizontal alignment.
|
void |
setItalic(boolean isItalic)
Deprecated.
Replaced by
setItalic(Boolean) . |
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) |
protected void |
setLineSpacingFactor(float lineSpacingFactor) |
void |
setMarkup(String markup) |
void |
setPdfEmbedded(boolean isPdfEmbedded)
Deprecated.
Replaced by
setPdfEmbedded(Boolean) . |
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)
Deprecated.
Replaced by
setStrikeThrough(Boolean) . |
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)
Deprecated.
Replaced by
setUnderline(Boolean) . |
void |
setUnderline(Boolean isUnderline)
Alternative setUnderline method which allows also to reset
the "own" isUnderline property.
|
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, getBookmarkLevel, 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, getTimeZone, 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, 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, transferProperties
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clone, collectExpressions, getElementGroup, getKey, getPositionTypeValue, getPrintWhenExpression, getPrintWhenGroupChanges, getPropertyExpressions, getStretchTypeValue, getX, getY, isPrintInFirstWholeBand, isPrintRepeatedValues, isPrintWhenDetailOverflows, isRemoveLineWhenBlank, setPositionType, setPrintInFirstWholeBand, setPrintRepeatedValues, setPrintWhenDetailOverflows, setRemoveLineWhenBlank, setStretchType, setX
visit
clone
getParentProperties, getPropertiesMap, hasProperties
getUUID
getBackcolor, getForecolor, getHeight, getOwnBackcolor, getOwnForecolor, getOwnModeValue, getWidth, setBackcolor, setForecolor, setMode
getDefaultStyleProvider, getStyle, getStyleNameReference
createClone
public static final String EXCEPTION_MESSAGE_KEY_MISSING_MARKUP_PROCESSOR_FACTORY
public static final String EXCEPTION_MESSAGE_KEY_INVALID_START_INDEX
public static final String PROPERTY_CONSUME_SPACE_ON_OVERFLOW
public static final String PROPERTY_SCALE_FONT_STEP_LIMIT
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 JRFillElement
JRException
public ModeEnum getModeValue()
JRCommonElement
getModeValue
in interface JRCommonElement
getModeValue
in class JRFillElement
public HorizontalTextAlignEnum getHorizontalTextAlign()
JRTextAlignment
getHorizontalTextAlign
in interface JRTextAlignment
HorizontalTextAlignEnum
public HorizontalTextAlignEnum getOwnHorizontalTextAlign()
getOwnHorizontalTextAlign
in interface JRTextAlignment
public void setHorizontalTextAlign(HorizontalTextAlignEnum horizontalAlignment)
JRTextAlignment
setHorizontalTextAlign
in interface JRTextAlignment
horizontalAlignment
- a value representing one of the horizontal text alignment constants in HorizontalTextAlignEnum
public VerticalTextAlignEnum getVerticalTextAlign()
JRTextAlignment
getVerticalTextAlign
in interface JRTextAlignment
VerticalTextAlignEnum
public VerticalTextAlignEnum getOwnVerticalTextAlign()
getOwnVerticalTextAlign
in interface JRTextAlignment
public void setVerticalTextAlign(VerticalTextAlignEnum verticalAlignment)
JRTextAlignment
setVerticalTextAlign
in interface JRTextAlignment
verticalAlignment
- a value representing one of the vertical text alignment constants in VerticalTextAlignEnum
public RotationEnum getRotationValue()
JRCommonText
getRotationValue
in interface JRCommonText
RotationEnum
public RotationEnum getOwnRotationValue()
JRCommonText
getOwnRotationValue
in interface JRCommonText
RotationEnum
public void setRotation(RotationEnum rotation)
JRCommonText
setRotation
in interface JRCommonText
rotation
- a value representing one of the text rotation constants in RotationEnum
public String getMarkup()
JRCommonText
getMarkup
in interface JRCommonText
public String getOwnMarkup()
getOwnMarkup
in interface JRCommonText
public void setMarkup(String markup)
setMarkup
in interface JRCommonText
protected JRLineBox getPrintLineBox()
public JRLineBox getLineBox()
getLineBox
in interface JRBoxContainer
protected JRParagraph getPrintParagraph()
public JRParagraph getParagraph()
getParagraph
in interface JRParagraphContainer
public 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 boolean isCutParagraphToContinueInOverflow()
protected void setCutParagraphToContinueInOverflow(boolean isCutParagraphToContinueInOverflow)
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 JRFillElement
public void rewind()
rewind
in class JRFillElement
protected JRStyledText getStyledText()
protected JRStyledText getProcessedStyledText()
public String getTextString()
protected boolean prepare(int availableHeight, boolean isOverflow) throws JRException
prepare
in class JRFillElement
JRException
protected void chopTextElement(int availableStretchHeight)
protected boolean isConsumeSpaceOnOverflow()
protected abstract boolean canOverflow()
protected abstract boolean scaleFontToFit()
public String getFontName()
getFontName
in interface JRFont
public String getOwnFontName()
getOwnFontName
in interface JRFont
public void setFontName(String fontName)
setFontName
in interface JRFont
public void setBold(boolean isBold)
setBold(Boolean)
.public void setBold(Boolean isBold)
public Boolean isOwnItalic()
isOwnItalic
in interface JRFont
public void setItalic(boolean isItalic)
setItalic(Boolean)
.public void setItalic(Boolean isItalic)
public boolean isUnderline()
isUnderline
in interface JRFont
public Boolean isOwnUnderline()
isOwnUnderline
in interface JRFont
public void setUnderline(boolean isUnderline)
setUnderline(Boolean)
.setUnderline
in interface JRFont
public void setUnderline(Boolean isUnderline)
setUnderline
in interface JRFont
public boolean isStrikeThrough()
isStrikeThrough
in interface JRFont
public Boolean isOwnStrikeThrough()
isOwnStrikeThrough
in interface JRFont
public void setStrikeThrough(boolean isStrikeThrough)
setStrikeThrough(Boolean)
.setStrikeThrough
in interface JRFont
public void setStrikeThrough(Boolean isStrikeThrough)
setStrikeThrough
in interface JRFont
public float getFontsize()
getFontsize
in interface JRCommonText
getFontsize
in interface JRFont
public Float getOwnFontsize()
getOwnFontsize
in interface JRFont
public void setFontSize(Float size)
setFontSize
in interface JRFont
public String getPdfFontName()
getPdfFontName
in interface JRFont
public String getOwnPdfFontName()
getOwnPdfFontName
in interface JRFont
public void setPdfFontName(String pdfFontName)
setPdfFontName
in interface JRFont
public String getPdfEncoding()
getPdfEncoding
in interface JRFont
public String getOwnPdfEncoding()
getOwnPdfEncoding
in interface JRFont
public void setPdfEncoding(String pdfEncoding)
setPdfEncoding
in interface JRFont
public boolean isPdfEmbedded()
isPdfEmbedded
in interface JRFont
public Boolean isOwnPdfEmbedded()
isOwnPdfEmbedded
in interface JRFont
public void setPdfEmbedded(boolean isPdfEmbedded)
setPdfEmbedded(Boolean)
.setPdfEmbedded
in interface JRFont
public void setPdfEmbedded(Boolean isPdfEmbedded)
setPdfEmbedded
in interface JRFont
public Color getDefaultLineColor()
getDefaultLineColor
in interface JRBoxContainer
public void setHeight(int height)
setHeight
in class JRFillElement
public void setWidth(int width)
setWidth
in interface JRElement
setWidth
in class JRFillElement
protected MarkupProcessor getMarkupProcessor(String markup)
protected void setPrintText(JRPrintText printText)
protected boolean keepFullText()
protected float scaleFontStepLimit()
protected void setPrintText(JRPrintText printText, String text)
protected String getTextTruncateSuffix()
protected void setTextTruncateSuffix(String textTruncateSuffix)
Copyright © 2021 TIBCO Software Inc.. All rights reserved.