org.apache.fop.datatypes
Class PercentLength

java.lang.Object
  extended byorg.apache.fop.datatypes.Length
      extended byorg.apache.fop.datatypes.PercentLength

public class PercentLength
extends Length

a percent specified length quantity in XSL


Field Summary
 
Fields inherited from class org.apache.fop.datatypes.Length
bIsComputed, millipoints
 
Constructor Summary
PercentLength(double factor)
          construct an object based on a factor (the percent, as a a factor) and an object which has a method to return the Length which provides the "base" for this calculation.
PercentLength(double factor, PercentBase lbase)
           
 
Method Summary
 Numeric asNumeric()
           
protected  void computeValue()
          Return the computed value in millipoints.
 PercentBase getBaseLength()
           
 void setBaseLength(PercentBase lbase)
           
 String toString()
           
 double value()
           
 
Methods inherited from class org.apache.fop.datatypes.Length
getTableUnits, isAuto, isComputed, mvalue, resolveTableUnit, setComputedValue, setComputedValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PercentLength

public PercentLength(double factor)
construct an object based on a factor (the percent, as a a factor) and an object which has a method to return the Length which provides the "base" for this calculation.


PercentLength

public PercentLength(double factor,
                     PercentBase lbase)
Method Detail

setBaseLength

public void setBaseLength(PercentBase lbase)

getBaseLength

public PercentBase getBaseLength()

computeValue

protected void computeValue()
Return the computed value in millipoints. This assumes that the base length has been resolved to an absolute length value.

Overrides:
computeValue in class Length

value

public double value()

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.