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.
(OOXML styles.xml 中定义的样式的 TableStyle 实现。也用于通过从 presetTableStyles.xml 生成的虚拟 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 use
(index - 样式定义索引或内置序号,取决于使用)
dxfs
-
(dxfs -)
tableStyle
-
(表格样式 -)
colorMap
- indexed color map - default or custom
(colorMap - 索引颜色图 - 默认或自定义)
TableStyle.getIndex()
public java.lang.String getName()
getName
in interface
TableStyle
(接口 TableStyle 中的 getName)
public int getIndex()
TableStyle
getIndex
in interface
TableStyle
(接口 TableStyle 中的 getIndex)
public boolean isBuiltin()
isBuiltin
in interface
TableStyle
(isBuiltin 接口 TableStyle)
public DifferentialStyleProvider getStyle(TableStyleType type)
getStyle
in interface
TableStyle
(接口 TableStyle 中的 getStyle)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.