fop 0.95

org.apache.fop.fo.properties
Class IndentPropertyMaker

java.lang.Object
  extended by org.apache.fop.fo.properties.CorrespondingPropertyMaker
      extended by org.apache.fop.fo.properties.IndentPropertyMaker

public class IndentPropertyMaker
extends CorrespondingPropertyMaker

This property maker handles the calculations described in 5.3.2 which involves the sizes of the corresponding margin-* properties and the padding-* and border-*-width properties.


Field Summary
 
Fields inherited from class org.apache.fop.fo.properties.CorrespondingPropertyMaker
baseMaker, lr_tb, rl_tb, tb_rl, useParent
 
Constructor Summary
IndentPropertyMaker(PropertyMaker baseMaker)
          Create a start-indent or end-indent property maker.
 
Method Summary
 Property compute(PropertyList propertyList)
          Calculate the corresponding value for start-indent and end-indent.
 Property computeAlternativeRuleset(PropertyList propertyList)
          Calculate the corresponding value for start-indent and end-indent.
 Property computeConforming(PropertyList propertyList)
          Calculate the corresponding value for start-indent and end-indent.
 void setBorderWidthCorresponding(int[] borderWidthCorresponding)
          Set the corresponding values for the border-*-width properties.
 void setPaddingCorresponding(int[] paddingCorresponding)
          Set the corresponding values for the padding-* properties.
 
Methods inherited from class org.apache.fop.fo.properties.CorrespondingPropertyMaker
getWMPropertyList, isCorrespondingForced, setCorresponding, setRelative, setUseParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndentPropertyMaker

public IndentPropertyMaker(PropertyMaker baseMaker)
Create a start-indent or end-indent property maker.

Parameters:
baseMaker - the property maker to use
Method Detail

setPaddingCorresponding

public void setPaddingCorresponding(int[] paddingCorresponding)
Set the corresponding values for the padding-* properties.

Parameters:
paddingCorresponding - the corresping propids.

setBorderWidthCorresponding

public void setBorderWidthCorresponding(int[] borderWidthCorresponding)
Set the corresponding values for the border-*-width properties.

Parameters:
borderWidthCorresponding - the corresping propids.

compute

public Property compute(PropertyList propertyList)
                 throws PropertyException
Calculate the corresponding value for start-indent and end-indent.

Overrides:
compute in class CorrespondingPropertyMaker
Parameters:
propertyList - The PropertyList for the FO.
Returns:
Property A computed Property value or null if no rules are specified (in foproperties.xml) to compute the value.
Throws:
PropertyException
See Also:
CorrespondingPropertyMaker.compute(PropertyList)

computeConforming

public Property computeConforming(PropertyList propertyList)
                           throws PropertyException
Calculate the corresponding value for start-indent and end-indent.

Throws:
PropertyException
See Also:
CorrespondingPropertyMaker.compute(PropertyList)

computeAlternativeRuleset

public Property computeAlternativeRuleset(PropertyList propertyList)
                                   throws PropertyException
Calculate the corresponding value for start-indent and end-indent. This method calculates indent following an alternative rule set that tries to mimic many commercial solutions that chose to violate the XSL specification.

Throws:
PropertyException
See Also:
CorrespondingPropertyMaker.compute(PropertyList)

fop 0.95

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