org.apache.fop.datatypes
Class FixedLength

java.lang.Object
  |
  +--org.apache.fop.datatypes.Length
        |
        +--org.apache.fop.datatypes.FixedLength

public class FixedLength
extends Length

a length quantity in XSL


Fields inherited from class org.apache.fop.datatypes.Length
bIsComputed, millipoints
 
Constructor Summary
FixedLength(double numRelUnits, int iCurFontSize)
          Set the length given a number of relative units and the current font size in base units.
FixedLength(double numUnits, java.lang.String units)
          Set the length given a number of units and a unit name.
FixedLength(int baseUnits)
          set the length as a number of base units
 
Method Summary
 Numeric asNumeric()
           
protected  void convert(double dvalue, java.lang.String unit)
          Convert the given length to a dimensionless integer representing a whole number of base units (milli-points).
 
Methods inherited from class org.apache.fop.datatypes.Length
computeValue, getTableUnits, isAuto, isComputed, mvalue, resolveTableUnit, setComputedValue, setComputedValue, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FixedLength

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

FixedLength

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

FixedLength

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

convert

protected void convert(double dvalue,
                       java.lang.String unit)
Convert the given length to a dimensionless integer representing a whole number of base units (milli-points).

asNumeric

public Numeric asNumeric()
Overrides:
asNumeric in class Length


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