DynamicPDF by ceTe Software

com.cete.dynamicpdf
Class UnitConverter

java.lang.Object
  extended by com.cete.dynamicpdf.UnitConverter

public class UnitConverter
extends java.lang.Object

Utility for converting to and from typesetting points.


Method Summary
static float InchesToPoints(float size)
          Converts from inches to typesetting points.
static float MillimetersToPoints(float size)
          Converts from millimeters to typesetting points.
static float PointsToInches(float size)
          Converts from typesetting points to inches.
static float PointsToMillimeters(float size)
          Converts from typesetting points to millimeters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

PointsToInches

public static float PointsToInches(float size)
Converts from typesetting points to inches.

Parameters:
size - Size in points.
Returns:
float The size in inches.

PointsToMillimeters

public static float PointsToMillimeters(float size)
Converts from typesetting points to millimeters.

Parameters:
size - Size in points.
Returns:
float The size in inches.

InchesToPoints

public static float InchesToPoints(float size)
Converts from inches to typesetting points.

Parameters:
size - Size in inches.
Returns:
float The size in points.

MillimetersToPoints

public static float MillimetersToPoints(float size)
Converts from millimeters to typesetting points.

Parameters:
size - Size in millimeters.
Returns:
float The size in points.

DynamicPDF by ceTe Software

API Reference for DynamicPDF v10.07 for Java generated on Aug 12, 2020
© Copyright 2020, ceTe Software