org.apache.poi.util
Class Units
- java.lang.Object
-
- org.apache.poi.util.Units
-
public class Units extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field and Description static intEMU_PER_PIXELstatic intEMU_PER_POINT
-
Constructor Summary
Constructors Constructor and Description Units()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static doublefixedPointToDecimal(int fixedPoint)Converts a value of type FixedPoint to a decimal numberstatic inttoEMU(double points)Converts points to EMUsstatic doubletoPoints(long emu)Converts EMUs to points
-
-
-
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
-
-
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
-
-
DataMelt 3.0 © DataMelt by jWork.ORG