fop 0.92beta

org.apache.fop.fo.properties
Class LineHeightPropertyMaker

java.lang.Object
  |
  +--org.apache.fop.fo.properties.PropertyMaker
        |
        +--org.apache.fop.fo.properties.CompoundPropertyMaker
              |
              +--org.apache.fop.fo.properties.SpaceProperty.Maker
                    |
                    +--org.apache.fop.fo.properties.LineHeightPropertyMaker
All Implemented Interfaces:
java.lang.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.


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)
          Return a Property object based on the passed Property object.
 Property make(PropertyList propertyList, java.lang.String value, FObj fo)
          Create a Property object from an attribute specification.
 
Methods inherited from class org.apache.fop.fo.properties.SpaceProperty.Maker
makeNewProperty
 
Methods inherited from class org.apache.fop.fo.properties.CompoundPropertyMaker
addSubpropMaker, checkEnumValues, get, getSubpropMaker, make, make, makeCompound, useGeneric
 
Methods inherited from class org.apache.fop.fo.properties.PropertyMaker
addEnum, addKeyword, addShorthand, checkValueKeywords, clone, convertPropertyDatatype, convertShorthandProperty, findProperty, getName, getPercentBase, getPropId, getShorthand, getSubprop, isInherited, setByShorthand, setCorresponding, setDatatypeParser, setDefault, setDefault, setInherited, setPercentBase, setSubprop
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LineHeightPropertyMaker

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

make

public Property make(PropertyList propertyList,
                     java.lang.String value,
                     FObj fo)
              throws PropertyException
Description copied from class: CompoundPropertyMaker
Create a Property object from an attribute specification.
Overrides:
make in class CompoundPropertyMaker
Throws:
PropertyException -  
See Also:
PropertyMaker.make(PropertyList, String, FObj)

compute

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

convertProperty

public Property convertProperty(Property p,
                                PropertyList propertyList,
                                FObj fo)
                         throws PropertyException
Description copied from class: CompoundPropertyMaker
Return a Property object based on the passed Property object. This method is called if the Property object built by the parser isn't the right type for this compound property.
Overrides:
convertProperty in class SpaceProperty.Maker
See Also:
SpaceProperty.Maker.convertProperty(Property, PropertyList, FObj)

fop 0.92beta

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