Class FontStrictGeomUtility
java.lang.Object
org.pentaho.reporting.libraries.fonts.tools.FontStrictGeomUtility
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
Modifier and TypeMethodDescriptionstatic 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 Details
-
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.
-
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.
-
multiply
public static long multiply(long x, long y)
-