|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--org.jfree.report.elementfactory.ElementFactory
|
+--org.jfree.report.elementfactory.TextElementFactory
The text element factory is the abstract base class for all text element factory implementations. It provides common properties shared among all text elements.
| Constructor Summary | |
TextElementFactory()
Default Constructor. |
|
| Method Summary | |
protected void |
applyStyle(ElementStyleSheet style)
Applies the defined element style to the given stylesheet. |
java.lang.Boolean |
getBold()
Returns the state of the bold flag for the font. |
java.awt.Color |
getColor()
Returns the text color for the new element. |
java.lang.Boolean |
getEmbedFont()
Returns the font embedding flag for the new text elements. |
java.lang.String |
getEncoding()
Returns the font encoding used to write the text. |
java.lang.String |
getFontName()
Returns the name of the font that should be used to print the text. |
java.lang.Integer |
getFontSize()
Returns the font size in points. |
ElementAlignment |
getHorizontalAlignment()
Returns the horizontal alignment for the content of this text element. |
java.lang.Boolean |
getItalic()
Returns the state of the italic flag for the font. |
java.lang.Float |
getLineHeight()
Returns the lineheight defined for the text element. |
java.lang.String |
getReservedLiteral()
Returns the defined reserved literal, which should be appended to the text to signal text, which was not completly printed. |
java.lang.Boolean |
getStrikethrough()
Returns the state of the strike through flag for the font. |
java.lang.Boolean |
getTrimTextContent()
Returns, whether the text lines should be trimmed. |
java.lang.Boolean |
getUnderline()
Returns the state of the underline flag for the font. |
ElementAlignment |
getVerticalAlignment()
Returns the vertical alignment for the content of this text element. |
java.lang.Boolean |
getWrapText()
Returns, whether the text should be wrapped in Excel-cells. |
void |
setBold(java.lang.Boolean bold)
Defines the state of the bold flag for the font. |
void |
setColor(java.awt.Color color)
Defines the text color for the new element. |
void |
setEmbedFont(java.lang.Boolean embedFont)
Defines that the font should be embedded if possible. |
void |
setEncoding(java.lang.String encoding)
Defines the font encoding used to write the text. |
void |
setFontName(java.lang.String fontName)
Defines the name of the font that should be used to print the text. |
void |
setFontSize(java.lang.Integer fontSize)
Returns the font size in points. |
void |
setHorizontalAlignment(ElementAlignment horizontalAlignment)
Defines the horizontal alignment for the content of this text element. |
void |
setItalic(java.lang.Boolean italic)
Defines the state of the italic flag for the font. |
void |
setLineHeight(java.lang.Float lineHeight)
Defines the lineheight defined for the text element. |
void |
setReservedLiteral(java.lang.String reservedLiteral)
Defines the defined reserved literal, which should be appended to the text to signal text, which was not completly printed. |
void |
setStrikethrough(java.lang.Boolean strikethrough)
Defines the state of the strike through flag for the font. |
void |
setTrimTextContent(java.lang.Boolean trimTextContent)
Defines, whether the text lines should be trimmed. |
void |
setUnderline(java.lang.Boolean underline)
Defines the state of the underline flag for the font. |
void |
setVerticalAlignment(ElementAlignment verticalAlignment)
Defines the vertical alignment for the content of this text element. |
void |
setWrapText(java.lang.Boolean wrapText)
Defines, whether the text should be wrapped in excel cells. |
| Methods inherited from class org.jfree.report.elementfactory.ElementFactory |
applyElementName,
createElement,
getAbsolutePosition,
getDynamicHeight,
getHRefTarget,
getHRefWindow,
getLayoutCachable,
getMaximumSize,
getMinimumSize,
getName,
getPreferredSize,
getVisible,
setAbsolutePosition,
setDynamicHeight,
setHRefTarget,
setHRefWindow,
setLayoutCachable,
setMaximumSize,
setMinimumSize,
setName,
setPreferredSize,
setVisible |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public TextElementFactory()
| Method Detail |
public java.lang.Boolean getEmbedFont()
public void setEmbedFont(java.lang.Boolean embedFont)
embedFont - embedds the font if possible.public java.lang.String getFontName()
public void setFontName(java.lang.String fontName)
fontName - the name of the font.public java.lang.Boolean getBold()
public void setBold(java.lang.Boolean bold)
bold - the bold-flag.public java.lang.Boolean getItalic()
public void setItalic(java.lang.Boolean italic)
italic - the italic-flag.public java.lang.Boolean getUnderline()
public void setUnderline(java.lang.Boolean underline)
underline - the underline-flag.public java.lang.Boolean getStrikethrough()
public void setStrikethrough(java.lang.Boolean strikethrough)
strikethrough - the strikethrough-flag.public java.lang.Integer getFontSize()
public void setFontSize(java.lang.Integer fontSize)
fontSize - the font size.public java.lang.Float getLineHeight()
public void setLineHeight(java.lang.Float lineHeight)
lineHeight - the line height.public java.awt.Color getColor()
public void setColor(java.awt.Color color)
color - the text color.public java.lang.String getEncoding()
public void setEncoding(java.lang.String encoding)
encoding - the font encoding.public ElementAlignment getVerticalAlignment()
public void setVerticalAlignment(ElementAlignment verticalAlignment)
verticalAlignment - the vertical alignment.public ElementAlignment getHorizontalAlignment()
public void setHorizontalAlignment(ElementAlignment horizontalAlignment)
horizontalAlignment - the vertical alignment.public java.lang.String getReservedLiteral()
public void setReservedLiteral(java.lang.String reservedLiteral)
reservedLiteral - the reserved literal.public java.lang.Boolean getTrimTextContent()
public void setTrimTextContent(java.lang.Boolean trimTextContent)
trimTextContent - Boolean.TRUE, if the text should be trimmed, Boolean.FALSE if
the text should never be trimmed or null, if the default
should be applied.public java.lang.Boolean getWrapText()
public void setWrapText(java.lang.Boolean wrapText)
wrapText - the wrap text flag.protected void applyStyle(ElementStyleSheet style)
style - the stlyesheet.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||