org.apache.fop.fo.properties

Class LineHeightPropertyMaker

Implemented Interfaces:
Cloneable

public class LineHeightPropertyMaker
extends SpaceProperty.Maker

A maker which calculates the line-height property. This property maker is special because line-height inherits the specified value, instead of the computed value. So when a line-height is create based on an attribute, the specified value is stored in the property and in compute() the stored specified value of the nearest specified is used to recalculate the line-height.

Field Summary

Fields inherited from class org.apache.fop.fo.properties.PropertyMaker

contextDep, corresponding, defaultProperty, defaultValue, propId, setByShorthand

Constructor Summary

LineHeightPropertyMaker(int propId)
Create a maker for line-height.

Method Summary

protected Property
compute(PropertyList propertyList)
Recalculate the line-height value based on the nearest specified value.
Property
convertProperty(Property p, PropertyList propertyList, FObj fo)
Property
make(PropertyList propertyList, String value, FObj fo)

Methods inherited from class org.apache.fop.fo.properties.SpaceProperty.Maker

convertProperty, makeNewProperty

Methods inherited from class org.apache.fop.fo.properties.CompoundPropertyMaker

addSubpropMaker, checkEnumValues, convertProperty, get, getSubpropMaker, make, make, make, makeCompound, useGeneric

Methods inherited from class org.apache.fop.fo.properties.PropertyMaker

addEnum, addKeyword, addShorthand, addSubpropMaker, checkEnumValues, checkValueKeywords, clone, compute, convertProperty, convertPropertyDatatype, convertShorthandProperty, findProperty, get, getName, getPercentBase, getPropId, getShorthand, getSubprop, getSubpropMaker, isInherited, make, make, make, makeNewProperty, setByShorthand, setCorresponding, setDatatypeParser, setDefault, setDefault, setInherited, setPercentBase, setSubprop, useGeneric

Constructor Details

LineHeightPropertyMaker

public LineHeightPropertyMaker(int propId)
Create a maker for line-height.
Parameters:
propId - the is for linehight.

Method Details

compute

protected Property compute(PropertyList propertyList)
            throws PropertyException
Recalculate the line-height value based on the nearest specified value.
Overrides:
compute in interface PropertyMaker

convertProperty

public Property convertProperty(Property p,
                                PropertyList propertyList,
                                FObj fo)
            throws PropertyException
Overrides:
convertProperty in interface SpaceProperty.Maker

make

public Property make(PropertyList propertyList,
                     String value,
                     FObj fo)
            throws PropertyException
Overrides:
make in interface CompoundPropertyMaker

Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.