org.apache.fop.render.rtf.rtflib.tools
Class PercentContext
java.lang.Object
org.apache.fop.render.rtf.rtflib.tools.PercentContext
- PercentBaseContext
public class PercentContext
extends java.lang.Object
PercentBaseContext implementation to track base widths for percentage calculations.
int | getBaseLength(int lengthBase, FObj fobj) - Returns the available width for a specific FObj
|
void | setDimension(FObj fobj) - Elements willing to use this context have to register themselves by
calling this function.
|
void | setDimension(FObj fobj, int width) - Elements having a width property can call this function if their width is
calculated in RTFHandler
|
void | setTableUnit(Table table, int tableUnit) - Records the calculated table unit for a given table.
|
getBaseLength
public int getBaseLength(int lengthBase,
FObj fobj)
Returns the available width for a specific FObj
- getBaseLength in interface PercentBaseContext
lengthBase
- lengthBase not usedfobj
- the FObj
setDimension
public void setDimension(FObj fobj)
Elements willing to use this context have to register themselves by
calling this function.
setDimension
public void setDimension(FObj fobj,
int width)
Elements having a width property can call this function if their width is
calculated in RTFHandler
fobj
- the FObjwidth
- width of the FObj (in millipoints)
setTableUnit
public void setTableUnit(Table table,
int tableUnit)
Records the calculated table unit for a given table.
table
- the table for which the table unit is settableUnit
- the table unit value (in millipoints)
Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.