org.apache.fop.datatypes
Class Length

Direct Known Subclasses:
CondLength, MixedLength, PercentLength

public class Length

a length quantity in XSL


Field Summary
 final static LengthAUTO
           

Constructor Summary
Length(double numRelUnits, int iCurFontSize)
          Set the length given a number of relative units and the current font size in base units.
Length(double numUnits, String units)
          Set the length given a number of units and a unit name.
Length(int baseUnits)
          set the length as a number of base units

Method Summary
 doublegetTableUnits()
          Return the number of table units which are included in this length specification.
 booleanisAuto()
           
 intmvalue()
          return the length in 1/1000ths of a point
 StringtoString()
           

Field Detail

AUTO

public final static Length AUTO
Constructor Detail

Length

public Length(double numRelUnits, int iCurFontSize)
Set the length given a number of relative units and the current font size in base units.

Length

public Length(double numUnits, String units)
Set the length given a number of units and a unit name.

Length

public Length(int baseUnits)
set the length as a number of base units
Method Detail

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.

isAuto

public boolean isAuto()

mvalue

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

toString

public String toString()

Association Links

to Class org.apache.fop.datatypes.Length