|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pentaho.reporting.engine.classic.core.elementfactory.ElementFactory
org.pentaho.reporting.engine.classic.core.elementfactory.TextElementFactory
public abstract class 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.
Method Summary | |
---|---|
Boolean |
getBold()
Returns the state of the bold flag for the font. |
Boolean |
getEmbedFont()
Returns the font embedding flag for the new text elements. |
String |
getEncoding()
Returns the font encoding used to write the text. |
String |
getFontName()
Returns the name of the font that should be used to print the text. |
Integer |
getFontSize()
Returns the font size in points. |
Boolean |
getItalic()
Returns the state of the italic flag for the font. |
Float |
getLineHeight()
Returns the lineheight defined for the text element. |
Float |
getMaximumLetterSpacing()
Returns the defined maximum letter spacing for a text element. |
Float |
getMinimumLetterSpacing()
Returns the defined minimum letter spacing for a text element. |
Float |
getOptimumLetterSpacing()
Return optimum letter spacing for a text element. |
String |
getReservedLiteral()
Returns the defined reserved literal, which should be appended to the text to signal text, which was not completly printed. |
Boolean |
getStrikethrough()
Returns the state of the strike through flag for the font. |
Boolean |
getTrimTextContent()
Returns, whether the text lines should be trimmed. |
Boolean |
getUnderline()
Returns the state of the underline flag for the font. |
VerticalTextAlign |
getVerticalTextAlignment()
Returns the defined vertical text alignment for this element. |
WhitespaceCollapse |
getWhitespaceCollapse()
Returns how the layouter treats whitespaces in the text of a text-element. |
TextWrap |
getWrap()
Returns how and when text-wrapping should occur inside a text element. |
Boolean |
getWrapText()
Returns, whether the text should be wrapped in Excel-cells. |
void |
setBold(Boolean bold)
Defines the state of the bold flag for the font. |
void |
setEmbedFont(Boolean embedFont)
Defines that the font should be embedded if possible. |
void |
setEncoding(String encoding)
Defines the font encoding used to write the text. |
void |
setFontName(String fontName)
Defines the name of the font that should be used to print the text. |
void |
setFontSize(Integer fontSize)
Returns the font size in points. |
void |
setItalic(Boolean italic)
Defines the state of the italic flag for the font. |
void |
setLineHeight(Float lineHeight)
Defines the lineheight defined for the text element. |
void |
setMaximumLetterSpacing(Float maximumLetterSpacing)
Defines the maximum letter spacing for a text element. |
void |
setMinimumLetterSpacing(Float minimumLetterSpacing)
Defines the minimum letter spacing for a text element. |
void |
setOptimumLetterSpacing(Float optimumLetterSpacing)
Defines the optimum letter spacing for a text element. |
void |
setReservedLiteral(String reservedLiteral)
Defines the defined reserved literal, which should be appended to the text to signal text, which was not completly printed. |
void |
setStrikethrough(Boolean strikethrough)
Defines the state of the strike through flag for the font. |
void |
setTrimTextContent(Boolean trimTextContent)
Defines, whether the text lines should be trimmed. |
void |
setUnderline(Boolean underline)
Defines the state of the underline flag for the font. |
void |
setVerticalTextAlignment(VerticalTextAlign verticalTextAlignment)
Defines the vertical text alignment for this element. |
void |
setWhitespaceCollapse(WhitespaceCollapse whitespaceCollapse)
Defines how to treat whitespaces in the text of a text-element. |
void |
setWrap(TextWrap wrap)
Defines how and when text-wrapping should occur inside a text element. |
void |
setWrapText(Boolean wrapText)
Defines, whether the text should be wrapped in excel cells. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public VerticalTextAlign getVerticalTextAlignment()
public void setVerticalTextAlignment(VerticalTextAlign verticalTextAlignment)
verticalTextAlignment
- the vertical text alignment property or null, if the property should not be defined.public TextWrap getWrap()
TextWrap
public void setWrap(TextWrap wrap)
wrap
- the defined text-wrap property.TextWrap
public WhitespaceCollapse getWhitespaceCollapse()
WhitespaceCollapse
public void setWhitespaceCollapse(WhitespaceCollapse whitespaceCollapse)
whitespaceCollapse
- the white space collapse constant or null, if undefined.WhitespaceCollapse
public Float getMaximumLetterSpacing()
public void setMaximumLetterSpacing(Float maximumLetterSpacing)
maximumLetterSpacing
- the maximum letter spacing.public Float getMinimumLetterSpacing()
public void setMinimumLetterSpacing(Float minimumLetterSpacing)
minimumLetterSpacing
- the minimum letter spacing or null, if undefined.public Float getOptimumLetterSpacing()
public void setOptimumLetterSpacing(Float optimumLetterSpacing)
optimumLetterSpacing
- the optimum letter spacing or null, if undefined.public Boolean getEmbedFont()
public void setEmbedFont(Boolean embedFont)
embedFont
- embedds the font if possible.public String getFontName()
public void setFontName(String fontName)
fontName
- the name of the font.public Boolean getBold()
public void setBold(Boolean bold)
bold
- the bold-flag.public Boolean getItalic()
public void setItalic(Boolean italic)
italic
- the italic-flag.public Boolean getUnderline()
public void setUnderline(Boolean underline)
underline
- the underline-flag.public Boolean getStrikethrough()
public void setStrikethrough(Boolean strikethrough)
strikethrough
- the strikethrough-flag.public Integer getFontSize()
public void setFontSize(Integer fontSize)
fontSize
- the font size.public Float getLineHeight()
public void setLineHeight(Float lineHeight)
lineHeight
- the line height.public String getEncoding()
public void setEncoding(String encoding)
encoding
- the font encoding.public String getReservedLiteral()
public void setReservedLiteral(String reservedLiteral)
reservedLiteral
- the reserved literal.public Boolean getTrimTextContent()
public void setTrimTextContent(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 Boolean getWrapText()
public void setWrapText(Boolean wrapText)
wrapText
- the wrap text flag.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |