org.apache.fop.layoutmgr.table
Class CollapsingBorderModel
java.lang.Object
|
+--org.apache.fop.layoutmgr.table.CollapsingBorderModel
- Direct Known Subclasses:
- CollapsingBorderModelEyeCatching
- public abstract class CollapsingBorderModel
- extends java.lang.Object
This class is a superclass for the two collapsing border models defined
in the XSL 1.0 specification.
Field Summary |
protected static int |
AFTER
after side |
protected static int |
BEFORE
before side |
protected static int |
END
end side |
protected static int |
START
start side |
static int |
VERTICAL_START_END_OF_TABLE
Flag: current grid unit is either start or end of the table. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BEFORE
protected static final int BEFORE
- before side
AFTER
protected static final int AFTER
- after side
START
protected static final int START
- start side
END
protected static final int END
- end side
VERTICAL_START_END_OF_TABLE
public static final int VERTICAL_START_END_OF_TABLE
- Flag: current grid unit is either start or end of the table.
CollapsingBorderModel
public CollapsingBorderModel()
getBorderModelFor
public static CollapsingBorderModel getBorderModelFor(int borderCollapse)
- Parameters:
borderCollapse
- border collapse control- Returns:
- the border model for the cell
getOtherSide
public static int getOtherSide(int side)
- Parameters:
side
- the side on the current cell- Returns:
- the adjacent side on the neighbouring cell
isVerticalRelation
protected boolean isVerticalRelation(int side)
- Parameters:
side
- the side to investigate- Returns:
- true if the adjacent cell is before or after
getPreferenceValue
public int getPreferenceValue(int style)
- See rule 4 in 6.7.10 for the collapsing border model.
- Parameters:
style
- the border style to get the preference value for- Returns:
- the preference value of the style
determineWinner
public abstract CommonBorderPaddingBackground.BorderInfo determineWinner(GridUnit current,
GridUnit neighbour,
int side,
int flags)
- Determines the winning BorderInfo.
- Parameters:
current
- grid unit of the current elementneighbour
- grid unit of the neighbouring element- Returns:
- the winning BorderInfo
Copyright 1999-2005 The Apache Software Foundation. All Rights Reserved.