org.apache.fop.datatypes
Class Length

java.lang.Object
  extended byorg.apache.fop.datatypes.Length
Direct Known Subclasses:
AutoLength, FixedLength, LinearCombinationLength, MixedLength, PercentLength, TableColLength

public class Length
extends java.lang.Object

a length quantity in XSL


Field Summary
protected  boolean bIsComputed
           
protected  int millipoints
           
 
Constructor Summary
Length()
           
 
Method Summary
 Numeric asNumeric()
           
protected  void computeValue()
           
 double getTableUnits()
          Return the number of table units which are included in this length specification.
 boolean isAuto()
           
 boolean isComputed()
           
 int mvalue()
          return the length in 1/1000ths of a point
 void resolveTableUnit(double dTableUnit)
           
protected  void setComputedValue(int millipoints)
           
protected  void setComputedValue(int millipoints, boolean bSetComputed)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

millipoints

protected int millipoints

bIsComputed

protected boolean bIsComputed
Constructor Detail

Length

public Length()
Method Detail

mvalue

public int mvalue()
return the length in 1/1000ths of a point


computeValue

protected void computeValue()

setComputedValue

protected void setComputedValue(int millipoints)

setComputedValue

protected void setComputedValue(int millipoints,
                                boolean bSetComputed)

isAuto

public boolean isAuto()

isComputed

public boolean isComputed()

getTableUnits

public double getTableUnits()
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".

Returns:
The number of table units which are included in this length specification.

resolveTableUnit

public void resolveTableUnit(double dTableUnit)

asNumeric

public Numeric asNumeric()

toString

public java.lang.String toString()


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