Package org.apache.poi.xssf.usermodel
Class XSSFDxfStyleProvider
- java.lang.Object
-
- org.apache.poi.xssf.usermodel.XSSFDxfStyleProvider
-
- All Implemented Interfaces:
DifferentialStyleProvider
public class XSSFDxfStyleProvider extends java.lang.Object implements DifferentialStyleProvider
Style based on a dxf record - e.g. table style element or conditional formatting rule
-
-
Constructor Summary
Constructors Constructor Description XSSFDxfStyleProvider(CTDxf dxf, int stripeSize, IndexedColorMap colorMap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BorderFormatting
getBorderFormatting()
FontFormatting
getFontFormatting()
ExcelNumberFormat
getNumberFormat()
PatternFormatting
getPatternFormatting()
int
getStripeSize()
This is the number of rows or columns in a band or stripe.
-
-
-
Constructor Detail
-
XSSFDxfStyleProvider
public XSSFDxfStyleProvider(CTDxf dxf, int stripeSize, IndexedColorMap colorMap)
- Parameters:
dxf
-stripeSize
- 0 for non-stripe styles, > 1 for stripescolorMap
-
-
-
Method Detail
-
getBorderFormatting
public BorderFormatting getBorderFormatting()
- Specified by:
getBorderFormatting
in interfaceDifferentialStyleProvider
- Returns:
- - border formatting object if defined,
null
otherwise
-
getFontFormatting
public FontFormatting getFontFormatting()
- Specified by:
getFontFormatting
in interfaceDifferentialStyleProvider
- Returns:
- - font formatting object if defined,
null
otherwise
-
getNumberFormat
public ExcelNumberFormat getNumberFormat()
- Specified by:
getNumberFormat
in interfaceDifferentialStyleProvider
- Returns:
- number format defined for this rule, or null if the cell default should be used
-
getPatternFormatting
public PatternFormatting 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
-
-