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.
|
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 bordertheme
- The related themescolorMap
- The global map of colorspublic XSSFCellBorder(org.openxmlformats.schemas.spreadsheetml.x2006.main.CTBorder border)
border
- The ooxml object for the borderpublic XSSFCellBorder(org.openxmlformats.schemas.spreadsheetml.x2006.main.CTBorder border, IndexedColorMap colorMap)
border
- The ooxml object for the bordercolorMap
- The global map of colorspublic 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 definitionBorderStyle
public void setBorderStyle(XSSFCellBorder.BorderSide side, BorderStyle style)
side
- - - where to apply the color definitionstyle
- - border styleBorderStyle
public XSSFColor getBorderColor(XSSFCellBorder.BorderSide side)
side
- - where to apply the color definitionpublic void setBorderColor(XSSFCellBorder.BorderSide side, XSSFColor color)
side
- - where to apply the color definitioncolor
- - the color to usepublic 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.