|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfor.jfor.converter.FoUnitsConverter
Converts XSL-FO units to RTF units
Field Summary | |
static float |
CM_TO_TWIPS
|
static float |
IN_TO_TWIPS
millimeters and centimeters to twips: , one point is 1/72 of an inch, one inch is 25.4 mm |
static float |
MM_TO_TWIPS
|
static float |
POINT_TO_TWIPS
points to twips: 1 twip is 1/20 of a point |
Method Summary | |
(package private) int |
convertFontSize(java.lang.String size)
convert a font size given in points like "12pt" |
(package private) float |
convertToTwips(java.lang.String foValue)
convert given value to RTF units |
(package private) static FoUnitsConverter |
getInstance()
singleton pattern |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final float POINT_TO_TWIPS
public static final float IN_TO_TWIPS
public static final float MM_TO_TWIPS
public static final float CM_TO_TWIPS
Method Detail |
static FoUnitsConverter getInstance()
float convertToTwips(java.lang.String foValue) throws ValueConversionException
foValue
- a value like "12mm"
TODO: tested with "mm" units only, needs work to comply with FO spec
Why does it search for period instead of simply breaking last two
Characters into another units string? - Chris
ValueConversionException
int convertFontSize(java.lang.String size) throws ValueConversionException
ValueConversionException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |