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.
-
Field Summary
Fields Modifier and Type Field Description public final float
valueFrom
public final Scale.UnitFrom
unitFrom
public final float
valueTo
public final Scale.UnitTo
unitTo
-
Constructor Summary
Constructors Constructor Description Scale(float valueFrom, Scale.UnitFrom unitFrom, float valueTo, Scale.UnitTo unitTo)
Creates an instance of a measurement Scale object.
-
Method Summary
-
-
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.
-
-
-
-