Class Scale

  • All Implemented Interfaces:

    
    public final class Scale
    
                        

    A ratio of the size of an object as displayed on a document page to the size of a corresponding real-world object. Scale objects are used for measurement annotations. This class is immutable - you must create a new Scale object if you want to change any of the members.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public enum Scale.UnitFrom

      Units available for the source scale value.

      public enum Scale.UnitTo

      Units available for the target scale value.

    • Constructor Summary

      Constructors 
      Constructor Description
      Scale(float valueFrom, Scale.UnitFrom unitFrom, float valueTo, Scale.UnitTo unitTo) Creates an instance of a measurement Scale object.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      boolean equals(Object other)
      int hashCode()
      String toString()
      • Methods inherited from class java.lang.Object

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

      • Scale

        Scale(float valueFrom, Scale.UnitFrom unitFrom, float valueTo, Scale.UnitTo unitTo)
        Creates an instance of a measurement Scale object.
        Parameters:
        valueFrom - : Float value to set source scale from.
        unitFrom - : Unit to set the source scale from.
        valueTo - : Float value to set the target scale to.
        unitTo - : Unit to set the target scale to.