org.apache.fop.datatypes
Class PercentLength
java.lang.Object
org.apache.fop.datatypes.Length
org.apache.fop.datatypes.PercentLength
- public class PercentLength
- extends Length
a percent specified length quantity in XSL
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)
|
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)
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.