Class ExcelImageHandler
- java.lang.Object
-
- org.pentaho.reporting.engine.classic.core.modules.output.table.xls.helper.ExcelImageHandler
-
public class ExcelImageHandler extends Object
A specialized class containing all image handling functionality for Excel exports.
-
-
Constructor Summary
Constructors Constructor Description ExcelImageHandler(org.pentaho.reporting.libraries.resourceloader.ResourceManager resourceManager, ExcelPrinterBase printerBase)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.apache.poi.ss.usermodel.ClientAnchor
computeClientAnchor(SlimSheetLayout currentLayout, TableRectangle rectangle, StrictBounds cb)
protected org.apache.poi.ss.usermodel.ClientAnchor
computeExcel2003ClientAnchor(SlimSheetLayout currentLayout, TableRectangle rectangle, StrictBounds cb)
protected org.apache.poi.ss.usermodel.ClientAnchor
computeExcel97ClientAnchor(SlimSheetLayout currentLayout, TableRectangle rectangle, StrictBounds cb)
void
createImageCell(StyleSheet layoutContext, ImageContainer image, SlimSheetLayout currentLayout, TableRectangle rectangle, StrictBounds cellBounds)
Produces the content for image or drawable cells.
-
-
-
Constructor Detail
-
ExcelImageHandler
public ExcelImageHandler(org.pentaho.reporting.libraries.resourceloader.ResourceManager resourceManager, ExcelPrinterBase printerBase)
-
-
Method Detail
-
createImageCell
public void createImageCell(StyleSheet layoutContext, ImageContainer image, SlimSheetLayout currentLayout, TableRectangle rectangle, StrictBounds cellBounds)
Produces the content for image or drawable cells. Excel does not support image-content in cells. Images are rendered to an embedded OLE canvas instead, which is then positioned over the cell that would contain the image.- Parameters:
layoutContext
- the stylesheet of the render node that produced the image.image
- the image objectcurrentLayout
- the current sheet layout containing all row and column breaksrectangle
- the current cell in grid-coordinatescellBounds
- the bounds of the cell.
-
computeClientAnchor
protected org.apache.poi.ss.usermodel.ClientAnchor computeClientAnchor(SlimSheetLayout currentLayout, TableRectangle rectangle, StrictBounds cb)
-
computeExcel97ClientAnchor
protected org.apache.poi.ss.usermodel.ClientAnchor computeExcel97ClientAnchor(SlimSheetLayout currentLayout, TableRectangle rectangle, StrictBounds cb)
-
computeExcel2003ClientAnchor
protected org.apache.poi.ss.usermodel.ClientAnchor computeExcel2003ClientAnchor(SlimSheetLayout currentLayout, TableRectangle rectangle, StrictBounds cb)
-
-