org.apache.fop.datatypes
Class MixedLength

java.lang.Object
  extended by org.apache.fop.datatypes.Length
      extended by org.apache.fop.datatypes.MixedLength

public class MixedLength
extends Length

A length quantity in XSL which is specified with a mixture of absolute and relative and/or percent components. The actual value may not be computable before layout is done.


Field Summary
 
Fields inherited from class org.apache.fop.datatypes.Length
bIsComputed, millipoints
 
Constructor Summary
MixedLength(ArrayList lengths)
           
 
Method Summary
 Numeric asNumeric()
           
protected  void computeValue()
           
 double getTableUnits()
          Return the number of table units which are included in this length specification.
 void resolveTableUnit(double dTableUnit)
           
 String toString()
           
 
Methods inherited from class org.apache.fop.datatypes.Length
isAuto, isComputed, mvalue, setComputedValue, setComputedValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MixedLength

public MixedLength(ArrayList lengths)
Method Detail

computeValue

protected void computeValue()
Overrides:
computeValue in class Length

getTableUnits

public double getTableUnits()
Description copied from class: Length
Return the number of table units which are included in this length specification. This will always be 0 unless the property specification used the proportional-column-width() function (only only table column FOs).

If this value is not 0, the actual value of the Length cannot be known without looking at all of the columns in the table to determine the value of a "table-unit".

Overrides:
getTableUnits in class Length
Returns:
The number of table units which are included in this length specification.

resolveTableUnit

public void resolveTableUnit(double dTableUnit)
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.