org.apache.fop.layoutmgr.table
Class CollapsingBorderModelEyeCatching
java.lang.Object
org.apache.fop.layoutmgr.table.CollapsingBorderModel
org.apache.fop.layoutmgr.table.CollapsingBorderModelEyeCatching
public class CollapsingBorderModelEyeCatching
- extends CollapsingBorderModel
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!
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CollapsingBorderModelEyeCatching
public CollapsingBorderModelEyeCatching()
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 class CollapsingBorderModel
- 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 as
determineWinner(border1, border2, false)
.
- Specified by:
determineWinner
in class CollapsingBorderModel
- Parameters:
border1
- a border specificationborder2
- another border specification
- Returns:
- the winning border, null if the two borders are equivalent
- See Also:
determineWinner
Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.