org.jfree.layouting.layouter.style
public class CSSValueResolverUtility extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static double |
DEFAULT_X_HEIGHT_FACTOR |
Modifier and Type | Method and Description |
---|---|
static CSSNumericValue |
convertLength(CSSNumericValue value,
CSSNumericType type) |
static CSSNumericValue |
convertLength(CSSValue rawValue,
LayoutContext context,
OutputProcessorMetaData metaData) |
static double |
convertLengthToDouble(CSSValue rawValue) |
static double |
convertLengthToDouble(CSSValue rawValue,
LayoutContext context,
OutputProcessorMetaData metaData)
Returns the length in point as a double primitive value.
|
static long |
convertLengthToLong(CSSValue rawValue,
LayoutContext context,
OutputProcessorMetaData metaData)
Returns the length in point as a double primitive value.
|
static CSSNumericValue |
getLength(CSSValue value) |
static CSSNumericValue |
getLength(CSSValue value,
CSSNumericValue percentageBase) |
static double |
getNumericValue(CSSValue value,
double defaultValue) |
static boolean |
isAbsoluteValue(CSSNumericValue value) |
static boolean |
isLengthValue(CSSNumericValue value) |
static boolean |
isURI(CSSValue value) |
public static final double DEFAULT_X_HEIGHT_FACTOR
public static boolean isAbsoluteValue(CSSNumericValue value)
public static boolean isLengthValue(CSSNumericValue value)
public static double convertLengthToDouble(CSSValue rawValue)
public static double convertLengthToDouble(CSSValue rawValue, LayoutContext context, OutputProcessorMetaData metaData)
rawValue
- context
- metaData
- public static long convertLengthToLong(CSSValue rawValue, LayoutContext context, OutputProcessorMetaData metaData)
rawValue
- context
- metaData
- public static CSSNumericValue convertLength(CSSValue rawValue, LayoutContext context, OutputProcessorMetaData metaData)
public static CSSNumericValue getLength(CSSValue value)
public static CSSNumericValue getLength(CSSValue value, CSSNumericValue percentageBase)
public static boolean isURI(CSSValue value)
public static double getNumericValue(CSSValue value, double defaultValue)
public static CSSNumericValue convertLength(CSSNumericValue value, CSSNumericType type)