public abstract class AbstractStylableText extends java.lang.Object implements StylableText
TYPE_NONE| Constructor and Description |
|---|
AbstractStylableText()
Constructor.
|
| 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.
|
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 |
setBackgroundColor(java.lang.String background)
Set the html background color of the text.
|
void |
setColor(java.lang.String color)
Set the html color of the text.
|
void |
setFontFace(java.lang.String fontFace)
Set the font face of the text.
|
void |
setParentStyle(XMLTextStyle parentStyle)
Set the parent text style.
|
void |
setSize(int size)
Set the size of the text.
|
void |
setSize(java.lang.String namedSize)
Set the HTML named size of the text.
|
void |
setType(int type)
Set the font type of the text.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetStyle, getTextgetCustomStyles, getDeclaration, getInlinedStyle, hasInlinedStyle, setCustomStyles, setCustomStyles, setInlinedStylepublic void setParentStyle(XMLTextStyle parentStyle)
setParentStyle in interface StylableTextparentStyle - the parent text stylepublic XMLTextStyle getParentStyle()
getParentStyle in interface StylableTextpublic void setType(int type)
type - the font typepublic int getType()
getType in interface StylableTextpublic void setSize(java.lang.String namedSize)
namedSize - the HTML named sizepublic void setSize(int size)
size - the size of the textpublic java.lang.String getNamedSize()
getNamedSize in interface StylableTextpublic boolean hasSize()
hasSize in interface StylableTextpublic java.lang.String getSize()
getSize in interface StylableTextpublic int getNumericSize()
getNumericSize in interface StylableTextpublic void setFontFace(java.lang.String fontFace)
fontFace - the font face of the textpublic java.lang.String getFontFace()
getFontFace in interface StylableTextpublic boolean hasFontFace()
hasFontFace in interface StylableTextpublic boolean hasDecoration()
hasDecoration in interface StylableTextpublic void setColor(java.lang.String color)
color - the html color of the textpublic java.lang.String getColor()
getColor in interface StylableTextpublic void setBackgroundColor(java.lang.String background)
background - the html background color of the textpublic java.lang.String getBackgroundColor()
getBackgroundColor in interface StylableTextCopyright © 2016-2024 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence