org.apache.fop.fo.properties

Class 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

compute, getWMPropertyList, isCorrespondingForced, setCorresponding, setRelative, setUseParent

Constructor Details

IndentPropertyMaker

public IndentPropertyMaker(PropertyMaker baseMaker)
Create a start-indent or end-indent property maker.
Parameters:
baseMaker - the property maker to use

Method Details

compute

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

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.

computeConforming

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

setBorderWidthCorresponding

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

setPaddingCorresponding

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

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