|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JRPrintText
Field Summary | |
---|---|
static byte |
RUN_DIRECTION_LTR
|
static byte |
RUN_DIRECTION_RTL
|
Fields inherited from interface net.sf.jasperreports.engine.JRAlignment |
---|
HORIZONTAL_ALIGN_CENTER, HORIZONTAL_ALIGN_JUSTIFIED, HORIZONTAL_ALIGN_LEFT, HORIZONTAL_ALIGN_RIGHT, VERTICAL_ALIGN_BOTTOM, VERTICAL_ALIGN_JUSTIFIED, VERTICAL_ALIGN_MIDDLE, VERTICAL_ALIGN_TOP |
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 |
Method Summary | |
---|---|
JRBox |
getBox()
Deprecated. Replaced by JRBoxContainer.getLineBox() |
JRFont |
getFont()
Deprecated. |
java.lang.String |
getFormatFactoryClass()
Returns the name of the class implementing the FormatFactory
interface to use with this text element, in case it is not the same as the one for the overall document. |
JRStyledText |
getFullStyledText(JRStyledTextAttributeSelector attributeSelector)
Returns the full styled text of this object. |
java.lang.String |
getFullText()
Returns the full (not truncated) text of this object. |
float |
getLeadingOffset()
|
float |
getLineSpacingFactor()
|
java.lang.String |
getLocaleCode()
Returns the code of the java.util.Locale which was used
while formatting the source value of the text. |
java.lang.String |
getOriginalText()
Returns the original text that was set in this object. |
java.lang.Byte |
getOwnLineSpacing()
|
java.lang.Byte |
getOwnRotation()
|
java.lang.String |
getPattern()
Returns the pattern used to format a value that was the source of this text. |
byte |
getRunDirection()
|
JRStyledText |
getStyledText(JRStyledTextAttributeSelector attributeSelector)
Returns the styled text for this object. |
java.lang.String |
getText()
Returns the possibly truncated (when getTextTruncateIndex() is not null) text of this object. |
byte |
getTextAlignment()
Deprecated. Replaced by JRAlignment.getHorizontalAlignment() . |
float |
getTextHeight()
|
java.lang.Integer |
getTextTruncateIndex()
Returns the index to which this object's text is to be truncated. |
java.lang.String |
getTextTruncateSuffix()
Returns the suffix that is to be appended to the truncated text (as returned by getText() . |
java.lang.String |
getTimeZoneId()
Returns the ID of the java.util.TimeZone
used to format this text's date source value. |
java.lang.String |
getValueClassName()
Returns the type of the value which was used to generate this text. |
java.lang.Boolean |
isOwnStyledText()
|
void |
setBox(JRBox box)
Deprecated. |
void |
setFont(JRFont font)
Deprecated. |
void |
setLeadingOffset(float leadingOffset)
|
void |
setLineSpacing(byte lineSpacing)
|
void |
setLineSpacing(java.lang.Byte lineSpacing)
|
void |
setLineSpacingFactor(float lineSpacingFactor)
|
void |
setRotation(byte rotation)
|
void |
setRotation(java.lang.Byte rotation)
|
void |
setRunDirection(byte rotation)
|
void |
setStyledText(boolean isStyledText)
|
void |
setStyledText(java.lang.Boolean isStyledText)
|
void |
setText(java.lang.String text)
Set the text for this object. |
void |
setTextAlignment(byte horizontalAlignment)
Deprecated. Replaced by JRAlignment.setHorizontalAlignment(byte) . |
void |
setTextHeight(float textHeight)
|
void |
setTextTruncateIndex(java.lang.Integer index)
Sets the index to which this object's text is to be truncated. |
void |
setTextTruncateSuffix(java.lang.String suffix)
Sets the suffix to be appended to the truncated text. |
Methods inherited from interface net.sf.jasperreports.engine.JRPrintElement |
---|
getHeight, getKey, getOrigin, getWidth, getX, getY, setBackcolor, setForecolor, setHeight, setMode, setMode, setStyle, setWidth, setX, setY |
Methods inherited from interface net.sf.jasperreports.engine.JRCommonElement |
---|
getBackcolor, getForecolor, getMode, getOwnBackcolor, getOwnForecolor, getOwnMode |
Methods inherited from interface net.sf.jasperreports.engine.JRStyleContainer |
---|
getDefaultStyleProvider, getStyle, getStyleNameReference |
Methods inherited from interface net.sf.jasperreports.engine.JRAlignment |
---|
getHorizontalAlignment, getOwnHorizontalAlignment, getOwnVerticalAlignment, getVerticalAlignment, setHorizontalAlignment, setHorizontalAlignment, setVerticalAlignment, setVerticalAlignment |
Methods inherited from interface net.sf.jasperreports.engine.JRPrintAnchor |
---|
getAnchorName, getBookmarkLevel, setAnchorName, setBookmarkLevel |
Methods inherited from interface net.sf.jasperreports.engine.JRPrintHyperlink |
---|
getHyperlinkAnchor, getHyperlinkPage, getHyperlinkParameters, getHyperlinkReference, getHyperlinkTarget, getHyperlinkTooltip, getHyperlinkType, getLinkType, setHyperlinkAnchor, setHyperlinkPage, setHyperlinkParameters, setHyperlinkReference, setHyperlinkTarget, setHyperlinkTooltip, setHyperlinkType, setLinkType |
Methods inherited from interface net.sf.jasperreports.engine.JRFont |
---|
getFontName, getFontSize, getOwnFontName, getOwnFontSize, getOwnPdfEncoding, getOwnPdfFontName, getOwnSize, getPdfEncoding, getPdfFontName, getReportFont, getSize, isBold, isItalic, isOwnBold, isOwnItalic, isOwnPdfEmbedded, isOwnStrikeThrough, isOwnUnderline, isPdfEmbedded, isStrikeThrough, isUnderline, setBold, setBold, setFontName, setFontSize, setFontSize, setItalic, setItalic, setPdfEmbedded, setPdfEmbedded, setPdfEncoding, setPdfFontName, setReportFont, setSize, setSize, setStrikeThrough, setStrikeThrough, setUnderline, setUnderline |
Methods inherited from interface net.sf.jasperreports.engine.JRCommonText |
---|
getFontSize, getHeight, getLineSpacing, getRotation, getWidth, isStyledText |
Methods inherited from interface net.sf.jasperreports.engine.JRCommonElement |
---|
getBackcolor, getForecolor, getMode, getOwnBackcolor, getOwnForecolor, getOwnMode |
Methods inherited from interface net.sf.jasperreports.engine.JRStyleContainer |
---|
getDefaultStyleProvider, getStyle, getStyleNameReference |
Methods inherited from interface net.sf.jasperreports.engine.JRBoxContainer |
---|
getDefaultLineColor, getLineBox |
Methods inherited from interface net.sf.jasperreports.engine.JRStyleContainer |
---|
getDefaultStyleProvider, getStyle, getStyleNameReference |
Field Detail |
---|
static final byte RUN_DIRECTION_LTR
static final byte RUN_DIRECTION_RTL
Method Detail |
---|
java.lang.String getText()
getTextTruncateIndex()
is not null) text of this object.
getFullText()
,
getTextTruncateSuffix()
void setText(java.lang.String text)
text
- the textsetTextTruncateIndex(Integer)
java.lang.Integer getTextTruncateIndex()
JRTextElement.PROPERTY_PRINT_KEEP_FULL_TEXT
,
getTextTruncateSuffix()
void setTextTruncateIndex(java.lang.Integer index)
getText()
or getStyledText(JRStyledTextAttributeSelector)
are called.
index
- the index to which this object's text is to be truncatedjava.lang.String getTextTruncateSuffix()
getText()
.
JRTextElement.PROPERTY_TRUNCATE_SUFFIX
void setTextTruncateSuffix(java.lang.String suffix)
suffix
- the suffix to be appended to the truncated textgetTextTruncateSuffix()
java.lang.String getFullText()
getText()
,
getTextTruncateIndex()
java.lang.String getOriginalText()
JRStyledText getStyledText(JRStyledTextAttributeSelector attributeSelector)
getText()
.
attributeSelector
- the styled text attribute selector
JRStyledText getFullStyledText(JRStyledTextAttributeSelector attributeSelector)
attributeSelector
- the styled text attribute selector
getFullText()
float getLineSpacingFactor()
void setLineSpacingFactor(float lineSpacingFactor)
float getLeadingOffset()
void setLeadingOffset(float leadingOffset)
byte getTextAlignment()
JRAlignment.getHorizontalAlignment()
.
void setTextAlignment(byte horizontalAlignment)
JRAlignment.setHorizontalAlignment(byte)
.
java.lang.Byte getOwnRotation()
getOwnRotation
in interface JRCommonText
void setRotation(byte rotation)
void setRotation(java.lang.Byte rotation)
byte getRunDirection()
void setRunDirection(byte rotation)
float getTextHeight()
void setTextHeight(float textHeight)
java.lang.Byte getOwnLineSpacing()
getOwnLineSpacing
in interface JRCommonText
void setLineSpacing(byte lineSpacing)
void setLineSpacing(java.lang.Byte lineSpacing)
java.lang.Boolean isOwnStyledText()
isOwnStyledText
in interface JRCommonText
void setStyledText(boolean isStyledText)
void setStyledText(java.lang.Boolean isStyledText)
JRBox getBox()
JRBoxContainer.getLineBox()
void setBox(JRBox box)
JRFont getFont()
void setFont(JRFont font)
java.lang.String getValueClassName()
Text fields
that have a non-String
expression
save the value type using this attribute. This information can be used by
exporters to treat numerical or date texts (for instance) in a special manner.
java.lang.String getPattern()
The pattern can be used to parse the text back to its source value.
getValueClassName()
java.lang.String getFormatFactoryClass()
FormatFactory
interface to use with this text element, in case it is not the same as the one for the overall document.
java.lang.String getLocaleCode()
java.util.Locale
which was used
while formatting the source value of the text.
The code is created using the java.util.Locale.toString()
convention.
When this attribute is null, the locale returned by
JasperPrint.getLocaleCode()
is used.
This way, the locale is specified in a single place when all the (or many ) texts from a print object
were formatted using the same locale.
java.util.Locale
used when formatting this text's source valuejava.lang.String getTimeZoneId()
ID
of the java.util.TimeZone
used to format this text's date source value.
When this attribute is null, the time zone returned by
JasperPrint.getTimeZoneId()
is used.
ID
of the java.util.TimeZone
used to format this text's date source value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |