net.sf.jasperreports.engine.export

## Class LengthUtil

- java.lang.Object
- - net.sf.jasperreports.engine.export.LengthUtil

-     public final class LengthUtil
      extends java.lang.Object

  Version:
    $Id: LengthUtil.java 5878 2013-01-07 20:23:13Z teodord $
  Author:
    Teodor Danciu (teodord@users.sourceforge.net)

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static int` | `emu(float points)` Convert an int value from points to EMU (multiply with 12700)
    `static int` | `halfPoint(float pixels)`
    `static double` | `inch(double pixels)`
    `static double` | `inchNoRound(double pixels)`
    `static double` | `inchRound(double pixels)`
    `static int` | `twip(float points)` Convert a float value to twips (multiply with 20)

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### inch

          public static double inch(double pixels)

    - #### inchRound

          public static double inchRound(double pixels)

    - #### inchNoRound

          public static double inchNoRound(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)

© 2001-2010 Jaspersoft Corporation www.jaspersoft.com