org.apache.fop.layoutmgr.table
Class CollapsingBorderModel
java.lang.Object
org.apache.fop.layoutmgr.table.CollapsingBorderModel
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.
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.
|
AFTER
protected static final int AFTER
after side
BEFORE
protected static final int BEFORE
before side
END
protected static final int END
end side
START
protected static final int START
start 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.
getBorderModelFor
public static CollapsingBorderModel getBorderModelFor(int borderCollapse)
borderCollapse
- border collapse control
- the border model for the cell
getOtherSide
public static int getOtherSide(int side)
side
- the side on the current cell
- the adjacent side on the neighbouring cell
getPreferenceValue
public int getPreferenceValue(int style)
See rule 4 in 6.7.10 for the collapsing border model.
style
- the border style to get the preference value for
- the preference value of the style
isVerticalRelation
protected boolean isVerticalRelation(int side)
side
- the side to investigate
- true if the adjacent cell is before or after
Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.