Class 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 Detail

      • Units

        public Units()
    • Method Detail

      • doubleToString

        public static String doubleToString​(double value,
                                            int decimals)