org.apache.poi.util
Class Units

java.lang.Object
  extended by org.apache.poi.util.Units

public class Units
extends java.lang.Object

Author:
Yegor Kozlov

Field Summary
static int EMU_PER_PIXEL
           
static int EMU_PER_POINT
           
 
Constructor Summary
Units()
           
 
Method Summary
static double fixedPointToDecimal(int fixedPoint)
          Converts a value of type FixedPoint to a decimal number
static int toEMU(double points)
          Converts points to EMUs
static double toPoints(long emu)
          Converts EMUs to points
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMU_PER_PIXEL

public static final int EMU_PER_PIXEL
See Also:
Constant Field Values

EMU_PER_POINT

public static final int EMU_PER_POINT
See Also:
Constant Field Values
Constructor Detail

Units

public Units()
Method Detail

toEMU

public static int toEMU(double points)
Converts points to EMUs

Parameters:
points - points
Returns:
emus

toPoints

public static double toPoints(long emu)
Converts EMUs to points

Parameters:
emu - emu
Returns:
points

fixedPointToDecimal

public static double fixedPointToDecimal(int fixedPoint)
Converts a value of type FixedPoint to a decimal number

Parameters:
fixedPoint -
Returns:
decimal number
See Also:
[MS-OSHARED] - 2.2.1.6 FixedPoint


Copyright 2015 The Apache Software Foundation or its licensors, as applicable.