public class TextStyle extends Object implements FontFaceContainerStyle
| Modifier and Type | Field and Description |
|---|---|
static TextStyle |
DEFAULT_TEXT_STYLE
The default text style
|
| Modifier and Type | Method and Description |
|---|---|
void |
addToElements(OdsElements odsElements)
Add this to OdsElements
|
void |
appendXMLContent(XMLUtil util,
Appendable appendable)
Write the XML format for this object.
|
static TextStyleBuilder |
builder(String styleName)
TextStyles are hidden by default.
|
ObjectStyleFamily |
getFamily()
19.476 style:family
|
FontFace |
getFontFace() |
String |
getKey()
The identifier of this style is built on the name (19.498 style:name) and the family
|
String |
getName()
Get the name of this text style.
|
boolean |
isHidden() |
boolean |
isNotEmpty() |
public static final TextStyle DEFAULT_TEXT_STYLE
public static TextStyleBuilder builder(String styleName)
styleName - name of the style to buildpublic void appendXMLContent(XMLUtil util, Appendable appendable) throws IOException
XMLConvertibleappendXMLContent in interface XMLConvertibleutil - a helper objectappendable - the appendable to append data toIOException - if the style can't be addedpublic FontFace getFontFace()
getFontFace in interface FontFaceContainerStylepublic ObjectStyleFamily getFamily()
ObjectStylegetFamily in interface ObjectStylepublic String getName()
getName in interface NamedObjectpublic boolean isNotEmpty()
public String getKey()
ObjectStylegetKey in interface ObjectStylepublic boolean isHidden()
public void addToElements(OdsElements odsElements)
AddableToOdsElementsaddToElements in interface AddableToOdsElementsodsElements - the OdsElements instance where to add this.Copyright © 2016–2021. All rights reserved.