org.pentaho.reporting.libraries.fonts.tools

Class StrictGeomUtility

public class StrictGeomUtility extends Object

This class is the heart of the alternative geometrics toolkit. It performs the neccessary conversions from and to the AWT classes to the Strict-classes.

Author: Thomas Morgner

Method Summary
static longmultiply(long x, long y)
static doubletoExternalValue(long value)
Converts the given micro point value into an AWT value.
static longtoInternalValue(double value)
Converts the given AWT value into a strict value.

Method Detail

multiply

public static long multiply(long x, long y)

toExternalValue

public static double toExternalValue(long value)
Converts the given micro point value into an AWT value.

Parameters: value the micro point point value.

Returns: the AWT point value.

toInternalValue

public static long toInternalValue(double value)
Converts the given AWT value into a strict value.

Parameters: value the AWT point value.

Returns: the internal micro point value.