public interface StylableText extends ParagraphElement
TYPE_NONE
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getBackgroundColor()
Return the html background color of the text.
|
java.lang.String |
getColor()
Return the html color of the text.
|
java.lang.String |
getFontFace()
Return the font face of the text.
|
java.lang.String |
getNamedSize()
Return the HTML named size of the text.
|
int |
getNumericSize()
Return the numeric size of the text.
|
XMLTextStyle |
getParentStyle()
Return the parent style.
|
java.lang.String |
getSize()
Return the size of the text.
|
java.lang.String |
getStyle()
Return the style class of the element.
|
java.lang.String |
getText()
Return the text.
|
int |
getType()
Return the font type of the text.
|
boolean |
hasDecoration()
Return true if the text has a decoration.
|
boolean |
hasFontFace()
Return true if the text has a font face.
|
boolean |
hasSize()
Return true if the text has a size.
|
void |
setParentStyle(XMLTextStyle parentStyle)
Set the parent text style.
|
getCustomStyles, getDeclaration, getInlinedStyle, hasInlinedStyle, setCustomStyles, setCustomStyles, setInlinedStyle
XMLTextStyle getParentStyle()
java.lang.String getText()
java.lang.String getStyle()
getStyle
in interface StyledElement
int getType()
java.lang.String getNamedSize()
boolean hasSize()
java.lang.String getSize()
int getNumericSize()
java.lang.String getFontFace()
boolean hasFontFace()
boolean hasDecoration()
java.lang.String getColor()
java.lang.String getBackgroundColor()
void setParentStyle(XMLTextStyle parentStyle)
parentStyle
- the parent text styleCopyright © 2016-2024 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence