Modifier and Type | Class and Description |
---|---|
static class |
ThemesTable.ThemeElement |
Constructor and Description |
---|
ThemesTable()
Create a new, empty ThemesTable
|
ThemesTable(PackagePart part)
Construct a ThemesTable.
|
ThemesTable(ThemeDocument theme)
Construct a ThemesTable from an existing ThemeDocument.
|
Modifier and Type | Method and Description |
---|---|
XSSFColor |
getThemeColor(int idx)
Convert a theme "index" (as used by fonts etc) into a color.
|
void |
inheritFromThemeAsRequired(XSSFColor color)
If the colour is based on a theme, then inherit
information (currently just colours) from it as
required.
|
void |
writeTo(OutputStream out)
Write this table out as XML.
|
_invokeOnDocumentRead, addRelation, createRelationship, createRelationship, createRelationship, getPackagePart, getParent, getRelationById, getRelationId, getRelationPartById, getRelationParts, getRelations, isCommited, isCommitted, setCommited, setCommitted, toString
public ThemesTable()
public ThemesTable(PackagePart part) throws IOException
part
- A PackagePart.IOException
public ThemesTable(ThemeDocument theme)
theme
- A ThemeDocument.public XSSFColor getThemeColor(int idx)
getThemeColor
in interface Themes
idx
- A theme "index"public void inheritFromThemeAsRequired(XSSFColor color)
inheritFromThemeAsRequired
in interface Themes
public void writeTo(OutputStream out) throws IOException
out
- The stream to write to.IOException
- if an error occurs while writing.Copyright © 2010 - 2020 Adobe. All Rights Reserved