public class

UnitConverter

extends Object
java.lang.Object
   ↳ com.pdftron.pdf.utils.UnitConverter

Summary

Constants
String CM
String INCH
String INCH_SHORT
String YARD
String YARD_SHORT
Public Constructors
UnitConverter(float distance)
Public Methods
static float cmToInches(float cm)
static float cmToYard(float cm)
static UnitConverter convert(float distance)
UnitConverter from(String unit)
static String getDisplayUnit(String unit)
static float inchesToCm(float inches)
static float inchesToYard(float inches)
static float pointsToInches(float points)
float to(String unit)
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final String CM

Constant Value: "cm"

public static final String INCH

Constant Value: "inch"

public static final String INCH_SHORT

Constant Value: "in"

public static final String YARD

Constant Value: "yard"

public static final String YARD_SHORT

Constant Value: "yd"

Public Constructors

public UnitConverter (float distance)

Public Methods

public static float cmToInches (float cm)

public static float cmToYard (float cm)

public static UnitConverter convert (float distance)

public UnitConverter from (String unit)

public static String getDisplayUnit (String unit)

public static float inchesToCm (float inches)

public static float inchesToYard (float inches)

public static float pointsToInches (float points)

public float to (String unit)