Package org.apache.fop.layoutmgr.table
Class CollapsingBorderModelEyeCatching
java.lang.Object
org.apache.fop.layoutmgr.table.CollapsingBorderModel
org.apache.fop.layoutmgr.table.CollapsingBorderModelEyeCatching
Implements the normal "collapse" border model defined in 6.7.10 in XSL 1.0.
TODO Column groups are not yet checked in this algorithm!
-
Field Summary
Fields inherited from class org.apache.fop.layoutmgr.table.CollapsingBorderModel
AFTER, BEFORE, END, START
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondetermineWinner
(BorderSpecification border1, BorderSpecification border2) Returns the border which wins the border conflict resolution.determineWinner
(BorderSpecification border1, BorderSpecification border2, boolean discard) Returns the border which wins the border conflict resolution.Methods inherited from class org.apache.fop.layoutmgr.table.CollapsingBorderModel
getBorderModelFor, getOtherSide, isVerticalRelation
-
Constructor Details
-
CollapsingBorderModelEyeCatching
public CollapsingBorderModelEyeCatching()
-
-
Method Details
-
determineWinner
public BorderSpecification determineWinner(BorderSpecification border1, BorderSpecification border2, boolean discard) Returns the border which wins the border conflict resolution. In case the two borders are equivalent (identical, or only the color is different), null is returned.- Specified by:
determineWinner
in classCollapsingBorderModel
- Parameters:
border1
- a border specificationborder2
- another border specificationdiscard
- true if the .conditionality component of the border width must be taken into account- Returns:
- the winning border, null if the two borders are equivalent
-
determineWinner
public BorderSpecification determineWinner(BorderSpecification border1, BorderSpecification border2) Returns the border which wins the border conflict resolution. Same asdetermineWinner(border1, border2, false)
.- Specified by:
determineWinner
in classCollapsingBorderModel
- Parameters:
border1
- a border specificationborder2
- another border specification- Returns:
- the winning border, null if the two borders are equivalent
- See Also:
-