public class XSSFCellBorder extends 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,
ThemesTable theme)
Creates a Cell Border from the supplied XML definition
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(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() |
boolean |
isDiagonalDown() |
boolean |
isDiagonalUp() |
void |
prepareBorder(short left,
Color leftColor,
short top,
Color topColor,
short right,
Color rightColor,
short bottom,
Color bottomColor) |
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 |
setBorderStyle(XSSFCellBorder.BorderSide side,
int ordinal) |
void |
setDiagonalDown(boolean down) |
void |
setDiagonalUp(boolean up) |
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)
public XSSFCellBorder(org.openxmlformats.schemas.spreadsheetml.x2006.main.CTBorder border)
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 definitionBorderStyle
public void setBorderStyle(XSSFCellBorder.BorderSide side, BorderStyle style)
side
- - - where to apply the color definitionstyle
- - border styleBorderStyle
public void setBorderStyle(XSSFCellBorder.BorderSide side, int ordinal)
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 void setDiagonalUp(boolean up)
public boolean isDiagonalUp()
public void setDiagonalDown(boolean down)
public boolean isDiagonalDown()
Copyright © 2020. All rights reserved.