Package org.apache.poi.hssf.usermodel
Class HSSFBorderFormatting
- java.lang.Object
-
- org.apache.poi.hssf.usermodel.HSSFBorderFormatting
-
- All Implemented Interfaces:
BorderFormatting
public final class HSSFBorderFormatting extends Object implements BorderFormatting
High level representation for Border Formatting component of Conditional Formatting settings
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
HSSFBorderFormatting(CFRuleBase cfRuleRecord, HSSFWorkbook workbook)
-
Method Summary
-
-
-
Constructor Detail
-
HSSFBorderFormatting
protected HSSFBorderFormatting(CFRuleBase cfRuleRecord, HSSFWorkbook workbook)
-
-
Method Detail
-
getBorderFormattingBlock
protected BorderFormatting getBorderFormattingBlock()
-
getBorderBottom
public BorderStyle getBorderBottom()
- Specified by:
getBorderBottom
in interfaceBorderFormatting
-
getBorderDiagonal
public BorderStyle getBorderDiagonal()
- Specified by:
getBorderDiagonal
in interfaceBorderFormatting
-
getBorderLeft
public BorderStyle getBorderLeft()
- Specified by:
getBorderLeft
in interfaceBorderFormatting
-
getBorderRight
public BorderStyle getBorderRight()
- Specified by:
getBorderRight
in interfaceBorderFormatting
-
getBorderTop
public BorderStyle getBorderTop()
- Specified by:
getBorderTop
in interfaceBorderFormatting
-
getBottomBorderColor
public short getBottomBorderColor()
- Specified by:
getBottomBorderColor
in interfaceBorderFormatting
-
getBottomBorderColorColor
public HSSFColor getBottomBorderColorColor()
- Specified by:
getBottomBorderColorColor
in interfaceBorderFormatting
-
getDiagonalBorderColor
public short getDiagonalBorderColor()
- Specified by:
getDiagonalBorderColor
in interfaceBorderFormatting
-
getDiagonalBorderColorColor
public HSSFColor getDiagonalBorderColorColor()
- Specified by:
getDiagonalBorderColorColor
in interfaceBorderFormatting
-
getLeftBorderColor
public short getLeftBorderColor()
- Specified by:
getLeftBorderColor
in interfaceBorderFormatting
-
getLeftBorderColorColor
public HSSFColor getLeftBorderColorColor()
- Specified by:
getLeftBorderColorColor
in interfaceBorderFormatting
-
getRightBorderColor
public short getRightBorderColor()
- Specified by:
getRightBorderColor
in interfaceBorderFormatting
-
getRightBorderColorColor
public HSSFColor getRightBorderColorColor()
- Specified by:
getRightBorderColorColor
in interfaceBorderFormatting
-
getTopBorderColor
public short getTopBorderColor()
- Specified by:
getTopBorderColor
in interfaceBorderFormatting
-
getTopBorderColorColor
public HSSFColor getTopBorderColorColor()
- Specified by:
getTopBorderColorColor
in interfaceBorderFormatting
-
isBackwardDiagonalOn
public boolean isBackwardDiagonalOn()
-
isForwardDiagonalOn
public boolean isForwardDiagonalOn()
-
setBackwardDiagonalOn
public void setBackwardDiagonalOn(boolean on)
-
setForwardDiagonalOn
public void setForwardDiagonalOn(boolean on)
-
setBorderBottom
public void setBorderBottom(BorderStyle border)
Description copied from interface:BorderFormatting
Set bottom border.- Specified by:
setBorderBottom
in interfaceBorderFormatting
- Parameters:
border
- The style of border to set.
-
setBorderDiagonal
public void setBorderDiagonal(BorderStyle border)
Description copied from interface:BorderFormatting
Set diagonal border.- Specified by:
setBorderDiagonal
in interfaceBorderFormatting
- Parameters:
border
- The style of border to set.
-
setBorderLeft
public void setBorderLeft(BorderStyle border)
Description copied from interface:BorderFormatting
Set left border.- Specified by:
setBorderLeft
in interfaceBorderFormatting
- Parameters:
border
- The style of border to set.
-
setBorderRight
public void setBorderRight(BorderStyle border)
Description copied from interface:BorderFormatting
Set right border.- Specified by:
setBorderRight
in interfaceBorderFormatting
- Parameters:
border
- The style of border to set.
-
setBorderTop
public void setBorderTop(BorderStyle border)
Description copied from interface:BorderFormatting
Set top border.- Specified by:
setBorderTop
in interfaceBorderFormatting
- Parameters:
border
- The style of border to set.
-
setBottomBorderColor
public void setBottomBorderColor(short color)
- Specified by:
setBottomBorderColor
in interfaceBorderFormatting
-
setBottomBorderColor
public void setBottomBorderColor(Color color)
- Specified by:
setBottomBorderColor
in interfaceBorderFormatting
-
setDiagonalBorderColor
public void setDiagonalBorderColor(short color)
- Specified by:
setDiagonalBorderColor
in interfaceBorderFormatting
-
setDiagonalBorderColor
public void setDiagonalBorderColor(Color color)
- Specified by:
setDiagonalBorderColor
in interfaceBorderFormatting
-
setLeftBorderColor
public void setLeftBorderColor(short color)
- Specified by:
setLeftBorderColor
in interfaceBorderFormatting
-
setLeftBorderColor
public void setLeftBorderColor(Color color)
- Specified by:
setLeftBorderColor
in interfaceBorderFormatting
-
setRightBorderColor
public void setRightBorderColor(short color)
- Specified by:
setRightBorderColor
in interfaceBorderFormatting
-
setRightBorderColor
public void setRightBorderColor(Color color)
- Specified by:
setRightBorderColor
in interfaceBorderFormatting
-
setTopBorderColor
public void setTopBorderColor(short color)
- Specified by:
setTopBorderColor
in interfaceBorderFormatting
-
setTopBorderColor
public void setTopBorderColor(Color color)
- Specified by:
setTopBorderColor
in interfaceBorderFormatting
-
getBorderVertical
public BorderStyle getBorderVertical()
HSSF doesn't support table borders, so alwaysBorderStyle.NONE
- Specified by:
getBorderVertical
in interfaceBorderFormatting
- Returns:
- border style
- See Also:
BorderFormatting.getBorderVertical()
-
getBorderHorizontal
public BorderStyle getBorderHorizontal()
HSSF doesn't support table borders, so alwaysBorderStyle.NONE
- Specified by:
getBorderHorizontal
in interfaceBorderFormatting
- Returns:
- border style
- See Also:
BorderFormatting.getBorderHorizontal()
-
getVerticalBorderColor
public short getVerticalBorderColor()
HSSF Doesn't support table borders, so alwaysHSSFColor.HSSFColorPredefined.AUTOMATIC
- Specified by:
getVerticalBorderColor
in interfaceBorderFormatting
- Returns:
- color index
- See Also:
BorderFormatting.getVerticalBorderColor()
-
getVerticalBorderColorColor
public Color getVerticalBorderColorColor()
HSSF Doesn't support table borders, so alwaysHSSFColor.HSSFColorPredefined.AUTOMATIC
- Specified by:
getVerticalBorderColorColor
in interfaceBorderFormatting
- Returns:
- color
- See Also:
BorderFormatting.getVerticalBorderColorColor()
-
getHorizontalBorderColor
public short getHorizontalBorderColor()
HSSF Doesn't support table borders, so alwaysHSSFColor.HSSFColorPredefined.AUTOMATIC
- Specified by:
getHorizontalBorderColor
in interfaceBorderFormatting
- Returns:
- color index
- See Also:
BorderFormatting.getHorizontalBorderColor()
-
getHorizontalBorderColorColor
public Color getHorizontalBorderColorColor()
HSSF Doesn't support table borders, so alwaysHSSFColor.HSSFColorPredefined.AUTOMATIC
- Specified by:
getHorizontalBorderColorColor
in interfaceBorderFormatting
- Returns:
- color
- See Also:
BorderFormatting.getHorizontalBorderColorColor()
-
setBorderHorizontal
public void setBorderHorizontal(BorderStyle border)
Not available for HSSF.- Specified by:
setBorderHorizontal
in interfaceBorderFormatting
- Parameters:
border
- The style of border to set.- See Also:
BorderFormatting.setBorderHorizontal(org.apache.poi.ss.usermodel.BorderStyle)
-
setBorderVertical
public void setBorderVertical(BorderStyle border)
Not available for HSSF.- Specified by:
setBorderVertical
in interfaceBorderFormatting
- Parameters:
border
- The style of border to set.- See Also:
BorderFormatting.setBorderVertical(org.apache.poi.ss.usermodel.BorderStyle)
-
setHorizontalBorderColor
public void setHorizontalBorderColor(short color)
Not available for HSSF.- Specified by:
setHorizontalBorderColor
in interfaceBorderFormatting
- Parameters:
color
- index- See Also:
BorderFormatting.setHorizontalBorderColor(short)
-
setHorizontalBorderColor
public void setHorizontalBorderColor(Color color)
Not available for HSSF.- Specified by:
setHorizontalBorderColor
in interfaceBorderFormatting
- Parameters:
color
- index- See Also:
BorderFormatting.setHorizontalBorderColor(org.apache.poi.ss.usermodel.Color)
-
setVerticalBorderColor
public void setVerticalBorderColor(short color)
Not available for HSSF.- Specified by:
setVerticalBorderColor
in interfaceBorderFormatting
- Parameters:
color
- index- See Also:
BorderFormatting.setVerticalBorderColor(short)
-
setVerticalBorderColor
public void setVerticalBorderColor(Color color)
Not available for HSSF.- Specified by:
setVerticalBorderColor
in interfaceBorderFormatting
- Parameters:
color
- index- See Also:
BorderFormatting.setVerticalBorderColor(org.apache.poi.ss.usermodel.Color)
-
-