Class CSSValueResolverUtility
- java.lang.Object
-
- org.jfree.layouting.layouter.style.CSSValueResolverUtility
-
public class CSSValueResolverUtility extends java.lang.ObjectCreation-Date: 15.12.2005, 11:29:22- Author:
- Thomas Morgner
-
-
Field Summary
Fields Modifier and Type Field Description static doubleDEFAULT_X_HEIGHT_FACTOR
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CSSNumericValueconvertLength(CSSNumericValue value, CSSNumericType type)static CSSNumericValueconvertLength(CSSValue rawValue, LayoutContext context, OutputProcessorMetaData metaData)static doubleconvertLengthToDouble(CSSValue rawValue)static doubleconvertLengthToDouble(CSSValue rawValue, LayoutContext context, OutputProcessorMetaData metaData)Returns the length in point as a double primitive value.static longconvertLengthToLong(CSSValue rawValue, LayoutContext context, OutputProcessorMetaData metaData)Returns the length in point as a double primitive value.static CSSNumericValuegetLength(CSSValue value)static CSSNumericValuegetLength(CSSValue value, CSSNumericValue percentageBase)static doublegetNumericValue(CSSValue value, double defaultValue)static booleanisAbsoluteValue(CSSNumericValue value)static booleanisLengthValue(CSSNumericValue value)static booleanisURI(CSSValue value)
-
-
-
Field Detail
-
DEFAULT_X_HEIGHT_FACTOR
public static final double DEFAULT_X_HEIGHT_FACTOR
- See Also:
- Constant Field Values
-
-
Method Detail
-
isAbsoluteValue
public static boolean isAbsoluteValue(CSSNumericValue value)
-
isLengthValue
public static boolean isLengthValue(CSSNumericValue value)
-
convertLengthToDouble
public static double convertLengthToDouble(CSSValue rawValue)
-
convertLengthToDouble
public static double convertLengthToDouble(CSSValue rawValue, LayoutContext context, OutputProcessorMetaData metaData)
Returns the length in point as a double primitive value. Be aware that using double-values is not very accurate.- Parameters:
rawValue-context-metaData-- Returns:
-
convertLengthToLong
public static long convertLengthToLong(CSSValue rawValue, LayoutContext context, OutputProcessorMetaData metaData)
Returns the length in point as a double primitive value.- Parameters:
rawValue-context-metaData-- Returns:
-
convertLength
public static CSSNumericValue convertLength(CSSValue rawValue, LayoutContext context, OutputProcessorMetaData metaData)
-
getLength
public static CSSNumericValue getLength(CSSValue value)
-
getLength
public static CSSNumericValue getLength(CSSValue value, CSSNumericValue percentageBase)
-
isURI
public static boolean isURI(CSSValue value)
-
getNumericValue
public static double getNumericValue(CSSValue value, double defaultValue)
-
convertLength
public static CSSNumericValue convertLength(CSSNumericValue value, CSSNumericType type)
-
-