Package org.apache.fop.layoutmgr.table
Class CellPart
- java.lang.Object
-
- org.apache.fop.layoutmgr.table.CellPart
-
class CellPart extends java.lang.Object
Represents a non-divisible part of a grid unit. Used by the table stepper.
-
-
Field Summary
Fields Modifier and Type Field Description private int
bpAfterLast
private int
bpAfterNormal
private int
bpBeforeFirst
private int
bpBeforeNormal
private int
condAfterContentLength
private int
condBeforeContentLength
protected int
end
Index of the ending element of this partprivate boolean
isLast
private int
length
protected PrimaryGridUnit
pgu
Primary grid unitprotected int
start
Index of the starting element of this part
-
Constructor Summary
Constructors Modifier Constructor Description 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) int
getBorderPaddingAfter(boolean lastOnPage)
(package private) int
getBorderPaddingBefore(boolean firstOnPage)
(package private) int
getConditionalAfterContentLength()
(package private) int
getConditionalBeforeContentLength()
(package private) int
getLength()
boolean
isFirstPart()
(package private) boolean
isLastPart()
java.lang.String
toString()
-
-
-
Field Detail
-
pgu
protected PrimaryGridUnit pgu
Primary grid unit
-
start
protected int start
Index of the starting element of this part
-
end
protected int end
Index 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 Detail
-
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 Detail
-
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
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-