|
|||||||||
| Home >> All >> org >> jfor >> jfor >> [ converter overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.jfor.jfor.converter
Class FoUnitsConverter

java.lang.Objectorg.jfor.jfor.converter.FoUnitsConverter
- class FoUnitsConverter
- extends java.lang.Object
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 |
private static FoUnitsConverter |
m_instance
|
private static java.util.Map |
m_twipFactors
conversion factors keyed by xsl:fo units names |
static float |
MM_TO_TWIPS
|
static float |
POINT_TO_TWIPS
points to twips: 1 twip is 1/20 of a point |
| Constructor Summary | |
private |
FoUnitsConverter()
singleton pattern |
| 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 |
private float |
numberToTwips(java.lang.String number,
java.lang.String units)
convert given value to twips according to given units |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
m_instance
private static final FoUnitsConverter m_instance
POINT_TO_TWIPS
public static final float POINT_TO_TWIPS
- points to twips: 1 twip is 1/20 of a point
- See Also:
- Constant Field Values
IN_TO_TWIPS
public static final float IN_TO_TWIPS
- millimeters and centimeters to twips: , one point is 1/72 of an inch, one inch is 25.4 mm
- See Also:
- Constant Field Values
MM_TO_TWIPS
public static final float MM_TO_TWIPS
- See Also:
- Constant Field Values
CM_TO_TWIPS
public static final float CM_TO_TWIPS
- See Also:
- Constant Field Values
m_twipFactors
private static final java.util.Map m_twipFactors
- conversion factors keyed by xsl:fo units names
| Constructor Detail |
FoUnitsConverter
private FoUnitsConverter()
- singleton pattern
| Method Detail |
getInstance
static FoUnitsConverter getInstance()
- singleton pattern
convertToTwips
float convertToTwips(java.lang.String foValue) throws ValueConversionException
- convert given value to RTF units
numberToTwips
private float numberToTwips(java.lang.String number, java.lang.String units) throws ValueConversionException
- convert given value to twips according to given units
convertFontSize
int convertFontSize(java.lang.String size) throws ValueConversionException
- convert a font size given in points like "12pt"
|
|||||||||
| Home >> All >> org >> jfor >> jfor >> [ converter overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.jfor.jfor.converter.FoUnitsConverter