Class DefaultStyle
java.lang.Object
com.compomics.util.io.export.styles.DefaultStyle
- All Implemented Interfaces:
WorkbookStyle
Default style for Excel sheets.
- Author:
- Marc Vaudel, Harald Barsnes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatReturns the height of a header row.org.apache.poi.ss.usermodel.CellStyleReturns the standard cell style of a header.org.apache.poi.ss.usermodel.CellStylegetHeaderStyle(int hierarchicalDepth) Returns the standard cell style of a header at the given hierarchical depth.floatReturns the row height for the main title.org.apache.poi.ss.usermodel.CellStyleReturns the cell style for the main title.floatReturns the height of a standard line.org.apache.poi.ss.usermodel.CellStyleReturns the standard cell style.org.apache.poi.ss.usermodel.CellStylegetStandardStyle(int hierarchicalDepth) Returns the standard cell style for the given hierarchical depth.static DefaultStylegetStyle(ExcelWriter excelWriter) Returns the style attached to that writer or create a new one if none found.
-
Constructor Details
-
DefaultStyle
public DefaultStyle()Empty default constructor.
-
-
Method Details
-
getStyle
Returns the style attached to that writer or create a new one if none found.- Parameters:
excelWriter- the writer of interest- Returns:
- the style attached to that writer
-
getMainTitleStyle
public org.apache.poi.ss.usermodel.CellStyle getMainTitleStyle()Description copied from interface:WorkbookStyleReturns the cell style for the main title.- Specified by:
getMainTitleStylein interfaceWorkbookStyle- Returns:
- the cell style for the main title
-
getMainTitleRowHeight
public float getMainTitleRowHeight()Description copied from interface:WorkbookStyleReturns the row height for the main title.- Specified by:
getMainTitleRowHeightin interfaceWorkbookStyle- Returns:
- the row height for the main title
-
getStandardStyle
public org.apache.poi.ss.usermodel.CellStyle getStandardStyle()Description copied from interface:WorkbookStyleReturns the standard cell style.- Specified by:
getStandardStylein interfaceWorkbookStyle- Returns:
- the standard cell style
-
getStandardStyle
public org.apache.poi.ss.usermodel.CellStyle getStandardStyle(int hierarchicalDepth) Description copied from interface:WorkbookStyleReturns the standard cell style for the given hierarchical depth. The depth is defined by the sublevel of the current cell.- Specified by:
getStandardStylein interfaceWorkbookStyle- Parameters:
hierarchicalDepth- the hierarchical depth- Returns:
- the standard cell style for the given hierarchical depth
-
getStandardHeight
public float getStandardHeight()Description copied from interface:WorkbookStyleReturns the height of a standard line.- Specified by:
getStandardHeightin interfaceWorkbookStyle- Returns:
- the height of a standard line
-
getHeaderStyle
public org.apache.poi.ss.usermodel.CellStyle getHeaderStyle()Description copied from interface:WorkbookStyleReturns the standard cell style of a header.- Specified by:
getHeaderStylein interfaceWorkbookStyle- Returns:
- the standard cell style of a header
-
getHeaderStyle
public org.apache.poi.ss.usermodel.CellStyle getHeaderStyle(int hierarchicalDepth) Description copied from interface:WorkbookStyleReturns the standard cell style of a header at the given hierarchical depth. The depth is defined by the sublevel of the current cell.- Specified by:
getHeaderStylein interfaceWorkbookStyle- Parameters:
hierarchicalDepth- the hierarchical depth- Returns:
- the standard cell style for the given hierarchical depth
-
getHeaderHeight
public float getHeaderHeight()Description copied from interface:WorkbookStyleReturns the height of a header row.- Specified by:
getHeaderHeightin interfaceWorkbookStyle- Returns:
- the height of a header row
-