Package org.apache.fop.layoutmgr.table
Class CellPart
java.lang.Object
org.apache.fop.layoutmgr.table.CellPart
Represents a non-divisible part of a grid unit. Used by the table stepper.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private int
private int
private int
private int
private int
protected int
Index of the ending element of this partprivate boolean
private int
protected PrimaryGridUnit
Primary grid unitprotected int
Index of the starting element of this part -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
CellPart
(PrimaryGridUnit pgu, int start, int end, boolean last, int condBeforeContentLength, int length, int condAfterContentLength, int bpBeforeNormal, int bpBeforeFirst, int bpAfterNormal, int bpAfterLast) Creates a new CellPart. -
Method Summary
Modifier and TypeMethodDescription(package private) int
getBorderPaddingAfter
(boolean lastOnPage) (package private) int
getBorderPaddingBefore
(boolean firstOnPage) (package private) int
(package private) int
(package private) int
boolean
(package private) boolean
toString()
-
Field Details
-
pgu
Primary grid unit -
start
protected int startIndex of the starting element of this part -
end
protected int endIndex of the ending element of this part -
condBeforeContentLength
private int condBeforeContentLength -
length
private int length -
condAfterContentLength
private int condAfterContentLength -
bpBeforeNormal
private int bpBeforeNormal -
bpBeforeFirst
private int bpBeforeFirst -
bpAfterNormal
private int bpAfterNormal -
bpAfterLast
private int bpAfterLast -
isLast
private boolean isLast
-
-
Constructor Details
-
CellPart
protected CellPart(PrimaryGridUnit pgu, int start, int end, boolean last, int condBeforeContentLength, int length, int condAfterContentLength, int bpBeforeNormal, int bpBeforeFirst, int bpAfterNormal, int bpAfterLast) Creates a new CellPart.- Parameters:
pgu
- Primary grid unitstart
- starting elementend
- ending elementlast
- true if this cell part is the last one for the cellcondBeforeContentLength
- length of the additional content that will have to be displayed if this part will be the first one on the pagelength
- length of the content represented by this cell partcondAfterContentLength
- length of the additional content that will have to be displayed if this part will be the last one on the pagebpBeforeNormal
- width of border- and padding-before in the normal casebpBeforeFirst
- width of (possibly optional) border- and padding-before if this part will be the first one on the pagebpAfterNormal
- width of border- and padding-after in the normal casebpAfterLast
- width of (possibly optional) border- and padding-after if this part will be the last one on the page
-
-
Method Details
-
isFirstPart
public boolean isFirstPart()- Returns:
- true if this part is the first part of a cell
-
isLastPart
boolean isLastPart()- Returns:
- true if this part is the last part of a cell
-
getBorderPaddingBefore
int getBorderPaddingBefore(boolean firstOnPage) -
getBorderPaddingAfter
int getBorderPaddingAfter(boolean lastOnPage) -
getConditionalBeforeContentLength
int getConditionalBeforeContentLength() -
getLength
int getLength() -
getConditionalAfterContentLength
int getConditionalAfterContentLength() -
toString
-