public class CSSUnitsMap
extends java.lang.Object
Constructor and Description |
---|
CSSUnitsMap()
Default constructor creating an object that returns the default unit (mm) and precision (2) for
each length property.
|
CSSUnitsMap(InputProxy src)
Constructor creating an object that is based on an external description text file.
|
Modifier and Type | Method and Description |
---|---|
int |
getUnitId(java.lang.String prop)
Retrieves the unit id for the passed property name
|
int |
getUnitPrecision(java.lang.String prop)
Retrieves the unit precision for the passed property name
|
public CSSUnitsMap()
public CSSUnitsMap(InputProxy src)
Available options (must be before anything else): @option-default-length-unit default unit for all undefined length properties @option-default-length-precision default precision for all undefined length precisions Basic structure: property-name:unitname,precision
Example:
@option-default-length-unit:mm @option-default-length-precision:2 font-size:pt,1 text-indent:mm,1 width:mm,1 height:mm,1 ...
src
- the configuration file source