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.


Fields inherited from class org.apache.fop.datatypes.Length
bIsComputed, millipoints
 
Constructor Summary
TableColLength(double tcolUnits)
          Construct an object with tcolUnits of proportional measure.
 
Method Summary
 Numeric asNumeric()
           
 double getTableUnits()
          Override the method in Length to return the number of specified proportional table-column units.
 void resolveTableUnit(double mpointsPerUnit)
          Calculate the number of millipoints and set it.
 java.lang.String toString()
           
 
Methods inherited from class org.apache.fop.datatypes.Length
computeValue, isAuto, isComputed, mvalue, setComputedValue, setComputedValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TableColLength

public TableColLength(double tcolUnits)
Construct an object with tcolUnits of proportional measure.
Method Detail

getTableUnits

public double getTableUnits()
Override the method in Length to return the number of specified proportional table-column units.
Overrides:
getTableUnits in class Length
Following copied from class: org.apache.fop.datatypes.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 java.lang.String toString()
Overrides:
toString in class Length

asNumeric

public Numeric asNumeric()
Overrides:
asNumeric in class Length


Copyright © 1999-2002 Apache Software Foundation. All Rights Reserved.