org.apache.fop.datatypes
Class TableColLength
java.lang.Object
org.apache.fop.datatypes.Length
org.apache.fop.datatypes.TableColLength
- public class TableColLength
- extends Length
A table-column width specification, possibly including some
number of proportional "column-units". The absolute size of a
column-unit depends on the fixed and proportional sizes of all
columns in the table, and on the overall size of the table.
It can't be calculated until all columns have been specified and until
the actual width of the table is known. Since this can be specified
as a percent of its parent containing width, the calculation is done
during layout.
NOTE: this is only supposed to be allowed if table-layout=fixed.
Constructor Summary |
TableColLength(double tcolUnits)
Construct an object with tcolUnits of proportional measure. |
TableColLength
public TableColLength(double tcolUnits)
- Construct an object with tcolUnits of proportional measure.
getTableUnits
public double getTableUnits()
- Override the method in Length to return the number of specified
proportional table-column units.
- Overrides:
getTableUnits
in class Length
- Returns:
- The number of table units which are included in this
length specification.
resolveTableUnit
public void resolveTableUnit(double mpointsPerUnit)
- Calculate the number of millipoints and set it.
- Overrides:
resolveTableUnit
in class Length
toString
public String toString()
- Overrides:
toString
in class Length
asNumeric
public Numeric asNumeric()
- Overrides:
asNumeric
in class Length
Copyright ? 1999-2003 Apache Software Foundation. All Rights Reserved.