Class LengthUtil
java.lang.Object
net.sf.jasperreports.engine.export.LengthUtil
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
-
Method Summary
Modifier and TypeMethodDescriptionstatic intemu(float points) Convert an int value from points to EMU (multiply with 12700)static inthalfPoint(float pixels) static doubleinch(double pixels) Converts pixels to inches without decimal truncation.static doubleinchFloor2Dec(double pixels) static doubleinchFloor4Dec(double pixels) static doubleinchRound2Dec(double pixels) static doubleinchRound4Dec(double pixels) static inttwip(float points) Convert a float value to twips (multiply with 20)
-
Method Details
-
inch
public static double inch(double pixels) Converts pixels to inches without decimal truncation. -
inchFloor2Dec
public static double inchFloor2Dec(double pixels) -
inchFloor4Dec
public static double inchFloor4Dec(double pixels) -
inchRound2Dec
public static double inchRound2Dec(double pixels) -
inchRound4Dec
public static double inchRound4Dec(double pixels) -
twip
public static int twip(float points) Convert a float value to twips (multiply with 20)- Parameters:
points- value that need to be converted- Returns:
- converted value in twips
-
emu
public static int emu(float points) Convert an int value from points to EMU (multiply with 12700)- Parameters:
points- value that needs to be converted- Returns:
- converted value in EMU
-
halfPoint
public static int halfPoint(float pixels)
-