* {@inheritDoc}
*/
public Property convertProperty(Property p,
PropertyList propertyList,
FObj fo) throws PropertyException {
Numeric numval = p.getNumeric();
if (numval != null && numval.getDimension() == 0) {
if (getPercentBase(propertyList) instanceof LengthBase) {
Length base = ((LengthBase)getPercentBase(propertyList)).getBaseLength();
if (base != null && base.isAbsolute()) {
p = FixedLength.getInstance(
numval.getNumericValue() * base.getNumericValue());
} else {
p = new PercentLength(
numval.getNumericValue(), getPercentBase(propertyList));
}
}
Property spaceProp = super.convertProperty(p, propertyList, fo);
spaceProp.setSpecifiedValue(String.valueOf(numval.getNumericValue()));
return spaceProp;
}
return super.convertProperty(p, propertyList, fo);
}