net.sf.jasperreports.engine.export.ooxml
Class Utility
java.lang.Object
net.sf.jasperreports.engine.export.ooxml.Utility
public class Utility
- extends java.lang.Object
- Version:
- $Id: Utility.java 3033 2009-08-27 11:46:22Z teodord $
- Author:
- sanda zaharia (shertage@users.sourceforge.net)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Utility
public Utility()
getIndent
public static java.lang.String getIndent(int i)
translatePixelsToInches
public static double translatePixelsToInches(double pixels)
translatePixelsToInchesRound
public static double translatePixelsToInchesRound(double pixels)
translatePixelsToInchesWithNoRoundOff
public static double translatePixelsToInchesWithNoRoundOff(double pixels)
replaceNewLineWithLineBreak
protected static java.lang.String replaceNewLineWithLineBreak(java.lang.String source)
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)
© 2001-2009 Jaspersoft Corporation www.jaspersoft.com