| net.sf.jasperreports.engine.export.JRXlsAbstractExporter net.sf.jasperreports.engine.export.JRXlsExporter
JRXlsExporter | public class JRXlsExporter extends JRXlsAbstractExporter (Code) | | Exports a JasperReports document to XLS format. It has binary output type and exports the document to
a grid-based layout.
Since classic AWT fonts can be sometimes very different from system fonts (which are used by XLS viewers),
a font mapping feature was added. By using the
net.sf.jasperreports.engine.JRExporterParameter.FONT_MAP parameter, a logical
font like "sansserif" can be mapped to a system specific font, like "Comic Sans MS". Both map keys and values are strings.
author: Teodor Danciu (teodord@users.sourceforge.net) version: $Id: JRXlsExporter.java 1830 2007-08-24 14:44:17Z teodord $ |
Inner Class :protected static class BoxStyle | |
Inner Class :protected static class StyleInfo | |
Method Summary | |
protected void | addBlankCell(JRExporterGridCell gridCell, int colIndex, int rowIndex) | protected void | closeWorkbook(OutputStream os) | protected void | createMergeRegion(JRExporterGridCell gridCell, int colIndex, int rowIndex, HSSFCellStyle cellStyle) | protected void | createSheet(String name) | protected void | createTextCell(JRPrintText textElement, JRExporterGridCell gridCell, int colIndex, int rowIndex, JRStyledText styledText, StyleInfo baseStyle) | protected void | endCreateCell(HSSFCellStyle cellStyle) | protected void | exportFrame(JRPrintFrame frame, JRExporterGridCell gridCell, int x, int y) | protected void | exportImage(JRPrintImage image, JRExporterGridCell gridCell, int colIndex, int rowIndex) | protected void | exportLine(JRPrintLine line, JRExporterGridCell gridCell, int colIndex, int rowIndex) | protected void | exportRectangle(JRPrintElement element, JRExporterGridCell gridCell, int colIndex, int rowIndex) | protected void | exportText(JRPrintText textElement, JRExporterGridCell gridCell, int colIndex, int rowIndex) | protected static short | getBorder(byte pen) | protected HSSFCellStyle | getLoadedCellStyle(StyleInfo style) | protected HSSFCellStyle | getLoadedCellStyle(short mode, short backcolor, short horizontalAlignment, short verticalAlignment, short rotation, HSSFFont font, JRExporterGridCell gridCell) | protected HSSFFont | getLoadedFont(JRFont font, short forecolor) | protected ExporterNature | getNature() | protected static HSSFColor | getNearestColor(Color awtColor) | protected StyleInfo | getStyleInfo(short mode, short backcolor, short horizontalAlignment, short verticalAlignment, short rotation, HSSFFont font, JRExporterGridCell gridCell) | protected HSSFCellStyle | initCreateCell(JRExporterGridCell gridCell, int colIndex, int rowIndex, StyleInfo baseStyle) | protected void | openWorkbook(OutputStream os) | protected void | setBackground() | protected void | setCell(int colIndex, int rowIndex) | protected void | setColumnWidth(short index, short width) | protected void | setParameters() | protected void | setRowHeight(int rowIndex, int lastRowHeight) | final protected void | setStringCellValue(String textStr) |
backgroundMode | protected short backgroundMode(Code) | | |
blackIndex | protected short blackIndex(Code) | | |
cell | protected HSSFCell cell(Code) | | |
dataFormat | protected HSSFDataFormat dataFormat(Code) | | |
emptyCellStyle | protected HSSFCellStyle emptyCellStyle(Code) | | |
formatPatternsMap | protected Map formatPatternsMap(Code) | | |
loadedCellStyles | protected Map loadedCellStyles(Code) | | |
row | protected HSSFRow row(Code) | | |
sheet | protected HSSFSheet sheet(Code) | | |
whiteIndex | protected short whiteIndex(Code) | | |
workbook | protected HSSFWorkbook workbook(Code) | | |
createMergeRegion | protected void createMergeRegion(JRExporterGridCell gridCell, int colIndex, int rowIndex, HSSFCellStyle cellStyle)(Code) | | |
endCreateCell | protected void endCreateCell(HSSFCellStyle cellStyle)(Code) | | |
getBorder | protected static short getBorder(byte pen)(Code) | | |
getLoadedCellStyle | protected HSSFCellStyle getLoadedCellStyle(StyleInfo style)(Code) | | |
getLoadedCellStyle | protected HSSFCellStyle getLoadedCellStyle(short mode, short backcolor, short horizontalAlignment, short verticalAlignment, short rotation, HSSFFont font, JRExporterGridCell gridCell)(Code) | | |
getLoadedFont | protected HSSFFont getLoadedFont(JRFont font, short forecolor)(Code) | | |
getNearestColor | protected static HSSFColor getNearestColor(Color awtColor)(Code) | | |
getStyleInfo | protected StyleInfo getStyleInfo(short mode, short backcolor, short horizontalAlignment, short verticalAlignment, short rotation, HSSFFont font, JRExporterGridCell gridCell)(Code) | | |
initCreateCell | protected HSSFCellStyle initCreateCell(JRExporterGridCell gridCell, int colIndex, int rowIndex, StyleInfo baseStyle)(Code) | | |
setBackground | protected void setBackground()(Code) | | |
setCell | protected void setCell(int colIndex, int rowIndex)(Code) | | |
setColumnWidth | protected void setColumnWidth(short index, short width)(Code) | | |
setParameters | protected void setParameters()(Code) | | |
setRowHeight | protected void setRowHeight(int rowIndex, int lastRowHeight)(Code) | | |
setStringCellValue | final protected void setStringCellValue(String textStr)(Code) | | |
Methods inherited from net.sf.jasperreports.engine.export.JRXlsAbstractExporter | abstract protected void addBlankCell(JRExporterGridCell gridCell, int colIndex, int rowIndex) throws JRException(Code)(Java Doc) abstract protected void closeWorkbook(OutputStream os) throws JRException(Code)(Java Doc) abstract protected void createSheet(String name)(Code)(Java Doc) abstract protected void exportFrame(JRPrintFrame frame, JRExporterGridCell cell, int colIndex, int rowIndex) throws JRException(Code)(Java Doc) abstract protected void exportImage(JRPrintImage image, JRExporterGridCell cell, int colIndex, int rowIndex) throws JRException(Code)(Java Doc) abstract protected void exportLine(JRPrintLine line, JRExporterGridCell cell, int colIndex, int rowIndex) throws JRException(Code)(Java Doc) protected int exportPage(JRPrintPage page, List xCuts, int startRow) throws JRException(Code)(Java Doc) abstract protected void exportRectangle(JRPrintElement element, JRExporterGridCell cell, int colIndex, int rowIndex) throws JRException(Code)(Java Doc) public void exportReport() throws JRException(Code)(Java Doc) protected void exportReportToStream(OutputStream os) throws JRException(Code)(Java Doc) abstract protected void exportText(JRPrintText text, JRExporterGridCell cell, int colIndex, int rowIndex) throws JRException(Code)(Java Doc) protected JRHyperlinkProducer getCustomHandler(JRPrintHyperlink link)(Code)(Java Doc) protected JRFont getDefaultFont()(Code)(Java Doc) abstract protected ExporterNature getNature()(Code)(Java Doc) protected JRStyledText getStyledText(JRPrintText textElement)(Code)(Java Doc) protected static TextAlignHolder getTextAlignHolder(JRPrintText textElement)(Code)(Java Doc) abstract protected void openWorkbook(OutputStream os) throws JRException(Code)(Java Doc) abstract protected void setBackground()(Code)(Java Doc) abstract protected void setCell(int colIndex, int rowIndex)(Code)(Java Doc) abstract protected void setColumnWidth(short index, short width)(Code)(Java Doc) protected void setColumnWidths(List xCuts)(Code)(Java Doc) protected void setParameters()(Code)(Java Doc) abstract protected void setRowHeight(int rowIndex, int lastRowHeight) throws JRException(Code)(Java Doc)
|
|
|