public final class HSSFBorderFormatting extends java.lang.Object implements BorderFormatting
Modifier | Constructor and Description |
---|---|
protected |
HSSFBorderFormatting(CFRuleBase cfRuleRecord,
HSSFWorkbook workbook) |
protected HSSFBorderFormatting(CFRuleBase cfRuleRecord, HSSFWorkbook workbook)
protected BorderFormatting getBorderFormattingBlock()
public BorderStyle getBorderBottom()
getBorderBottom
in interface BorderFormatting
public BorderStyle getBorderDiagonal()
getBorderDiagonal
in interface BorderFormatting
public BorderStyle getBorderLeft()
getBorderLeft
in interface BorderFormatting
public BorderStyle getBorderRight()
getBorderRight
in interface BorderFormatting
public BorderStyle getBorderTop()
getBorderTop
in interface BorderFormatting
public short getBottomBorderColor()
getBottomBorderColor
in interface BorderFormatting
public HSSFColor getBottomBorderColorColor()
getBottomBorderColorColor
in interface BorderFormatting
public short getDiagonalBorderColor()
getDiagonalBorderColor
in interface BorderFormatting
public HSSFColor getDiagonalBorderColorColor()
getDiagonalBorderColorColor
in interface BorderFormatting
public short getLeftBorderColor()
getLeftBorderColor
in interface BorderFormatting
public HSSFColor getLeftBorderColorColor()
getLeftBorderColorColor
in interface BorderFormatting
public short getRightBorderColor()
getRightBorderColor
in interface BorderFormatting
public HSSFColor getRightBorderColorColor()
getRightBorderColorColor
in interface BorderFormatting
public short getTopBorderColor()
getTopBorderColor
in interface BorderFormatting
public HSSFColor getTopBorderColorColor()
getTopBorderColorColor
in interface BorderFormatting
public boolean isBackwardDiagonalOn()
public boolean isForwardDiagonalOn()
public void setBackwardDiagonalOn(boolean on)
public void setForwardDiagonalOn(boolean on)
public void setBorderBottom(BorderStyle border)
BorderFormatting
setBorderBottom
in interface BorderFormatting
border
- The style of border to set.public void setBorderDiagonal(BorderStyle border)
BorderFormatting
setBorderDiagonal
in interface BorderFormatting
border
- The style of border to set.public void setBorderLeft(BorderStyle border)
BorderFormatting
setBorderLeft
in interface BorderFormatting
border
- The style of border to set.public void setBorderRight(BorderStyle border)
BorderFormatting
setBorderRight
in interface BorderFormatting
border
- The style of border to set.public void setBorderTop(BorderStyle border)
BorderFormatting
setBorderTop
in interface BorderFormatting
border
- The style of border to set.public void setBottomBorderColor(short color)
setBottomBorderColor
in interface BorderFormatting
public void setBottomBorderColor(Color color)
setBottomBorderColor
in interface BorderFormatting
public void setDiagonalBorderColor(short color)
setDiagonalBorderColor
in interface BorderFormatting
public void setDiagonalBorderColor(Color color)
setDiagonalBorderColor
in interface BorderFormatting
public void setLeftBorderColor(short color)
setLeftBorderColor
in interface BorderFormatting
public void setLeftBorderColor(Color color)
setLeftBorderColor
in interface BorderFormatting
public void setRightBorderColor(short color)
setRightBorderColor
in interface BorderFormatting
public void setRightBorderColor(Color color)
setRightBorderColor
in interface BorderFormatting
public void setTopBorderColor(short color)
setTopBorderColor
in interface BorderFormatting
public void setTopBorderColor(Color color)
setTopBorderColor
in interface BorderFormatting
public BorderStyle getBorderVertical()
BorderStyle.NONE
getBorderVertical
in interface BorderFormatting
BorderFormatting.getBorderVertical()
public BorderStyle getBorderHorizontal()
BorderStyle.NONE
getBorderHorizontal
in interface BorderFormatting
BorderFormatting.getBorderHorizontal()
public short getVerticalBorderColor()
HSSFColor.HSSFColorPredefined.AUTOMATIC
getVerticalBorderColor
in interface BorderFormatting
BorderFormatting.getVerticalBorderColor()
public Color getVerticalBorderColorColor()
HSSFColor.HSSFColorPredefined.AUTOMATIC
getVerticalBorderColorColor
in interface BorderFormatting
BorderFormatting.getVerticalBorderColorColor()
public short getHorizontalBorderColor()
HSSFColor.HSSFColorPredefined.AUTOMATIC
getHorizontalBorderColor
in interface BorderFormatting
BorderFormatting.getHorizontalBorderColor()
public Color getHorizontalBorderColorColor()
HSSFColor.HSSFColorPredefined.AUTOMATIC
getHorizontalBorderColorColor
in interface BorderFormatting
BorderFormatting.getHorizontalBorderColorColor()
public void setBorderHorizontal(BorderStyle border)
setBorderHorizontal
in interface BorderFormatting
border
- The style of border to set.BorderFormatting.setBorderHorizontal(org.apache.poi.ss.usermodel.BorderStyle)
public void setBorderVertical(BorderStyle border)
setBorderVertical
in interface BorderFormatting
border
- The style of border to set.BorderFormatting.setBorderVertical(org.apache.poi.ss.usermodel.BorderStyle)
public void setHorizontalBorderColor(short color)
setHorizontalBorderColor
in interface BorderFormatting
color
- indexBorderFormatting.setHorizontalBorderColor(short)
public void setHorizontalBorderColor(Color color)
setHorizontalBorderColor
in interface BorderFormatting
color
- indexBorderFormatting.setHorizontalBorderColor(org.apache.poi.ss.usermodel.Color)
public void setVerticalBorderColor(short color)
setVerticalBorderColor
in interface BorderFormatting
color
- indexBorderFormatting.setVerticalBorderColor(short)
public void setVerticalBorderColor(Color color)
setVerticalBorderColor
in interface BorderFormatting
color
- indexBorderFormatting.setVerticalBorderColor(org.apache.poi.ss.usermodel.Color)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.