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 String
getCellStyle(JRExporterGridCell gridCell)
String
getCellStyle(JRExporterGridCell gridCell, boolean shrinkToFit, boolean wrapText)
String
getColumnStyle(int columnWidth)
Collection<String>
getFontFaces()
String
getFrameStyle(JRPrintElement element)
String
getFrameStyle(JRPrintText text)
String
getGraphicStyle(JRPrintGraphicElement element)
String
getGraphicStyle(JRPrintGraphicElement element, double cropTop, double cropLeft, double cropBottom, double cropRight)
String
getParagraphStyle(JRPrintText text, boolean isIgnoreTextFormatting)
String
getRowStyle(int rowHeight)
String
getTableStyle(int width, int pageFormatIndex, boolean isFrame, boolean isPageBreak, Color tabColor)
String
getTextSpanStyle(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)
-
-