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, wait
getStyle, getText
getCustomStyles, getDeclaration, getInlinedStyle, hasInlinedStyle, setCustomStyles, setCustomStyles, setInlinedStyle
public void setParentStyle(XMLTextStyle parentStyle)
setParentStyle
in interface StylableText
parentStyle
- the parent text stylepublic XMLTextStyle getParentStyle()
getParentStyle
in interface StylableText
public void setType(int type)
type
- the font typepublic int getType()
getType
in interface StylableText
public 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 StylableText
public boolean hasSize()
hasSize
in interface StylableText
public java.lang.String getSize()
getSize
in interface StylableText
public int getNumericSize()
getNumericSize
in interface StylableText
public void setFontFace(java.lang.String fontFace)
fontFace
- the font face of the textpublic java.lang.String getFontFace()
getFontFace
in interface StylableText
public boolean hasFontFace()
hasFontFace
in interface StylableText
public boolean hasDecoration()
hasDecoration
in interface StylableText
public void setColor(java.lang.String color)
color
- the html color of the textpublic java.lang.String getColor()
getColor
in interface StylableText
public void setBackgroundColor(java.lang.String background)
background
- the html background color of the textpublic java.lang.String getBackgroundColor()
getBackgroundColor
in interface StylableText
Copyright © 2016-2024 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence