Class Units


  • public final class Units
    extends java.lang.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 java.lang.String doubleToString​(double value, int decimals)  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Units

        public Units()
    • Method Detail

      • doubleToString

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