public class XSSFTableStyle extends java.lang.Object implements TableStyle
TableStyle
implementation for styles defined in the OOXML styles.xml.
Also used for built-in styles via dummy XML generated from presetTableStyles.xml.Constructor and Description |
---|
XSSFTableStyle(int index,
org.openxmlformats.schemas.spreadsheetml.x2006.main.CTDxfs dxfs,
org.openxmlformats.schemas.spreadsheetml.x2006.main.CTTableStyle tableStyle,
IndexedColorMap colorMap) |
Modifier and Type | Method and Description |
---|---|
int |
getIndex()
Some clients may care where in the table style list this definition came from, so we'll track it.
|
java.lang.String |
getName() |
DifferentialStyleProvider |
getStyle(TableStyleType type) |
boolean |
isBuiltin()
Always false for these, these are user defined styles
|
public XSSFTableStyle(int index, org.openxmlformats.schemas.spreadsheetml.x2006.main.CTDxfs dxfs, org.openxmlformats.schemas.spreadsheetml.x2006.main.CTTableStyle tableStyle, IndexedColorMap colorMap)
index
- style definition index or built-in ordinal depending on usedxfs
- tableStyle
- colorMap
- indexed color map - default or customTableStyle.getIndex()
public java.lang.String getName()
getName
in interface TableStyle
public int getIndex()
TableStyle
getIndex
in interface TableStyle
public boolean isBuiltin()
isBuiltin
in interface TableStyle
public DifferentialStyleProvider getStyle(TableStyleType type)
getStyle
in interface TableStyle
Copyright 2018 The Apache Software Foundation or its licensors, as applicable.