Package com.adobe.xfa.text
Class Units
- java.lang.Object
-
- com.adobe.xfa.text.Units
-
public final class Units extends Object
Unit conversions for AXTE.This class handles the functions of the c++ implementation's jfTextDispUnit and jfTextDispUnitSpan classes. It provides unit and type conversions for AXTE.
AXTE works in three different unit types:
- jfUnitSpan - A measurement fully qualified by unit type
- float - Representing a value measured in points (class jfTextDispUnit in the C++ implementation)
- int - Representing a value measured in points/1000 (class jfTextDispUnitSpan in the C++ implementation)
This class provides a number of static methods for converting units based on the conventions listed above.
-
-
Constructor Summary
Constructors Constructor Description Units()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
doubleToString(double value, int decimals)
-
-
-
Method Detail
-
doubleToString
public static String doubleToString(double value, int decimals)
-
-