public class XMLTextStyle extends java.lang.Object implements ParagraphElementParent, ParagraphElement, NonEmptyLineAscendant
TYPE_NONE
Constructor and Description |
---|
XMLTextStyle() |
XMLTextStyle(XMLTextStyle parentStyle) |
Modifier and Type | Method and Description |
---|---|
void |
addElement(ParagraphElement element)
Add an element.
|
java.lang.String |
getBackgroundColor()
Return the html background color of the text.
|
java.lang.String |
getColor()
Return the html color of the text.
|
java.util.List<ParagraphElement> |
getElements()
Return the list of children elements.
|
java.lang.String |
getFontFace()
Return the font face of the text.
|
StylableText |
getLastTextElement()
Return the last text element.
|
java.lang.String |
getNamedSize()
Return the HTML named size of the text.
|
int |
getNumericSize()
Return the numeric size of the text.
|
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 |
setElements(java.util.List<ParagraphElement> elements)
Set the list of elements.
|
void |
setFontFace(java.lang.String fontFace)
Set the font face of the text.
|
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
countElements, getElement, getFirstElement, getLastElement, hasElements, isEmpty
getCustomStyles, getDeclaration, getInlinedStyle, getStyle, hasInlinedStyle, setCustomStyles, setCustomStyles, setInlinedStyle
public XMLTextStyle()
public XMLTextStyle(XMLTextStyle parentStyle)
public void setType(int type)
type
- the font typepublic int getType()
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()
public boolean hasSize()
public java.lang.String getSize()
public int getNumericSize()
public void setFontFace(java.lang.String fontFace)
fontFace
- the font face of the textpublic java.lang.String getFontFace()
public boolean hasFontFace()
public boolean hasDecoration()
public void setColor(java.lang.String color)
color
- the html color of the textpublic java.lang.String getColor()
public void setBackgroundColor(java.lang.String background)
background
- the html background color of the textpublic java.lang.String getBackgroundColor()
public void addElement(ParagraphElement element)
addElement
in interface ParagraphElementParent
element
- the elementpublic java.util.List<ParagraphElement> getElements()
getElements
in interface ParagraphElementParent
public StylableText getLastTextElement()
public void setElements(java.util.List<ParagraphElement> elements)
setElements
in interface ParagraphElementParent
elements
- the list of elementsCopyright © 2016-2024 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence