Class StyleSheetUtility
java.lang.Object
org.pentaho.reporting.libraries.css.StyleSheetUtility
Creation-Date: Dec 3, 2006, 3:29:10 PM
- Author:
- Thomas Morgner
-
Method Summary
Modifier and TypeMethodDescriptionstatic CSSValue
convertFontSize
(CSSValue rawValue, int resolution, LayoutElement baseElement) static double
convertFontSizeToDouble
(CSSValue rawValue, int resolution, LayoutElement baseElement) static CSSNumericValue
convertLength
(CSSValue rawValue, CSSNumericValue basePercentage, LayoutElement baseElement) static double
convertLengthToDouble
(CSSValue rawValue, int resolution) Returns the length in point as a double primitive value.static CSSPageRule
createRuleForPage
(StyleSheet style, PageFormat format) static PageFormat
getPageFormat
(CSSPageRule rule, int resolution) static void
updateRuleForPage
(CSSPageRule rule, PageFormat format)
-
Method Details
-
createRuleForPage
-
updateRuleForPage
-
getPageFormat
-
convertLengthToDouble
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)
-