| |
|
| java.lang.Object org.apache.fop.util.UnitConv
UnitConv | final public class UnitConv (Code) | | Utility class for unit conversions.
|
Field Summary | |
final public static float | IN2CM conversion factory from centimeters to inches. | final public static float | IN2MM conversion factory from millimeters to inches. | final public static int | IN2PT conversion factory from inches to points. |
Method Summary | |
public static double | in2mm(double in) | public static double | in2mpt(double in) | public static double | mm2in(double mm) | public static double | mm2mpt(double mm) | public static double | mm2pt(double mm) | public static double | mm2px(double mm, int resolution) | public static double | mpt2in(double mpt) | public static double | mpt2px(double mpt, int resolution) | public static double | pt2mm(double pt) |
IN2CM | final public static float IN2CM(Code) | | conversion factory from centimeters to inches.
|
IN2MM | final public static float IN2MM(Code) | | conversion factory from millimeters to inches.
|
IN2PT | final public static int IN2PT(Code) | | conversion factory from inches to points.
|
in2mm | public static double in2mm(double in)(Code) | | Converts inches (in) to millimeters (mm)
Parameters: in - the value in inches the value in mm |
in2mpt | public static double in2mpt(double in)(Code) | | Converts inches (in) to millipoints (mpt)
Parameters: in - the value in inches the value in mpt |
mm2in | public static double mm2in(double mm)(Code) | | Converts millimeters (mm) to inches (in)
Parameters: mm - the value in mm the value in inches |
mm2mpt | public static double mm2mpt(double mm)(Code) | | Converts millimeters (mm) to millipoints (mpt)
Parameters: mm - the value in mm the value in mpt |
mm2pt | public static double mm2pt(double mm)(Code) | | Converts millimeters (mm) to points (pt)
Parameters: mm - the value in mm the value in pt |
mm2px | public static double mm2px(double mm, int resolution)(Code) | | Converts millimeters (mm) to pixels (px)
Parameters: mm - the value in mm Parameters: resolution - the resolution in dpi (dots per inch) the value in pixels |
mpt2in | public static double mpt2in(double mpt)(Code) | | Converts millipoints (mpt) to inches (in)
Parameters: mpt - the value in mpt the value in inches |
mpt2px | public static double mpt2px(double mpt, int resolution)(Code) | | Converts millipoints (mpt) to pixels (px)
Parameters: mpt - the value in mpt Parameters: resolution - the resolution in dpi (dots per inch) the value in pixels |
pt2mm | public static double pt2mm(double pt)(Code) | | Converts points (pt) to millimeters (mm)
Parameters: pt - the value in pt the value in mm |
|
|
|