com.levigo.jadice.document
Class Documents

java.lang.Object
  extended by com.levigo.jadice.document.Documents

public class Documents
extends Object

This utility class contains various utility methods related to documents.

Since:
jadice document platform 5.0

Method Summary
static double convertFromDocumentUnits(Unit toUnit, double value)
          Convert the given value from jadice document units to the given unit.
static float convertFromDocumentUnits(Unit toUnit, float value)
          Convert the given value from jadice document units to the given unit.
static double convertToDocumentUnits(Unit fromUnit, double value)
          Convert the given value from the given unit to jadice document units.
static float convertToDocumentUnits(Unit fromUnit, float value)
          Convert the given value from the given unit to jadice document units.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

convertFromDocumentUnits

public static float convertFromDocumentUnits(Unit toUnit,
                                             float value)
Convert the given value from jadice document units to the given unit.

Parameters:
toUnit - the Unit to convert to
value - the value to convert
Returns:
the converted value
Throws:
NullPointerException - if toUnit is null

convertToDocumentUnits

public static float convertToDocumentUnits(Unit fromUnit,
                                           float value)
Convert the given value from the given unit to jadice document units.

Parameters:
fromUnit - the Unit to convert from
value - the value to convert
Returns:
the converted value
Throws:
NullPointerException - if fromUnit is null

convertFromDocumentUnits

public static double convertFromDocumentUnits(Unit toUnit,
                                              double value)
Convert the given value from jadice document units to the given unit.

Parameters:
toUnit - the Unit to convert to
value - the value to convert
Returns:
the converted value
Throws:
NullPointerException - if toUnit is null

convertToDocumentUnits

public static double convertToDocumentUnits(Unit fromUnit,
                                            double value)
Convert the given value from the given unit to jadice document units.

Parameters:
fromUnit - the Unit to convert from
value - the value to convert
Returns:
the converted value
Throws:
NullPointerException - if fromUnit is null


Copyright © 1995-2020 levigo holding gmbh. All Rights Reserved.