protected ReportProcessor createReportProcessor( OutputStream fout ) throws Exception { StreamRTFOutputProcessor target = new StreamRTFOutputProcessor( report.getConfiguration(), fout, report.getResourceManager() ); return new StreamReportProcessor( report, target ); } };
protected ReportProcessor createReportProcessor( OutputStream fout ) throws Exception { ReportStructureValidator validator = new ReportStructureValidator(); if ( validator.isValidForFastProcessing( report ) == false ) { final FlowExcelOutputProcessor target = new FlowExcelOutputProcessor( report.getConfiguration(), fout, report.getResourceManager() ); target.setUseXlsxFormat( false ); return new FlowReportProcessor( report, target ); } else { return new FastExcelExportProcessor( report, fout, false ); } } };
private int computeBackground( final long x, final long y, final long width, final long height ) { lookupRectangle = sheetLayout.getTableBounds( x, y + contentShift, width, height, lookupRectangle ); final int x1 = lookupRectangle.getX1(); final int y1 = lookupRectangle.getY1(); final int x2 = lookupRectangle.getX2(); final int y2 = lookupRectangle.getY2(); return computeBackgroundHint( x1, y1, x2, y2 ); }
protected final void processPaginationContent( final LogicalPageKey logicalPageKey, final LogicalPageBox logicalPage ) { if ( currentLayout == null ) { currentLayout = new TableLayoutProducer( getMetaData() ); } currentLayout.update( logicalPage, false ); currentLayout.pageCompleted(); // ModelPrinter.print(logicalPage); final long rowCount = currentLayout.getLayout().getRowCount(); logPerformance( "Pagination done: ", rowCount, true ); sheetLayouts.add( currentLayout ); currentLayout = null; }
public static TableContentProducer produceTableLayout( final LogicalPageBox pageBox, final SheetLayout layout, final OutputProcessorMetaData metaData ) { layout.clearVerticalInfo(); TableLayoutProducer currentLayout = new TableLayoutProducer( metaData, layout ); currentLayout.update( pageBox.derive( true ), false ); currentLayout.pageCompleted(); TableContentProducer contentProducer = new TableContentProducer( layout, metaData ); contentProducer.compute( pageBox, false ); return contentProducer; } }
public void produceTemplate( final LogicalPageBox pageBox ) { sheetLayout.clearVerticalInfo(); TableLayoutProducer currentLayout = new TableLayoutProducer( metaData, sheetLayout ); currentLayout.update( pageBox, false ); currentLayout.pageCompleted(); } }
protected TableContentProducer createTableContentProducer( final SheetLayout layout ) { return new TableContentProducer( layout, getMetaData() ); }
public void ensureYMapping( final long coordinate, final Boolean aux ) { yBounds.put( coordinate, aux ); if ( yMaxBounds < coordinate ) { yMaxBounds = coordinate; } }
public TableLayoutProducer( final OutputProcessorMetaData metaData ) { initialize( metaData ); this.layout = new SheetLayout( metaData ); }
public SheetLayout derive() { SheetLayout clone = clone(); clone.clearVerticalInfo(); return clone; }
public void compute( final LogicalPageBox logicalPage, final boolean iterativeUpdate ) { this.pageFooterLeft = null; this.pageFooterCenter = null; this.pageFooterRight = null; this.pageHeaderLeft = null; this.pageHeaderCenter = null; this.pageHeaderRight = null; super.compute( logicalPage, iterativeUpdate ); }
public void reinit( final long rowHeightOffset, final long[] cellHeights ) { this.sheetLayout.ensureYMapping( 0, false ); long h = rowHeightOffset; for ( final long height : cellHeights ) { h += height; this.sheetLayout.ensureYMapping( h, false ); } }
public boolean containsKey( final long key ) { if ( size > 0 ) { // try a short-cut, which is usefull for y-coordinates (which are almost always sorted). if ( key > keys[size - 1] ) { return false; } } return findKeyInternal( key ) >= 0; }
/** * DefaultConstructor. Loads the module specification. * * @throws ModuleInitializeException * if an error occured. */ public TableBaseModule() throws ModuleInitializeException { loadModuleInfo(); }
protected ReportProcessor createReportProcessor( OutputStream fout ) throws Exception { ReportStructureValidator validator = new ReportStructureValidator(); if ( validator.isValidForFastProcessing( report ) == false ) { StreamCSVOutputProcessor target = new StreamCSVOutputProcessor( fout ); return new StreamReportProcessor( report, target ); } else { return new FastCsvExportProcessor( report, fout ); } } };
protected ReportProcessor createReportProcessor( OutputStream fout ) throws Exception { ReportStructureValidator validator = new ReportStructureValidator(); if ( validator.isValidForFastProcessing( report ) == false ) { final FlowExcelOutputProcessor target = new FlowExcelOutputProcessor( report.getConfiguration(), fout, report.getResourceManager() ); target.setUseXlsxFormat( true ); return new FlowReportProcessor( report, target ); } else { return new FastExcelExportProcessor( report, fout, true ); } } };
public void ensureXMapping( final long coordinate, final Boolean aux ) { xBounds.put( coordinate, aux ); if ( xMaxBounds < coordinate ) { xMaxBounds = coordinate; } }
protected ReportProcessor createReportProcessor( OutputStream fout ) throws Exception { ReportStructureValidator validator = new ReportStructureValidator(); if ( validator.isValidForFastProcessing( report ) == false ) { final HtmlOutputProcessor outputProcessor = new StreamHtmlOutputProcessor( report.getConfiguration() ); final HtmlPrinter printer = new AllItemsHtmlPrinter( report.getResourceManager() ); printer.setContentWriter( targetRoot, new DefaultNameGenerator( targetRoot, filename, suffix ) ); printer.setDataWriter( null, null ); // $NON-NLS-1$ printer.setUrlRewriter( new FileSystemURLRewriter() ); outputProcessor.setPrinter( printer ); return new StreamReportProcessor( report, outputProcessor ); } else { FastHtmlContentItems printer = new FastHtmlContentItems(); printer.setContentWriter( targetRoot, new DefaultNameGenerator( targetRoot, filename, suffix ) ); printer.setDataWriter( null, null ); // $NON-NLS-1$ printer.setUrlRewriter( new FileSystemURLRewriter() ); return new FastHtmlExportProcessor( report, printer ); } } };
protected ReportProcessor createReportProcessor( OutputStream fout ) throws Exception { final FlowHtmlOutputProcessor outputProcessor = new FlowHtmlOutputProcessor(); final HtmlPrinter printer = new AllItemsHtmlPrinter( report.getResourceManager() ); printer.setContentWriter( targetRoot, new DefaultNameGenerator( targetRoot, filename, suffix ) ); printer.setDataWriter( targetRoot, new DefaultNameGenerator( targetRoot, "content" ) ); printer.setUrlRewriter( new FileSystemURLRewriter() ); outputProcessor.setPrinter( printer ); return new FlowReportProcessor( report, outputProcessor ); } };