Package org.apache.fop.fo.properties
Class IndentPropertyMaker
java.lang.Object
org.apache.fop.fo.properties.CorrespondingPropertyMaker
org.apache.fop.fo.properties.IndentPropertyMaker
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
-
Constructor Summary
ConstructorsConstructorDescriptionIndentPropertyMaker
(PropertyMaker baseMaker) Create a start-indent or end-indent property maker. -
Method Summary
Modifier and TypeMethodDescriptioncompute
(PropertyList propertyList) Calculate the corresponding value for start-indent and end-indent.computeAlternativeRuleset
(PropertyList propertyList) Calculate the corresponding value for start-indent and end-indent.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
-
Constructor Details
-
IndentPropertyMaker
Create a start-indent or end-indent property maker.- Parameters:
baseMaker
- the property maker to use
-
-
Method Details
-
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
Calculate the corresponding value for start-indent and end-indent.- Overrides:
compute
in classCorrespondingPropertyMaker
- Parameters:
propertyList
- the property list to use in the computation- Returns:
- the computed indent property
- Throws:
PropertyException
- if a property exception occurs- See Also:
-
computeConforming
Calculate the corresponding value for start-indent and end-indent.- Parameters:
propertyList
- the property list to use in the computation- Returns:
- the computed indent property
- Throws:
PropertyException
- if a property exception occurs- See Also:
-
computeAlternativeRuleset
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.- Parameters:
propertyList
- the property list to use in the computation- Returns:
- the computed indent property
- Throws:
PropertyException
- if a property exception occurs- See Also:
-