Class StyleSheetUtility


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

      • 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)