Class StyleSheetUtility

java.lang.Object
org.pentaho.reporting.libraries.css.StyleSheetUtility

public class StyleSheetUtility extends Object
Creation-Date: Dec 3, 2006, 3:29:10 PM
Author:
Thomas Morgner
  • Method Details

    • createRuleForPage

      public static CSSPageRule createRuleForPage(StyleSheet style, PageFormat format)
    • updateRuleForPage

      public static void updateRuleForPage(CSSPageRule rule, PageFormat format)
    • getPageFormat

      public static PageFormat getPageFormat(CSSPageRule rule, int resolution)
    • convertLengthToDouble

      public static double convertLengthToDouble(CSSValue rawValue, int resolution)
      Returns the length in point as a double primitive value. Be aware that using double-values is not very accurate.
      Parameters:
      rawValue -
      Returns:
    • convertFontSizeToDouble

      public static double convertFontSizeToDouble(CSSValue rawValue, int resolution, LayoutElement baseElement)
    • convertFontSize

      public static CSSValue convertFontSize(CSSValue rawValue, int resolution, LayoutElement baseElement)
    • convertLength

      public static CSSNumericValue convertLength(CSSValue rawValue, CSSNumericValue basePercentage, LayoutElement baseElement)