public class XSSFCellBorder
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
XSSFCellBorder.BorderSide
The enumeration value indicating the side being used for a cell border.
(指示用于单元格边框的边的枚举值。)
|
| Constructor and Description |
|---|
XSSFCellBorder()
Creates a new, empty Cell Border.
|
XSSFCellBorder(org.openxmlformats.schemas.spreadsheetml.x2006.main.CTBorder border)
Creates a Cell Border from the supplied XML definition
|
XSSFCellBorder(org.openxmlformats.schemas.spreadsheetml.x2006.main.CTBorder border, IndexedColorMap colorMap) |
XSSFCellBorder(org.openxmlformats.schemas.spreadsheetml.x2006.main.CTBorder border, ThemesTable theme, IndexedColorMap colorMap)
Creates a Cell Border from the supplied XML definition
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
XSSFColor |
getBorderColor(XSSFCellBorder.BorderSide side)
Get the color to use for the selected border
(获取用于选定边框的颜色)
|
BorderStyle |
getBorderStyle(XSSFCellBorder.BorderSide side)
Get the type of border to use for the selected border
(获取用于选定边框的边框类型)
|
org.openxmlformats.schemas.spreadsheetml.x2006.main.CTBorder |
getCTBorder()
Returns the underlying XML bean.
(返回底层 XML bean。)
|
int |
hashCode() |
void |
setBorderColor(XSSFCellBorder.BorderSide side, XSSFColor color)
Set the color to use for the selected border
(设置用于选定边框的颜色)
|
void |
setBorderStyle(XSSFCellBorder.BorderSide side, BorderStyle style)
Set the type of border to use for the selected border
(设置用于选定边框的边框类型)
|
void |
setThemesTable(ThemesTable themes)
Records the Themes Table that is associated with the current font, used when looking up theme based colours and properties.
(记录与当前字体关联的主题表,在查找基于主题的颜色和属性时使用。)
|
public XSSFCellBorder(org.openxmlformats.schemas.spreadsheetml.x2006.main.CTBorder border,
ThemesTable theme,
IndexedColorMap colorMap)
border - The ooxml object for the border
(边框 - 边框的 ooxml 对象)
theme - The related themes
(主题 - 相关主题)
colorMap - The global map of colors
(colorMap - 颜色的全球地图)
public XSSFCellBorder(org.openxmlformats.schemas.spreadsheetml.x2006.main.CTBorder border)
border - The ooxml object for the border
(边框 - 边框的 ooxml 对象)
public XSSFCellBorder(org.openxmlformats.schemas.spreadsheetml.x2006.main.CTBorder border,
IndexedColorMap colorMap)
border - The ooxml object for the border
(边框 - 边框的 ooxml 对象)
colorMap - The global map of colors
(colorMap - 颜色的全球地图)
public XSSFCellBorder()
public void setThemesTable(ThemesTable themes)
@Internal public org.openxmlformats.schemas.spreadsheetml.x2006.main.CTBorder getCTBorder()
public BorderStyle getBorderStyle(XSSFCellBorder.BorderSide side)
side - - - where to apply the color definition
(side - - - 应用颜色定义的位置)
BorderStyle
public void setBorderStyle(XSSFCellBorder.BorderSide side, BorderStyle style)
side - - - where to apply the color definition
(side - - - 应用颜色定义的位置)
style - - border style
(style - - 边框样式)
BorderStyle
public XSSFColor getBorderColor(XSSFCellBorder.BorderSide side)
side - - where to apply the color definition
(side - - 应用颜色定义的位置)
public void setBorderColor(XSSFCellBorder.BorderSide side, XSSFColor color)
side - - where to apply the color definition
(side - - 应用颜色定义的位置)
color - - the color to use
(color - - 要使用的颜色)
public int hashCode()
hashCode in class
java.lang.Object
public boolean equals(java.lang.Object o)
equals in class
java.lang.Object
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.