Class CVUtils


  • public class CVUtils
    extends Object
    Author:
    gtoffoli
    • Constructor Detail

      • CVUtils

        public CVUtils()
    • 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)
      • getResourceName

        public static String getResourceName​(String resourceLocation)
      • generateElementId

        public static String generateElementId()
      • getElementId

        public static String getElementId​(net.sf.jasperreports.engine.JRGenericPrintElement element)