public class StyleSheetUtility extends Object
Modifier and Type | Method and 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) |
public static CSSPageRule createRuleForPage(StyleSheet style, PageFormat format)
public static void updateRuleForPage(CSSPageRule rule, PageFormat format)
public static PageFormat getPageFormat(CSSPageRule rule, int resolution)
public static double convertLengthToDouble(CSSValue rawValue, int resolution)
rawValue
- public static double convertFontSizeToDouble(CSSValue rawValue, int resolution, LayoutElement baseElement)
public static CSSValue convertFontSize(CSSValue rawValue, int resolution, LayoutElement baseElement)
public static CSSNumericValue convertLength(CSSValue rawValue, CSSNumericValue basePercentage, LayoutElement baseElement)