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 Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 Detail
-
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)
-
-