org.apache.fop.fo.properties
Class PercentLength
- Length, Numeric
public class PercentLength
a percent specified length quantity in XSL
getCharacter , getColor , getCondLength , getEnum , getKeep , getLength , getLengthPair , getLengthRange , getList , getNCname , getNumber , getNumeric , getObject , getSpace , getSpecifiedValue , getString , isAuto , setSpecifiedValue , toString |
PercentLength
public PercentLength(double factor,
PercentBase lbase)
Main constructor. Construct an object based on a factor (the percent,
as a factor) and an object which has a method to return the Length which
provides the "base" for the actual length that is modeled.
factor
- the percentage factor, expressed as a decimal (e.g. use
.95 to represent 95%)lbase
- base property to which the factor should be applied
getPercentage
protected double getPercentage()
Used during property resolution to check for
negative percentages
isAbsolute
public boolean isAbsolute()
Return false because percent-length are always relative.
- isAbsolute in interface Numeric
toString
public String toString()
- toString in interface Property
- the String equivalent of this
Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.