Class StyleCache
- java.lang.Object
-
- net.sf.jasperreports.engine.export.oasis.StyleCache
-
public class StyleCache extends Object
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
-
-
Constructor Summary
Constructors Constructor Description StyleCache(JasperReportsContext jasperReportsContext, WriterHelper styleWriter, String exporterKey)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCellStyle(JRExporterGridCell gridCell)StringgetCellStyle(JRExporterGridCell gridCell, boolean shrinkToFit, boolean wrapText)StringgetColumnStyle(int columnWidth)Collection<String>getFontFaces()StringgetFrameStyle(JRPrintElement element)StringgetFrameStyle(JRPrintText text)StringgetGraphicStyle(JRPrintGraphicElement element)StringgetGraphicStyle(JRPrintGraphicElement element, double cropTop, double cropLeft, double cropBottom, double cropRight)StringgetParagraphStyle(JRPrintText text, boolean isIgnoreTextFormatting)StringgetRowStyle(int rowHeight)StringgetTableStyle(int width, int pageFormatIndex, boolean isFrame, boolean isPageBreak, Color tabColor)StringgetTextSpanStyle(Map<AttributedCharacterIterator.Attribute,Object> attributes, String text, Locale locale, boolean isIgnoreTextFormatting)
-
-
-
Constructor Detail
-
StyleCache
public StyleCache(JasperReportsContext jasperReportsContext, WriterHelper styleWriter, String exporterKey)
-
-
Method Detail
-
getFontFaces
public Collection<String> getFontFaces()
-
getTableStyle
public String getTableStyle(int width, int pageFormatIndex, boolean isFrame, boolean isPageBreak, Color tabColor) throws IOException
- Throws:
IOException
-
getRowStyle
public String getRowStyle(int rowHeight) throws IOException
- Throws:
IOException
-
getColumnStyle
public String getColumnStyle(int columnWidth) throws IOException
- Throws:
IOException
-
getFrameStyle
public String getFrameStyle(JRPrintText text) throws IOException
- Throws:
IOException
-
getFrameStyle
public String getFrameStyle(JRPrintElement element) throws IOException
- Throws:
IOException
-
getGraphicStyle
public String getGraphicStyle(JRPrintGraphicElement element)
-
getGraphicStyle
public String getGraphicStyle(JRPrintGraphicElement element, double cropTop, double cropLeft, double cropBottom, double cropRight)
-
getCellStyle
public String getCellStyle(JRExporterGridCell gridCell)
-
getCellStyle
public String getCellStyle(JRExporterGridCell gridCell, boolean shrinkToFit, boolean wrapText)
-
getParagraphStyle
public String getParagraphStyle(JRPrintText text, boolean isIgnoreTextFormatting)
-
-