|
fop 0.95 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.render.rtf.rtflib.tools.PercentContext
public class PercentContext
PercentBaseContext implementation to track base widths for percentage calculations.
Constructor Summary | |
---|---|
PercentContext()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PercentContext()
Method Detail |
---|
public int getBaseLength(int lengthBase, FObj fobj)
getBaseLength
in interface PercentBaseContext
lengthBase
- lengthBase not usedfobj
- the FObj
public void setDimension(FObj fobj, int width)
fobj
- the FObjwidth
- width of the FObj (in millipoints)public void setTableUnit(Table table, int tableUnit)
table
- the table for which the table unit is settableUnit
- the table unit value (in millipoints)public void setDimension(FObj fobj)
fobj
- the FObj
|
fop 0.95 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |