public abstract class JRFillTextElement extends JRFillElement implements JRTextElement
| Modifier and Type | Field and Description |
|---|---|
protected JRLineBox |
lineBox |
protected JRParagraph |
paragraph |
band, conditionalStylesContainer, currentEvaluation, currentStyle, defaultStyleProvider, delayedEvaluationsMap, dynamicProperties, elementGroup, elementId, expressionEvaluator, filler, initStyle, mergedProperties, originProvider, parent, printWhenGroupChanges, staticProperties, 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() |
java.awt.Color |
getDefaultLineColor() |
JRFont |
getFont()
Deprecated.
|
java.lang.String |
getFontName() |
int |
getFontSize() |
HorizontalAlignEnum |
getHorizontalAlignmentValue()
Gets the text horizontal alignment.
|
protected float |
getLeadingOffset()
Deprecated.
No longer used.
|
JRLineBox |
getLineBox() |
protected short[] |
getLineBreakOffsets() |
protected float |
getLineSpacingFactor()
Deprecated.
No longer used.
|
LineSpacingEnum |
getLineSpacingValue()
Deprecated.
Replaced by
JRParagraph.getLineSpacing(). |
java.lang.String |
getMarkup()
Returns the text markup.
|
protected static MarkupProcessor |
getMarkupProcessor(java.lang.String markup) |
ModeEnum |
getModeValue()
Returns the element transparency mode.
|
java.lang.String |
getOwnFontName() |
java.lang.Integer |
getOwnFontSize() |
HorizontalAlignEnum |
getOwnHorizontalAlignmentValue() |
LineSpacingEnum |
getOwnLineSpacingValue()
Deprecated.
Replaced by
JRParagraph.getOwnLineSpacing(). |
java.lang.String |
getOwnMarkup() |
java.lang.String |
getOwnPdfEncoding() |
java.lang.String |
getOwnPdfFontName() |
RotationEnum |
getOwnRotationValue()
Gets the text own rotation.
|
VerticalAlignEnum |
getOwnVerticalAlignmentValue() |
JRParagraph |
getParagraph() |
java.lang.String |
getPdfEncoding() |
java.lang.String |
getPdfFontName() |
protected java.lang.String |
getRawText() |
RotationEnum |
getRotationValue()
Gets the text rotation.
|
RunDirectionEnum |
getRunDirectionValue() |
protected JRStyledText |
getStyledText() |
protected java.util.Map<java.text.AttributedCharacterIterator.Attribute,java.lang.Object> |
getStyledTextAttributes() |
java.lang.String |
getText() |
protected int |
getTextEnd() |
protected float |
getTextHeight() |
protected int |
getTextStart() |
protected java.lang.String |
getTextTruncateSuffix() |
VerticalAlignEnum |
getVerticalAlignmentValue()
Gets the text vertical alignment.
|
boolean |
isBold() |
boolean |
isItalic() |
java.lang.Boolean |
isOwnBold() |
java.lang.Boolean |
isOwnItalic() |
java.lang.Boolean |
isOwnPdfEmbedded() |
java.lang.Boolean |
isOwnStrikeThrough() |
java.lang.Boolean |
isOwnUnderline() |
boolean |
isPdfEmbedded() |
boolean |
isStrikeThrough() |
boolean |
isUnderline() |
protected java.lang.String |
processMarkupText(java.lang.String text) |
protected void |
reset() |
protected void |
resetTextChunk() |
protected void |
rewind() |
void |
setBold(boolean isBold) |
void |
setBold(java.lang.Boolean isBold)
Alternative setBold method which allows also to reset
the "own" isBold property.
|
void |
setFontName(java.lang.String fontName) |
void |
setFontSize(int size) |
void |
setFontSize(java.lang.Integer size)
Alternative setSize method which allows also to reset
the "own" size property.
|
void |
setHeight(int height) |
void |
setHorizontalAlignment(HorizontalAlignEnum horizontalAlignment)
Sets the text horizontal alignment.
|
void |
setItalic(boolean isItalic) |
void |
setItalic(java.lang.Boolean isItalic)
Alternative setItalic method which allows also to reset
the "own" isItalic property.
|
protected void |
setLeadingOffset(float leadingOffset)
Deprecated.
No longer used.
|
protected void |
setLineBreakOffsets(short[] lineBreakOffsets) |
void |
setLineSpacing(LineSpacingEnum lineSpacing)
Deprecated.
Replaced by
JRParagraph.setLineSpacing(LineSpacingEnum). |
protected void |
setLineSpacingFactor(float lineSpacingFactor)
Deprecated.
No longer used.
|
void |
setMarkup(java.lang.String markup) |
void |
setPdfEmbedded(boolean isPdfEmbedded) |
void |
setPdfEmbedded(java.lang.Boolean isPdfEmbedded)
Alternative setPdfEmbedded method which allows also to reset
the "own" isPdfEmbedded property.
|
void |
setPdfEncoding(java.lang.String pdfEncoding) |
void |
setPdfFontName(java.lang.String pdfFontName) |
protected void |
setPrintText(JRPrintText printText) |
protected void |
setRawText(java.lang.String rawText) |
void |
setRotation(RotationEnum rotation)
Sets the text rotation.
|
void |
setStrikeThrough(boolean isStrikeThrough) |
void |
setStrikeThrough(java.lang.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(java.lang.String textTruncateSuffix) |
void |
setUnderline(boolean isUnderline) |
void |
setUnderline(java.lang.Boolean isUnderline)
Alternative setUnderline method which allows also to reset
the "own" isUnderline property.
|
void |
setVerticalAlignment(VerticalAlignEnum verticalAlignment)
Gets the text vertical alignment.
|
void |
setWidth(int width) |
addDependantElement, clone, clone, collectDelayedEvaluations, collectDelayedEvaluations, collectDelayedEvaluations, collectStyleDelayedEvaluations, createElementTemplate, delayedEvaluate, evaluate, evaluateExpression, evaluatePrintWhenExpression, evaluateProperties, fill, getBackcolor, getBand, getDefaultStyleProvider, getDependantElements, getElementGroup, getElementOrigin, getElementTemplate, getEvaluatedProperties, getEvaluationTimeValue, getField, getForecolor, getGroupElements, getHeight, getKey, getOwnBackcolor, getOwnForecolor, getOwnModeValue, getParentProperties, getPositionTypeValue, getPrintWhenExpression, getPrintWhenGroupChanges, getPropertiesMap, getPropertyExpressions, getRelativeY, getStretchHeight, getStretchTypeValue, getStyle, getStyleNameReference, getTemplate, getVariable, getWidth, getX, getY, hasProperties, initDelayedEvaluationPrint, initDelayedEvaluations, isAlreadyPrinted, isAutoEvaluateNow, isDelayedStyleEvaluation, isEvaluateAuto, isEvaluateNow, isPrintInFirstWholeBand, isPrintRepeatedValues, isPrintWhenDetailOverflows, isPrintWhenExpressionNull, isPrintWhenTrue, isRemoveLineWhenBlank, isReprinted, isToPrint, isValueRepeating, moveDependantElements, performDelayedEvaluation, prepare, registerTemplate, resolveElement, resolveElement, setAlreadyPrinted, setBackcolor, setBand, setConditionalStylesContainer, setCurrentEvaluation, setForecolor, setMode, setOriginProvider, setPositionType, setPrintInFirstWholeBand, setPrintRepeatedValues, setPrintWhenDetailOverflows, setPrintWhenExpressionNull, setPrintWhenTrue, setRelativeY, setRemoveLineWhenBlank, setReprinted, setShrinkable, setStretchHeight, setStretchType, setStyle, setStyleNameReference, setToPrint, setValueRepeating, setX, setY, stretchElement, stretchHeightFinal, transferProperties, transferPropertiesequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcollectExpressions, getElementGroup, getKey, getPositionTypeValue, getPrintWhenExpression, getPrintWhenGroupChanges, getPropertyExpressions, getStretchTypeValue, getX, getY, isPrintInFirstWholeBand, isPrintRepeatedValues, isPrintWhenDetailOverflows, isRemoveLineWhenBlank, setPositionType, setPrintInFirstWholeBand, setPrintRepeatedValues, setPrintWhenDetailOverflows, setRemoveLineWhenBlank, setStretchType, setXvisitclonegetParentProperties, getPropertiesMap, hasPropertiesgetBackcolor, getForecolor, getHeight, getOwnBackcolor, getOwnForecolor, getOwnModeValue, getWidth, setBackcolor, setForecolor, setModegetDefaultStyleProvider, getStyle, getStyleNameReferencecreateCloneprotected final JRLineBox lineBox
protected final JRParagraph paragraph
protected JRFillTextElement(JRBaseFiller filler, JRTextElement textElement, JRFillObjectFactory factory)
protected JRFillTextElement(JRFillTextElement textElement, JRFillCloneFactory factory)
protected void ensureTextMeasurer()
public ModeEnum getModeValue()
JRCommonElementgetModeValue in interface JRCommonElementgetModeValue in class JRFillElementpublic HorizontalAlignEnum getHorizontalAlignmentValue()
JRAlignmentgetHorizontalAlignmentValue in interface JRAlignmentHorizontalAlignEnumpublic HorizontalAlignEnum getOwnHorizontalAlignmentValue()
getOwnHorizontalAlignmentValue in interface JRAlignmentpublic void setHorizontalAlignment(HorizontalAlignEnum horizontalAlignment)
JRAlignmentsetHorizontalAlignment in interface JRAlignmenthorizontalAlignment - a value representing one of the horizontal alignment constants in HorizontalAlignEnumpublic VerticalAlignEnum getVerticalAlignmentValue()
JRAlignmentgetVerticalAlignmentValue in interface JRAlignmentVerticalAlignEnumpublic VerticalAlignEnum getOwnVerticalAlignmentValue()
getOwnVerticalAlignmentValue in interface JRAlignmentpublic void setVerticalAlignment(VerticalAlignEnum verticalAlignment)
JRAlignmentsetVerticalAlignment in interface JRAlignmentverticalAlignment - a value representing one of the vertical alignment constants in VerticalAlignEnumpublic 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 java.lang.String getMarkup()
JRCommonTextgetMarkup in interface JRCommonTextpublic java.lang.String getOwnMarkup()
getOwnMarkup in interface JRCommonTextpublic void setMarkup(java.lang.String markup)
setMarkup in interface JRCommonTextpublic JRLineBox getLineBox()
getLineBox in interface JRBoxContainerpublic JRParagraph getParagraph()
getParagraph in interface JRParagraphContainerpublic JRFont getFont()
protected java.util.Map<java.text.AttributedCharacterIterator.Attribute,java.lang.Object> getStyledTextAttributes()
protected float getLineSpacingFactor()
protected void setLineSpacingFactor(float lineSpacingFactor)
protected float getLeadingOffset()
protected void setLeadingOffset(float leadingOffset)
public RunDirectionEnum getRunDirectionValue()
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 java.lang.String getRawText()
protected void setRawText(java.lang.String rawText)
protected void reset()
reset in class JRFillElementprotected void rewind()
rewind in class JRFillElementprotected JRStyledText getStyledText()
public java.lang.String getText()
protected void chopTextElement(int availableStretchHeight)
protected abstract boolean canOverflow()
public java.lang.String getFontName()
getFontName in interface JRFontpublic java.lang.String getOwnFontName()
getOwnFontName in interface JRFontpublic void setFontName(java.lang.String fontName)
setFontName in interface JRFontpublic void setBold(java.lang.Boolean isBold)
public java.lang.Boolean isOwnItalic()
isOwnItalic in interface JRFontpublic void setItalic(java.lang.Boolean isItalic)
public boolean isUnderline()
isUnderline in interface JRFontpublic java.lang.Boolean isOwnUnderline()
isOwnUnderline in interface JRFontpublic void setUnderline(boolean isUnderline)
setUnderline in interface JRFontpublic void setUnderline(java.lang.Boolean isUnderline)
setUnderline in interface JRFontpublic boolean isStrikeThrough()
isStrikeThrough in interface JRFontpublic java.lang.Boolean isOwnStrikeThrough()
isOwnStrikeThrough in interface JRFontpublic void setStrikeThrough(boolean isStrikeThrough)
setStrikeThrough in interface JRFontpublic void setStrikeThrough(java.lang.Boolean isStrikeThrough)
setStrikeThrough in interface JRFontpublic int getFontSize()
getFontSize in interface JRCommonTextgetFontSize in interface JRFontpublic java.lang.Integer getOwnFontSize()
getOwnFontSize in interface JRFontpublic void setFontSize(int size)
setFontSize in interface JRFontpublic void setFontSize(java.lang.Integer size)
setFontSize in interface JRFontpublic java.lang.String getPdfFontName()
getPdfFontName in interface JRFontpublic java.lang.String getOwnPdfFontName()
getOwnPdfFontName in interface JRFontpublic void setPdfFontName(java.lang.String pdfFontName)
setPdfFontName in interface JRFontpublic java.lang.String getPdfEncoding()
getPdfEncoding in interface JRFontpublic java.lang.String getOwnPdfEncoding()
getOwnPdfEncoding in interface JRFontpublic void setPdfEncoding(java.lang.String pdfEncoding)
setPdfEncoding in interface JRFontpublic boolean isPdfEmbedded()
isPdfEmbedded in interface JRFontpublic java.lang.Boolean isOwnPdfEmbedded()
isOwnPdfEmbedded in interface JRFontpublic void setPdfEmbedded(boolean isPdfEmbedded)
setPdfEmbedded in interface JRFontpublic void setPdfEmbedded(java.lang.Boolean isPdfEmbedded)
setPdfEmbedded in interface JRFontpublic java.awt.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 java.lang.String processMarkupText(java.lang.String text)
protected static MarkupProcessor getMarkupProcessor(java.lang.String markup)
protected void setPrintText(JRPrintText printText)
protected java.lang.String getTextTruncateSuffix()
protected void setTextTruncateSuffix(java.lang.String textTruncateSuffix)
© 2001-2010 Jaspersoft Corporation www.jaspersoft.com