|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jasperreports.engine.fill.JRFillElement net.sf.jasperreports.engine.fill.JRFillTextElement
public abstract class JRFillTextElement
Field Summary | |
---|---|
protected JRLineBox |
lineBox
|
protected JRParagraph |
paragraph
|
Fields inherited from class net.sf.jasperreports.engine.fill.JRFillElement |
---|
band, conditionalStylesContainer, currentEvaluation, currentStyle, defaultStyleProvider, delayedEvaluationsMap, dynamicProperties, elementGroup, elementId, expressionEvaluator, filler, initStyle, mergedProperties, originProvider, parent, printWhenGroupChanges, staticProperties, templates |
Fields inherited from interface net.sf.jasperreports.engine.JRTextElement |
---|
PROPERTY_PRINT_KEEP_FULL_TEXT, PROPERTY_SAVE_LINE_BREAKS, PROPERTY_TRUNCATE_AT_CHAR, PROPERTY_TRUNCATE_SUFFIX |
Fields inherited from interface net.sf.jasperreports.engine.JRFont |
---|
DEFAULT_FONT_NAME, DEFAULT_FONT_SIZE, DEFAULT_PDF_EMBEDDED, DEFAULT_PDF_ENCODING, DEFAULT_PDF_FONT_NAME |
Fields inherited from interface net.sf.jasperreports.engine.JRCommonText |
---|
MARKUP_HTML, MARKUP_NONE, MARKUP_RTF, MARKUP_STYLED_TEXT |
Constructor Summary | |
---|---|
protected |
JRFillTextElement(JRBaseFiller filler,
JRTextElement textElement,
JRFillObjectFactory factory)
|
protected |
JRFillTextElement(JRFillTextElement textElement,
JRFillCloneFactory factory)
|
Method Summary | |
---|---|
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()
|
JRLineBox |
getLineBox()
|
protected short[] |
getLineBreakOffsets()
|
protected float |
getLineSpacingFactor()
|
LineSpacingEnum |
getLineSpacingValue()
Deprecated. Replaced by JRParagraph.getLineSpacing() . |
java.lang.String |
getMarkup()
Returns the text markup. |
protected 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)
|
protected void |
setLineBreakOffsets(short[] lineBreakOffsets)
|
void |
setLineSpacing(LineSpacingEnum lineSpacing)
Deprecated. Replaced by JRParagraph.setLineSpacing(LineSpacingEnum) . |
protected void |
setLineSpacingFactor(float lineSpacingFactor)
|
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)
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.sf.jasperreports.engine.JRElement |
---|
collectExpressions, getElementGroup, getKey, getPositionTypeValue, getPrintWhenExpression, getPrintWhenGroupChanges, getPropertyExpressions, getStretchTypeValue, getX, getY, isPrintInFirstWholeBand, isPrintRepeatedValues, isPrintWhenDetailOverflows, isRemoveLineWhenBlank, setPositionType, setPrintInFirstWholeBand, setPrintRepeatedValues, setPrintWhenDetailOverflows, setRemoveLineWhenBlank, setStretchType, setX |
Methods inherited from interface net.sf.jasperreports.engine.JRChild |
---|
clone |
Methods inherited from interface net.sf.jasperreports.engine.JRVisitable |
---|
visit |
Methods inherited from interface net.sf.jasperreports.engine.JRCloneable |
---|
clone |
Methods inherited from interface net.sf.jasperreports.engine.JRPropertiesHolder |
---|
getParentProperties, getPropertiesMap, hasProperties |
Methods inherited from interface net.sf.jasperreports.engine.JRCommonElement |
---|
getBackcolor, getForecolor, getHeight, getOwnBackcolor, getOwnForecolor, getOwnModeValue, getWidth, setBackcolor, setForecolor, setMode |
Methods inherited from interface net.sf.jasperreports.engine.JRIdentifiable |
---|
getUUID |
Methods inherited from interface net.sf.jasperreports.engine.JRStyleContainer |
---|
getDefaultStyleProvider, getStyle, getStyleNameReference |
Methods inherited from interface net.sf.jasperreports.engine.fill.JRFillCloneable |
---|
createClone |
Field Detail |
---|
protected final JRLineBox lineBox
protected final JRParagraph paragraph
Constructor Detail |
---|
protected JRFillTextElement(JRBaseFiller filler, JRTextElement textElement, JRFillObjectFactory factory)
protected JRFillTextElement(JRFillTextElement textElement, JRFillCloneFactory factory)
Method Detail |
---|
protected void ensureTextMeasurer()
public ModeEnum getModeValue()
JRCommonElement
getModeValue
in interface JRCommonElement
getModeValue
in class JRFillElement
public HorizontalAlignEnum getHorizontalAlignmentValue()
JRAlignment
getHorizontalAlignmentValue
in interface JRAlignment
HorizontalAlignEnum
public HorizontalAlignEnum getOwnHorizontalAlignmentValue()
getOwnHorizontalAlignmentValue
in interface JRAlignment
public void setHorizontalAlignment(HorizontalAlignEnum horizontalAlignment)
JRAlignment
setHorizontalAlignment
in interface JRAlignment
horizontalAlignment
- a value representing one of the horizontal alignment constants in HorizontalAlignEnum
public VerticalAlignEnum getVerticalAlignmentValue()
JRAlignment
getVerticalAlignmentValue
in interface JRAlignment
VerticalAlignEnum
public VerticalAlignEnum getOwnVerticalAlignmentValue()
getOwnVerticalAlignmentValue
in interface JRAlignment
public void setVerticalAlignment(VerticalAlignEnum verticalAlignment)
JRAlignment
setVerticalAlignment
in interface JRAlignment
verticalAlignment
- a value representing one of the vertical alignment constants in VerticalAlignEnum
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 LineSpacingEnum getLineSpacingValue()
JRParagraph.getLineSpacing()
.
getLineSpacingValue
in interface JRCommonText
public LineSpacingEnum getOwnLineSpacingValue()
JRParagraph.getOwnLineSpacing()
.
getOwnLineSpacingValue
in interface JRCommonText
public void setLineSpacing(LineSpacingEnum lineSpacing)
JRParagraph.setLineSpacing(LineSpacingEnum)
.
setLineSpacing
in interface JRCommonText
public java.lang.String getMarkup()
JRCommonText
getMarkup
in interface JRCommonText
public java.lang.String getOwnMarkup()
getOwnMarkup
in interface JRCommonText
public void setMarkup(java.lang.String markup)
setMarkup
in interface JRCommonText
public JRLineBox getLineBox()
getLineBox
in interface JRBoxContainer
public JRParagraph getParagraph()
getParagraph
in interface JRParagraphContainer
public 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 JRFillElement
protected void rewind()
rewind
in class JRFillElement
protected JRStyledText getStyledText()
public java.lang.String getText()
protected void chopTextElement(int availableStretchHeight)
protected abstract boolean canOverflow()
public java.lang.String getFontName()
getFontName
in interface JRFont
public java.lang.String getOwnFontName()
getOwnFontName
in interface JRFont
public void setFontName(java.lang.String fontName)
setFontName
in interface JRFont
public boolean isBold()
isBold
in interface JRFont
public java.lang.Boolean isOwnBold()
isOwnBold
in interface JRFont
public void setBold(boolean isBold)
setBold
in interface JRFont
public void setBold(java.lang.Boolean isBold)
setBold
in interface JRFont
public boolean isItalic()
isItalic
in interface JRFont
public java.lang.Boolean isOwnItalic()
isOwnItalic
in interface JRFont
public void setItalic(boolean isItalic)
setItalic
in interface JRFont
public void setItalic(java.lang.Boolean isItalic)
setItalic
in interface JRFont
public boolean isUnderline()
isUnderline
in interface JRFont
public java.lang.Boolean isOwnUnderline()
isOwnUnderline
in interface JRFont
public void setUnderline(boolean isUnderline)
setUnderline
in interface JRFont
public void setUnderline(java.lang.Boolean isUnderline)
setUnderline
in interface JRFont
public boolean isStrikeThrough()
isStrikeThrough
in interface JRFont
public java.lang.Boolean isOwnStrikeThrough()
isOwnStrikeThrough
in interface JRFont
public void setStrikeThrough(boolean isStrikeThrough)
setStrikeThrough
in interface JRFont
public void setStrikeThrough(java.lang.Boolean isStrikeThrough)
setStrikeThrough
in interface JRFont
public int getFontSize()
getFontSize
in interface JRCommonText
getFontSize
in interface JRFont
public java.lang.Integer getOwnFontSize()
getOwnFontSize
in interface JRFont
public void setFontSize(int size)
setFontSize
in interface JRFont
public void setFontSize(java.lang.Integer size)
setFontSize
in interface JRFont
public java.lang.String getPdfFontName()
getPdfFontName
in interface JRFont
public java.lang.String getOwnPdfFontName()
getOwnPdfFontName
in interface JRFont
public void setPdfFontName(java.lang.String pdfFontName)
setPdfFontName
in interface JRFont
public java.lang.String getPdfEncoding()
getPdfEncoding
in interface JRFont
public java.lang.String getOwnPdfEncoding()
getOwnPdfEncoding
in interface JRFont
public void setPdfEncoding(java.lang.String pdfEncoding)
setPdfEncoding
in interface JRFont
public boolean isPdfEmbedded()
isPdfEmbedded
in interface JRFont
public java.lang.Boolean isOwnPdfEmbedded()
isOwnPdfEmbedded
in interface JRFont
public void setPdfEmbedded(boolean isPdfEmbedded)
setPdfEmbedded
in interface JRFont
public void setPdfEmbedded(java.lang.Boolean isPdfEmbedded)
setPdfEmbedded
in interface JRFont
public java.awt.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 java.lang.String processMarkupText(java.lang.String text)
protected MarkupProcessor getMarkupProcessor(java.lang.String markup)
protected void setPrintText(JRPrintText printText)
protected java.lang.String getTextTruncateSuffix()
protected void setTextTruncateSuffix(java.lang.String textTruncateSuffix)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |