Package org.apache.poi.xssf.usermodel
Class XSSFDxfStyleProvider
java.lang.Object
org.apache.poi.xssf.usermodel.XSSFDxfStyleProvider
- All Implemented Interfaces:
DifferentialStyleProvider
Style based on a dxf record - e.g. table style element or conditional formatting rule
-
Constructor Summary
ConstructorsConstructorDescriptionXSSFDxfStyleProvider
(org.openxmlformats.schemas.spreadsheetml.x2006.main.CTDxf dxf, int stripeSize, IndexedColorMap colorMap) -
Method Summary
Modifier and TypeMethodDescriptionint
This is the number of rows or columns in a band or stripe.
-
Constructor Details
-
XSSFDxfStyleProvider
public XSSFDxfStyleProvider(org.openxmlformats.schemas.spreadsheetml.x2006.main.CTDxf dxf, int stripeSize, IndexedColorMap colorMap) - Parameters:
dxf
-stripeSize
- 0 for non-stripe styles, > 1 for stripescolorMap
-
-
-
Method Details
-
getBorderFormatting
- Specified by:
getBorderFormatting
in interfaceDifferentialStyleProvider
- Returns:
- - border formatting object if defined,
null
otherwise
-
getFontFormatting
- Specified by:
getFontFormatting
in interfaceDifferentialStyleProvider
- Returns:
- - font formatting object if defined,
null
otherwise
-
getNumberFormat
- Specified by:
getNumberFormat
in interfaceDifferentialStyleProvider
- Returns:
- number format defined for this rule, or null if the cell default should be used
-
getPatternFormatting
- Specified by:
getPatternFormatting
in interfaceDifferentialStyleProvider
- Returns:
- - pattern formatting object if defined,
null
otherwise
-
getStripeSize
public int getStripeSize()Description copied from interface:DifferentialStyleProvider
This is the number of rows or columns in a band or stripe. For styles that represent stripes, it must be > 1, for all others it is 0. Not the greatest overloading by the OOXML spec.- Specified by:
getStripeSize
in interfaceDifferentialStyleProvider
- Returns:
- number of rows/columns in a stripe for stripe styles, 0 for all others
-