|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jasperreports.engine.base.JRBasePrintElement
net.sf.jasperreports.engine.base.JRBasePrintText
public class JRBasePrintText
Field Summary | |
---|---|
protected java.lang.String |
anchorName
|
protected int |
bookmarkLevel
The bookmark level for the anchor associated with this field. |
protected java.lang.String |
fontName
|
protected java.lang.Integer |
fontSize
|
protected java.lang.String |
formatFactoryClass
|
protected HorizontalAlignEnum |
horizontalAlignmentValue
|
protected java.lang.String |
hyperlinkAnchor
|
protected java.lang.Integer |
hyperlinkPage
|
protected JRPrintHyperlinkParameters |
hyperlinkParameters
|
protected java.lang.String |
hyperlinkReference
|
protected java.lang.String |
hyperlinkTooltip
|
protected java.lang.Boolean |
isBold
|
protected java.lang.Boolean |
isItalic
|
protected java.lang.Boolean |
isPdfEmbedded
|
protected java.lang.Boolean |
isStrikeThrough
|
protected java.lang.Boolean |
isUnderline
|
protected float |
leadingOffset
Deprecated. No longer used. |
protected JRLineBox |
lineBox
|
protected short[] |
lineBreakOffsets
|
protected float |
lineSpacingFactor
Deprecated. No longer used. |
protected java.lang.String |
linkTarget
|
protected java.lang.String |
linkType
|
protected java.lang.String |
localeCode
|
protected java.lang.String |
markup
|
protected JRParagraph |
paragraph
|
protected java.lang.String |
pattern
|
protected java.lang.String |
pdfEncoding
|
protected java.lang.String |
pdfFontName
|
protected RotationEnum |
rotationValue
|
protected RunDirectionEnum |
runDirectionValue
|
protected java.lang.String |
text
|
protected TextFormat |
textFormat
|
protected float |
textHeight
|
protected java.lang.Integer |
textTruncateIndex
|
protected java.lang.String |
textTruncateSuffix
|
protected java.lang.String |
timeZoneId
|
protected java.lang.String |
truncatedText
|
protected java.lang.Object |
value
|
protected java.lang.String |
valueClassName
|
protected VerticalAlignEnum |
verticalAlignmentValue
|
Fields inherited from class net.sf.jasperreports.engine.base.JRBasePrintElement |
---|
backcolor, defaultStyleProvider, forecolor, height, key, modeValue, origin, style, width, x, y |
Fields inherited from interface net.sf.jasperreports.engine.JRPrintText |
---|
ZERO_LINE_BREAK_OFFSETS |
Fields inherited from interface net.sf.jasperreports.engine.JRPrintElement |
---|
UNSET_SOURCE_ELEMENT_ID |
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 | |
---|---|
JRBasePrintText(JRDefaultStyleProvider defaultStyleProvider)
|
Method Summary | ||
---|---|---|
|
accept(PrintElementVisitor<T> visitor,
T arg)
Accepts a print element visitor. |
|
void |
addHyperlinkParameter(JRPrintHyperlinkParameter parameter)
Adds a custom hyperlink parameter. |
|
void |
copyBox(JRLineBox lineBox)
|
|
void |
copyParagraph(JRParagraph paragraph)
|
|
java.lang.String |
getAnchorName()
|
|
int |
getBookmarkLevel()
Returns the level of the bookmark corresponding to the anchor. |
|
java.awt.Color |
getDefaultLineColor()
|
|
JRFont |
getFont()
Deprecated. |
|
java.lang.String |
getFontName()
|
|
int |
getFontSize()
|
|
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. |
|
HorizontalAlignEnum |
getHorizontalAlignmentValue()
Gets the text horizontal alignment. |
|
java.lang.String |
getHyperlinkAnchor()
|
|
java.lang.Integer |
getHyperlinkPage()
|
|
JRPrintHyperlinkParameters |
getHyperlinkParameters()
Returns the set of custom hyperlink parameters. |
|
java.lang.String |
getHyperlinkReference()
|
|
HyperlinkTargetEnum |
getHyperlinkTargetValue()
|
|
java.lang.String |
getHyperlinkTooltip()
Returns the hyperlink tooltip. |
|
HyperlinkTypeEnum |
getHyperlinkTypeValue()
Retrieves the hyperlink type for the element. |
|
float |
getLeadingOffset()
Deprecated. No longer used. |
|
JRLineBox |
getLineBox()
|
|
short[] |
getLineBreakOffsets()
Returns the line break offsets for the text if saved during report fill. |
|
float |
getLineSpacingFactor()
Deprecated. No longer used. |
|
LineSpacingEnum |
getLineSpacingValue()
Deprecated. Replaced by JRParagraph.getLineSpacing() . |
|
java.lang.String |
getLinkTarget()
Returns the hyperlink target name. |
|
java.lang.String |
getLinkType()
Returns the hyperlink type. |
|
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 |
getMarkup()
Returns the text markup. |
|
ModeEnum |
getModeValue()
Returns the element transparency mode. |
|
java.lang.String |
getOriginalText()
Returns the original text that was set in this object. |
|
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 |
getPattern()
Returns the pattern used to format a value that was the source of this text. |
|
java.lang.String |
getPdfEncoding()
|
|
java.lang.String |
getPdfFontName()
|
|
RotationEnum |
getRotationValue()
Gets the text rotation. |
|
RunDirectionEnum |
getRunDirectionValue()
Gets the text run direction. |
|
JRStyledText |
getStyledText(JRStyledTextAttributeSelector attributeSelector)
Returns the styled text for this object. |
|
java.lang.String |
getText()
Returns the possibly truncated (when JRPrintText.getTextTruncateIndex() is not null) text of this object. |
|
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 JRPrintText.getText() . |
|
java.lang.String |
getTimeZoneId()
Returns the ID of the java.util.TimeZone
used to format this text's date source value. |
|
java.lang.Object |
getValue()
|
|
java.lang.String |
getValueClassName()
Returns the type of the value which was used to generate this text. |
|
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()
|
|
void |
setAnchorName(java.lang.String anchorName)
|
|
void |
setBold(boolean isBold)
|
|
void |
setBold(java.lang.Boolean isBold)
Alternative setBold method which allows also to reset the "own" isBold property. |
|
void |
setBookmarkLevel(int bookmarkLevel)
Sets the boomark level for the anchor. |
|
void |
setFont(JRFont font)
Deprecated. |
|
void |
setFontName(java.lang.String fontName)
|
|
void |
setFontSize(int fontSize)
|
|
void |
setFontSize(java.lang.Integer fontSize)
Alternative setSize method which allows also to reset the "own" size property. |
|
void |
setFormatFactoryClass(java.lang.String formatFactoryClass)
|
|
void |
setHorizontalAlignment(HorizontalAlignEnum horizontalAlignmentValue)
Sets the text horizontal alignment. |
|
void |
setHyperlinkAnchor(java.lang.String hyperlinkAnchor)
|
|
void |
setHyperlinkPage(java.lang.Integer hyperlinkPage)
|
|
void |
setHyperlinkPage(java.lang.String hyperlinkPage)
|
|
void |
setHyperlinkParameters(JRPrintHyperlinkParameters hyperlinkParameters)
Sets the custom hyperlink parameters. |
|
void |
setHyperlinkReference(java.lang.String hyperlinkReference)
|
|
void |
setHyperlinkTarget(HyperlinkTargetEnum hyperlinkTarget)
|
|
void |
setHyperlinkTooltip(java.lang.String hyperlinkTooltip)
Sets the tooltip to be used for the hyperlink. |
|
void |
setHyperlinkType(HyperlinkTypeEnum hyperlinkType)
Sets the link type as a built-in hyperlink type. |
|
void |
setItalic(boolean isItalic)
|
|
void |
setItalic(java.lang.Boolean isItalic)
Alternative setItalic method which allows also to reset the "own" isItalic property. |
|
void |
setLeadingOffset(float leadingOffset)
Deprecated. No longer used. |
|
void |
setLineBreakOffsets(short[] lineBreakOffsets)
Sets the line break offsets for the text. |
|
void |
setLineSpacing(LineSpacingEnum lineSpacing)
Deprecated. Replaced by JRParagraph.setLineSpacing(LineSpacingEnum) . |
|
void |
setLineSpacingFactor(float lineSpacingFactor)
Deprecated. No longer used. |
|
void |
setLinkTarget(java.lang.String linkTarget)
Sets the hyperlink target name. |
|
void |
setLinkType(java.lang.String linkType)
Sets the hyperlink type. |
|
void |
setLocaleCode(java.lang.String localeCode)
|
|
void |
setMarkup(java.lang.String markup)
|
|
void |
setPattern(java.lang.String pattern)
|
|
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)
|
|
void |
setRotation(RotationEnum rotationValue)
Sets the text rotation. |
|
void |
setRunDirection(RunDirectionEnum runDirectionValue)
Sets the text run direction. |
|
void |
setStrikeThrough(boolean isStrikeThrough)
|
|
void |
setStrikeThrough(java.lang.Boolean isStrikeThrough)
Alternative setStrikeThrough method which allows also to reset the "own" isStrikeThrough property. |
|
void |
setText(java.lang.String text)
Set the text for this object. |
|
void |
setTextFormat(TextFormat textFormat)
|
|
void |
setTextHeight(float textHeight)
|
|
void |
setTextTruncateIndex(java.lang.Integer textTruncateIndex)
Sets the index to which this object's text is to be truncated. |
|
void |
setTextTruncateSuffix(java.lang.String textTruncateSuffix)
Sets the suffix to be appended to the truncated text. |
|
void |
setTimeZoneId(java.lang.String timeZoneId)
|
|
void |
setUnderline(boolean isUnderline)
|
|
void |
setUnderline(java.lang.Boolean isUnderline)
Alternative setUnderline method which allows also to reset the "own" isUnderline property. |
|
void |
setValue(java.lang.Object value)
|
|
void |
setValueClassName(java.lang.String valueClassName)
|
|
void |
setVerticalAlignment(VerticalAlignEnum verticalAlignmentValue)
Gets the text vertical alignment. |
Methods inherited from class net.sf.jasperreports.engine.base.JRBasePrintElement |
---|
getBackcolor, getDefaultStyleProvider, getForecolor, getHeight, getKey, getOrigin, getOwnBackcolor, getOwnForecolor, getOwnModeValue, getParentProperties, getPropertiesMap, getSourceElementId, getStyle, getStyleNameReference, getWidth, getX, getY, hasProperties, setBackcolor, setForecolor, setHeight, setKey, setMode, setOrigin, setSourceElementId, setStyle, setWidth, setX, setY |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.sf.jasperreports.engine.JRPrintElement |
---|
getHeight, getKey, getOrigin, getSourceElementId, getWidth, getX, getY, setHeight, setStyle, setWidth, setX, setY |
Methods inherited from interface net.sf.jasperreports.engine.JRPropertiesHolder |
---|
getParentProperties, getPropertiesMap, hasProperties |
Methods inherited from interface net.sf.jasperreports.engine.JRCommonElement |
---|
getBackcolor, getForecolor, getOwnBackcolor, getOwnForecolor, getOwnModeValue, setBackcolor, setForecolor, setMode |
Methods inherited from interface net.sf.jasperreports.engine.JRStyleContainer |
---|
getDefaultStyleProvider, getStyle, getStyleNameReference |
Field Detail |
---|
protected java.lang.String text
protected java.lang.Integer textTruncateIndex
protected short[] lineBreakOffsets
protected java.lang.String textTruncateSuffix
protected transient java.lang.String truncatedText
protected java.lang.Object value
protected float lineSpacingFactor
protected float leadingOffset
protected HorizontalAlignEnum horizontalAlignmentValue
protected VerticalAlignEnum verticalAlignmentValue
protected RotationEnum rotationValue
protected RunDirectionEnum runDirectionValue
protected float textHeight
protected java.lang.String markup
protected TextFormat textFormat
protected java.lang.String anchorName
protected java.lang.String linkType
protected java.lang.String linkTarget
protected java.lang.String hyperlinkReference
protected java.lang.String hyperlinkAnchor
protected java.lang.Integer hyperlinkPage
protected java.lang.String hyperlinkTooltip
protected JRPrintHyperlinkParameters hyperlinkParameters
protected int bookmarkLevel
JRAnchor.getBookmarkLevel()
protected JRLineBox lineBox
protected JRParagraph paragraph
protected java.lang.String fontName
protected java.lang.Boolean isBold
protected java.lang.Boolean isItalic
protected java.lang.Boolean isUnderline
protected java.lang.Boolean isStrikeThrough
protected java.lang.Integer fontSize
protected java.lang.String pdfFontName
protected java.lang.String pdfEncoding
protected java.lang.Boolean isPdfEmbedded
protected java.lang.String valueClassName
protected java.lang.String pattern
protected java.lang.String formatFactoryClass
protected java.lang.String localeCode
protected java.lang.String timeZoneId
Constructor Detail |
---|
public JRBasePrintText(JRDefaultStyleProvider defaultStyleProvider)
Method Detail |
---|
public ModeEnum getModeValue()
JRCommonElement
getModeValue
in interface JRCommonElement
getModeValue
in class JRBasePrintElement
public java.lang.String getText()
JRPrintText
JRPrintText.getTextTruncateIndex()
is not null) text of this object.
getText
in interface JRPrintText
JRPrintText.getFullText()
,
JRPrintText.getTextTruncateSuffix()
public void setText(java.lang.String text)
JRPrintText
setText
in interface JRPrintText
text
- the textJRPrintText.setTextTruncateIndex(Integer)
public java.lang.Integer getTextTruncateIndex()
JRPrintText
getTextTruncateIndex
in interface JRPrintText
JRTextElement.PROPERTY_PRINT_KEEP_FULL_TEXT
,
JRPrintText.getTextTruncateSuffix()
public void setTextTruncateIndex(java.lang.Integer textTruncateIndex)
JRPrintText
JRPrintText.getText()
or JRPrintText.getStyledText(JRStyledTextAttributeSelector)
are called.
setTextTruncateIndex
in interface JRPrintText
textTruncateIndex
- the index to which this object's text is to be truncatedpublic java.lang.String getTextTruncateSuffix()
JRPrintText
JRPrintText.getText()
.
getTextTruncateSuffix
in interface JRPrintText
JRTextElement.PROPERTY_TRUNCATE_SUFFIX
public void setTextTruncateSuffix(java.lang.String textTruncateSuffix)
JRPrintText
setTextTruncateSuffix
in interface JRPrintText
textTruncateSuffix
- the suffix to be appended to the truncated textJRPrintText.getTextTruncateSuffix()
public short[] getLineBreakOffsets()
JRPrintText
The array of offsets is incremental, each offset adds to the
previous value. I.e. the positions at which line breaks occur
are offset[0]
, offset[0] + offset[1]
,
offset[0] + offset[1] + offset[2]
and so on.
This array does not include positions for explicit line breaks in the text, i.e. for line breaks that occur due to new line characters in the text. The array only includes line break positions within a paragraph in the text.
If the text was meant to have saved line break offsets but no (non
explicit) breaks were detected (e.g. if the text is a single line),
this method will return a zero-length array. If the text was not meant
to include saved line breaks, the method will return null
.
getLineBreakOffsets
in interface JRPrintText
null
if no line break positions were saved during the fillJRTextElement.PROPERTY_SAVE_LINE_BREAKS
public void setLineBreakOffsets(short[] lineBreakOffsets)
JRPrintText
setLineBreakOffsets
in interface JRPrintText
lineBreakOffsets
- the line break offsetsJRPrintText.getLineBreakOffsets()
public java.lang.String getFullText()
JRPrintText
getFullText
in interface JRPrintText
JRPrintText.getText()
,
JRPrintText.getTextTruncateIndex()
public java.lang.String getOriginalText()
JRPrintText
getOriginalText
in interface JRPrintText
public JRStyledText getStyledText(JRStyledTextAttributeSelector attributeSelector)
JRPrintText
JRPrintText.getText()
.
getStyledText
in interface JRPrintText
attributeSelector
- the styled text attribute selector
public JRStyledText getFullStyledText(JRStyledTextAttributeSelector attributeSelector)
JRPrintText
getFullStyledText
in interface JRPrintText
attributeSelector
- the styled text attribute selector
JRPrintText.getFullText()
public java.lang.Object getValue()
getValue
in interface JRPrintText
public void setValue(java.lang.Object value)
setValue
in interface JRPrintText
public float getLineSpacingFactor()
getLineSpacingFactor
in interface JRPrintText
public void setLineSpacingFactor(float lineSpacingFactor)
setLineSpacingFactor
in interface JRPrintText
public float getLeadingOffset()
getLeadingOffset
in interface JRPrintText
public void setLeadingOffset(float leadingOffset)
setLeadingOffset
in interface JRPrintText
public HorizontalAlignEnum getHorizontalAlignmentValue()
JRAlignment
getHorizontalAlignmentValue
in interface JRAlignment
HorizontalAlignEnum
public HorizontalAlignEnum getOwnHorizontalAlignmentValue()
getOwnHorizontalAlignmentValue
in interface JRAlignment
public void setHorizontalAlignment(HorizontalAlignEnum horizontalAlignmentValue)
JRAlignment
setHorizontalAlignment
in interface JRAlignment
horizontalAlignmentValue
- 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 verticalAlignmentValue)
JRAlignment
setVerticalAlignment
in interface JRAlignment
verticalAlignmentValue
- a value representing one of the vertical alignment constants in VerticalAlignEnum
public RotationEnum getRotationValue()
JRCommonText
getRotationValue
in interface JRCommonText
RotationEnum
public RotationEnum getOwnRotationValue()
JRPrintText
getOwnRotationValue
in interface JRCommonText
getOwnRotationValue
in interface JRPrintText
RotationEnum
public void setRotation(RotationEnum rotationValue)
JRPrintText
setRotation
in interface JRCommonText
setRotation
in interface JRPrintText
rotationValue
- a value representing one of the text rotation constants in RotationEnum
public RunDirectionEnum getRunDirectionValue()
JRPrintText
getRunDirectionValue
in interface JRPrintText
RunDirectionEnum
public void setRunDirection(RunDirectionEnum runDirectionValue)
JRPrintText
setRunDirection
in interface JRPrintText
runDirectionValue
- a value representing one of the text run direction constants in RunDirectionEnum
public float getTextHeight()
getTextHeight
in interface JRPrintText
public void setTextHeight(float textHeight)
setTextHeight
in interface JRPrintText
public LineSpacingEnum getLineSpacingValue()
JRParagraph.getLineSpacing()
.
getLineSpacingValue
in interface JRCommonText
public LineSpacingEnum getOwnLineSpacingValue()
JRParagraph.getOwnLineSpacing()
.
getOwnLineSpacingValue
in interface JRCommonText
getOwnLineSpacingValue
in interface JRPrintText
public void setLineSpacing(LineSpacingEnum lineSpacing)
JRParagraph.setLineSpacing(LineSpacingEnum)
.
setLineSpacing
in interface JRCommonText
setLineSpacing
in interface JRPrintText
public java.lang.String getMarkup()
JRCommonText
getMarkup
in interface JRCommonText
public java.lang.String getOwnMarkup()
getOwnMarkup
in interface JRCommonText
getOwnMarkup
in interface JRPrintText
public void setMarkup(java.lang.String markup)
setMarkup
in interface JRCommonText
setMarkup
in interface JRPrintText
public JRLineBox getLineBox()
getLineBox
in interface JRBoxContainer
public JRParagraph getParagraph()
getParagraph
in interface JRParagraphContainer
public void copyBox(JRLineBox lineBox)
public void copyParagraph(JRParagraph paragraph)
public JRFont getFont()
getFont
in interface JRPrintText
public void setFont(JRFont font)
setFont
in interface JRPrintText
public void setTextFormat(TextFormat textFormat)
setTextFormat
in interface JRPrintText
public java.lang.String getAnchorName()
getAnchorName
in interface JRPrintAnchor
public void setAnchorName(java.lang.String anchorName)
setAnchorName
in interface JRPrintAnchor
public HyperlinkTypeEnum getHyperlinkTypeValue()
JRPrintHyperlink
The actual hyperlink type is determined by getLinkType()
.
This method can is used to determine whether the hyperlink type is one of the
built-in types or a custom type.
When hyperlink is of custom type, CUSTOM
is returned.
getHyperlinkTypeValue
in interface JRPrintHyperlink
JRPrintHyperlink.getLinkType()
public void setHyperlinkType(HyperlinkTypeEnum hyperlinkType)
JRPrintHyperlink
setHyperlinkType
in interface JRPrintHyperlink
hyperlinkType
- the built-in hyperlink typeJRPrintHyperlink.getLinkType()
public HyperlinkTargetEnum getHyperlinkTargetValue()
getHyperlinkTargetValue
in interface JRPrintHyperlink
public void setHyperlinkTarget(HyperlinkTargetEnum hyperlinkTarget)
setHyperlinkTarget
in interface JRPrintHyperlink
public java.lang.String getHyperlinkReference()
getHyperlinkReference
in interface JRPrintHyperlink
public void setHyperlinkReference(java.lang.String hyperlinkReference)
setHyperlinkReference
in interface JRPrintHyperlink
public java.lang.String getHyperlinkAnchor()
getHyperlinkAnchor
in interface JRPrintHyperlink
public void setHyperlinkAnchor(java.lang.String hyperlinkAnchor)
setHyperlinkAnchor
in interface JRPrintHyperlink
public java.lang.Integer getHyperlinkPage()
getHyperlinkPage
in interface JRPrintHyperlink
public void setHyperlinkPage(java.lang.Integer hyperlinkPage)
setHyperlinkPage
in interface JRPrintHyperlink
public void setHyperlinkPage(java.lang.String hyperlinkPage)
public int getBookmarkLevel()
JRPrintAnchor
getBookmarkLevel
in interface JRPrintAnchor
NO_BOOKMARK
if no bookmark should be created for this anchorpublic void setBookmarkLevel(int bookmarkLevel)
JRPrintAnchor
setBookmarkLevel
in interface JRPrintAnchor
bookmarkLevel
- the bookmark level (starting from 1)
or NO_BOOKMARK
if no bookmark should be createdpublic 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 fontSize)
setFontSize
in interface JRFont
public void setFontSize(java.lang.Integer fontSize)
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.lang.String getPattern()
JRPrintText
The pattern can be used to parse the text back to its source value.
getPattern
in interface TextFormat
getPattern
in interface JRPrintText
JRPrintText.getValueClassName()
public void setPattern(java.lang.String pattern)
public java.lang.String getValueClassName()
JRPrintText
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.
getValueClassName
in interface TextFormat
getValueClassName
in interface JRPrintText
public void setValueClassName(java.lang.String valueClassName)
public java.lang.String getFormatFactoryClass()
JRPrintText
FormatFactory
interface to use with this text element, in case it is not the same as the one for the overall document.
getFormatFactoryClass
in interface TextFormat
getFormatFactoryClass
in interface JRPrintText
public void setFormatFactoryClass(java.lang.String formatFactoryClass)
public java.lang.String getLocaleCode()
JRPrintText
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.
getLocaleCode
in interface TextFormat
getLocaleCode
in interface JRPrintText
java.util.Locale
used when formatting this text's source valuepublic void setLocaleCode(java.lang.String localeCode)
public java.lang.String getTimeZoneId()
JRPrintText
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.
getTimeZoneId
in interface TextFormat
getTimeZoneId
in interface JRPrintText
ID
of the java.util.TimeZone
used to format this text's date source valuepublic void setTimeZoneId(java.lang.String timeZoneId)
public JRPrintHyperlinkParameters getHyperlinkParameters()
JRPrintHyperlink
getHyperlinkParameters
in interface JRPrintHyperlink
JRPrintHyperlink.setHyperlinkParameters(JRPrintHyperlinkParameters)
,
JRPrintHyperlinkParameter
public void setHyperlinkParameters(JRPrintHyperlinkParameters hyperlinkParameters)
JRPrintHyperlink
These parameters will be used to produce the actual hyperlink when the report is exported.
setHyperlinkParameters
in interface JRPrintHyperlink
hyperlinkParameters
- the set of custom hyperlink parameterspublic void addHyperlinkParameter(JRPrintHyperlinkParameter parameter)
parameter
- the parameter to addgetHyperlinkParameters()
,
JRPrintHyperlinkParameters.addParameter(JRPrintHyperlinkParameter)
public java.lang.String getLinkType()
JRPrintHyperlink
getLinkType
in interface JRPrintHyperlink
public void setLinkType(java.lang.String linkType)
JRPrintHyperlink
The type can be one of the built-in types (Reference, LocalAnchor, LocalPage, RemoteAnchor, RemotePage), or can be an arbitrary type.
setLinkType
in interface JRPrintHyperlink
linkType
- the hyperlink typepublic java.lang.String getLinkTarget()
JRPrintHyperlink
The target name can be one of the built-in names (Self, Blank, Top, Parent), or can be an arbitrary name.
getLinkTarget
in interface JRPrintHyperlink
public void setLinkTarget(java.lang.String linkTarget)
JRPrintHyperlink
The target name can be one of the built-in names (Self, Blank, Top, Parent), or can be an arbitrary name.
setLinkTarget
in interface JRPrintHyperlink
linkTarget
- the hyperlink target namepublic java.lang.String getHyperlinkTooltip()
JRPrintHyperlink
getHyperlinkTooltip
in interface JRPrintHyperlink
public void setHyperlinkTooltip(java.lang.String hyperlinkTooltip)
JRPrintHyperlink
setHyperlinkTooltip
in interface JRPrintHyperlink
hyperlinkTooltip
- the tooltippublic java.awt.Color getDefaultLineColor()
getDefaultLineColor
in interface JRBoxContainer
public <T> void accept(PrintElementVisitor<T> visitor, T arg)
JRPrintElement
The element calls the method that corresponds to the element type on the visitor.
accept
in interface JRPrintElement
accept
in class JRBasePrintElement
T
- the type of the argument passed to the visit operationvisitor
- the visitor objectsarg
- the argument passed to the visit operation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |