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 protectedHSSFBorderFormatting(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:
getBorderBottomin interfaceBorderFormatting
-
getBorderDiagonal
public BorderStyle getBorderDiagonal()
- Specified by:
getBorderDiagonalin interfaceBorderFormatting
-
getBorderLeft
public BorderStyle getBorderLeft()
- Specified by:
getBorderLeftin interfaceBorderFormatting
-
getBorderRight
public BorderStyle getBorderRight()
- Specified by:
getBorderRightin interfaceBorderFormatting
-
getBorderTop
public BorderStyle getBorderTop()
- Specified by:
getBorderTopin interfaceBorderFormatting
-
getBottomBorderColor
public short getBottomBorderColor()
- Specified by:
getBottomBorderColorin interfaceBorderFormatting
-
getBottomBorderColorColor
public HSSFColor getBottomBorderColorColor()
- Specified by:
getBottomBorderColorColorin interfaceBorderFormatting
-
getDiagonalBorderColor
public short getDiagonalBorderColor()
- Specified by:
getDiagonalBorderColorin interfaceBorderFormatting
-
getDiagonalBorderColorColor
public HSSFColor getDiagonalBorderColorColor()
- Specified by:
getDiagonalBorderColorColorin interfaceBorderFormatting
-
getLeftBorderColor
public short getLeftBorderColor()
- Specified by:
getLeftBorderColorin interfaceBorderFormatting
-
getLeftBorderColorColor
public HSSFColor getLeftBorderColorColor()
- Specified by:
getLeftBorderColorColorin interfaceBorderFormatting
-
getRightBorderColor
public short getRightBorderColor()
- Specified by:
getRightBorderColorin interfaceBorderFormatting
-
getRightBorderColorColor
public HSSFColor getRightBorderColorColor()
- Specified by:
getRightBorderColorColorin interfaceBorderFormatting
-
getTopBorderColor
public short getTopBorderColor()
- Specified by:
getTopBorderColorin interfaceBorderFormatting
-
getTopBorderColorColor
public HSSFColor getTopBorderColorColor()
- Specified by:
getTopBorderColorColorin 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:BorderFormattingSet bottom border.- Specified by:
setBorderBottomin interfaceBorderFormatting- Parameters:
border- The style of border to set.
-
setBorderDiagonal
public void setBorderDiagonal(BorderStyle border)
Description copied from interface:BorderFormattingSet diagonal border.- Specified by:
setBorderDiagonalin interfaceBorderFormatting- Parameters:
border- The style of border to set.
-
setBorderLeft
public void setBorderLeft(BorderStyle border)
Description copied from interface:BorderFormattingSet left border.- Specified by:
setBorderLeftin interfaceBorderFormatting- Parameters:
border- The style of border to set.
-
setBorderRight
public void setBorderRight(BorderStyle border)
Description copied from interface:BorderFormattingSet right border.- Specified by:
setBorderRightin interfaceBorderFormatting- Parameters:
border- The style of border to set.
-
setBorderTop
public void setBorderTop(BorderStyle border)
Description copied from interface:BorderFormattingSet top border.- Specified by:
setBorderTopin interfaceBorderFormatting- Parameters:
border- The style of border to set.
-
setBottomBorderColor
public void setBottomBorderColor(short color)
- Specified by:
setBottomBorderColorin interfaceBorderFormatting
-
setBottomBorderColor
public void setBottomBorderColor(Color color)
- Specified by:
setBottomBorderColorin interfaceBorderFormatting
-
setDiagonalBorderColor
public void setDiagonalBorderColor(short color)
- Specified by:
setDiagonalBorderColorin interfaceBorderFormatting
-
setDiagonalBorderColor
public void setDiagonalBorderColor(Color color)
- Specified by:
setDiagonalBorderColorin interfaceBorderFormatting
-
setLeftBorderColor
public void setLeftBorderColor(short color)
- Specified by:
setLeftBorderColorin interfaceBorderFormatting
-
setLeftBorderColor
public void setLeftBorderColor(Color color)
- Specified by:
setLeftBorderColorin interfaceBorderFormatting
-
setRightBorderColor
public void setRightBorderColor(short color)
- Specified by:
setRightBorderColorin interfaceBorderFormatting
-
setRightBorderColor
public void setRightBorderColor(Color color)
- Specified by:
setRightBorderColorin interfaceBorderFormatting
-
setTopBorderColor
public void setTopBorderColor(short color)
- Specified by:
setTopBorderColorin interfaceBorderFormatting
-
setTopBorderColor
public void setTopBorderColor(Color color)
- Specified by:
setTopBorderColorin interfaceBorderFormatting
-
getBorderVertical
public BorderStyle getBorderVertical()
HSSF doesn't support table borders, so alwaysBorderStyle.NONE- Specified by:
getBorderVerticalin interfaceBorderFormatting- Returns:
- border style
- See Also:
BorderFormatting.getBorderVertical()
-
getBorderHorizontal
public BorderStyle getBorderHorizontal()
HSSF doesn't support table borders, so alwaysBorderStyle.NONE- Specified by:
getBorderHorizontalin interfaceBorderFormatting- Returns:
- border style
- See Also:
BorderFormatting.getBorderHorizontal()
-
getVerticalBorderColor
public short getVerticalBorderColor()
HSSF Doesn't support table borders, so alwaysHSSFColor.HSSFColorPredefined.AUTOMATIC- Specified by:
getVerticalBorderColorin interfaceBorderFormatting- Returns:
- color index
- See Also:
BorderFormatting.getVerticalBorderColor()
-
getVerticalBorderColorColor
public Color getVerticalBorderColorColor()
HSSF Doesn't support table borders, so alwaysHSSFColor.HSSFColorPredefined.AUTOMATIC- Specified by:
getVerticalBorderColorColorin interfaceBorderFormatting- Returns:
- color
- See Also:
BorderFormatting.getVerticalBorderColorColor()
-
getHorizontalBorderColor
public short getHorizontalBorderColor()
HSSF Doesn't support table borders, so alwaysHSSFColor.HSSFColorPredefined.AUTOMATIC- Specified by:
getHorizontalBorderColorin interfaceBorderFormatting- Returns:
- color index
- See Also:
BorderFormatting.getHorizontalBorderColor()
-
getHorizontalBorderColorColor
public Color getHorizontalBorderColorColor()
HSSF Doesn't support table borders, so alwaysHSSFColor.HSSFColorPredefined.AUTOMATIC- Specified by:
getHorizontalBorderColorColorin interfaceBorderFormatting- Returns:
- color
- See Also:
BorderFormatting.getHorizontalBorderColorColor()
-
setBorderHorizontal
public void setBorderHorizontal(BorderStyle border)
Not available for HSSF.- Specified by:
setBorderHorizontalin 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:
setBorderVerticalin 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:
setHorizontalBorderColorin interfaceBorderFormatting- Parameters:
color- index- See Also:
BorderFormatting.setHorizontalBorderColor(short)
-
setHorizontalBorderColor
public void setHorizontalBorderColor(Color color)
Not available for HSSF.- Specified by:
setHorizontalBorderColorin 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:
setVerticalBorderColorin interfaceBorderFormatting- Parameters:
color- index- See Also:
BorderFormatting.setVerticalBorderColor(short)
-
setVerticalBorderColor
public void setVerticalBorderColor(Color color)
Not available for HSSF.- Specified by:
setVerticalBorderColorin interfaceBorderFormatting- Parameters:
color- index- See Also:
BorderFormatting.setVerticalBorderColor(org.apache.poi.ss.usermodel.Color)
-
-