Class CVUtils
- java.lang.Object
-
- net.sf.jasperreports.customvisualization.CVUtils
-
public class CVUtils extends Object
- Author:
- gtoffoli
-
-
Field Summary
Fields Modifier and Type Field Description static StringELEMENT_ID_PREFIX
-
Constructor Summary
Constructors Constructor Description CVUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidbyteStreamCopy(InputStream is, OutputStream os)static StringgenerateElementId()static StringgetElementId(net.sf.jasperreports.engine.JRGenericPrintElement element)static LonggetOwnTimeout(net.sf.jasperreports.engine.JRGenericPrintElement element)static StringgetResourceName(String resourceLocation)static longgetTimeout(net.sf.jasperreports.engine.JRGenericPrintElement element)static floatgetZoomFactor(net.sf.jasperreports.engine.JRGenericPrintElement element)Check if the element configuration specifies the zoom to be used when the export is performed as raster image.static booleanisRenderAsPng(net.sf.jasperreports.engine.JRGenericPrintElement element)Check if the element configuration specifies to render this component as png instead of looking for an SVG
-
-
-
Field Detail
-
ELEMENT_ID_PREFIX
public static final String ELEMENT_ID_PREFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
isRenderAsPng
public static boolean isRenderAsPng(net.sf.jasperreports.engine.JRGenericPrintElement element)
Check if the element configuration specifies to render this component as png instead of looking for an SVG- Parameters:
element-- Returns:
-
getZoomFactor
public static float getZoomFactor(net.sf.jasperreports.engine.JRGenericPrintElement element)
Check if the element configuration specifies the zoom to be used when the export is performed as raster image. Default is 1.0f. Bigger is the zoom, higher is the quality, bigger is the file exported.- Parameters:
element-- Returns:
-
getOwnTimeout
public static Long getOwnTimeout(net.sf.jasperreports.engine.JRGenericPrintElement element)
-
getTimeout
public static long getTimeout(net.sf.jasperreports.engine.JRGenericPrintElement element)
-
byteStreamCopy
public static void byteStreamCopy(InputStream is, OutputStream os) throws IOException
- Throws:
IOException
-
generateElementId
public static String generateElementId()
-
getElementId
public static String getElementId(net.sf.jasperreports.engine.JRGenericPrintElement element)
-
-