Class StyleSheetUtility
java.lang.Object
org.pentaho.reporting.libraries.css.StyleSheetUtility
Creation-Date: Dec 3, 2006, 3:29:10 PM
- Author:
- Thomas Morgner
- 
Method SummaryModifier and TypeMethodDescriptionstatic CSSValueconvertFontSize(CSSValue rawValue, int resolution, LayoutElement baseElement) static doubleconvertFontSizeToDouble(CSSValue rawValue, int resolution, LayoutElement baseElement) static CSSNumericValueconvertLength(CSSValue rawValue, CSSNumericValue basePercentage, LayoutElement baseElement) static doubleconvertLengthToDouble(CSSValue rawValue, int resolution) Returns the length in point as a double primitive value.static CSSPageRulecreateRuleForPage(StyleSheet style, PageFormat format) static PageFormatgetPageFormat(CSSPageRule rule, int resolution) static voidupdateRuleForPage(CSSPageRule rule, PageFormat format) 
- 
Method Details- 
createRuleForPage
- 
updateRuleForPage
- 
getPageFormat
- 
convertLengthToDoubleReturns the length in point as a double primitive value. Be aware that using double-values is not very accurate.- Parameters:
- rawValue-
- Returns:
 
- 
convertFontSizeToDoublepublic static double convertFontSizeToDouble(CSSValue rawValue, int resolution, LayoutElement baseElement) 
- 
convertFontSizepublic static CSSValue convertFontSize(CSSValue rawValue, int resolution, LayoutElement baseElement) 
- 
convertLengthpublic static CSSNumericValue convertLength(CSSValue rawValue, CSSNumericValue basePercentage, LayoutElement baseElement) 
 
-