|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.layout.Box
org.apache.fop.layout.Area
org.apache.fop.layout.BlockArea
This class represents a Block Area. A block area is made up of a sequence of Line Areas. This class is used to organise the sequence of line areas as inline areas are added to this block it creates and ands line areas to hold the inline areas. This uses the line-height and line-stacking-strategy to work out how to stack the lines.
Field Summary | |
protected int |
align
|
protected int |
alignLastLine
|
protected LineArea |
currentLineArea
|
protected LinkSet |
currentLinkSet
|
protected int |
endIndent
|
protected int |
halfLeading
|
protected HyphenationProps |
hyphProps
|
protected int |
lineHeight
|
protected ArrayList |
pendingFootnotes
|
protected int |
startIndent
|
protected int |
textIndent
|
Fields inherited from class org.apache.fop.layout.Area |
allocationWidth, areaClass, background, bp, children, contentRectangleWidth, currentHeight, foCreator, fontState, generatedBy, isFirst, isLast, maxHeight, page, tableCellXOffset |
Fields inherited from class org.apache.fop.layout.Box |
areaTree, parent |
Constructor Summary | |
BlockArea(FontState fontState,
int allocationWidth,
int maxHeight,
int startIndent,
int endIndent,
int textIndent,
int align,
int alignLastLine,
int lineHeight)
|
Method Summary | |
void |
addFootnote(FootnoteBody fb)
|
protected void |
addLineArea(LineArea la)
Add a Line Area to this block area. |
LineArea |
createNextLineArea()
Create a new line area to add inline objects. |
void |
end()
Notify this block that the area has completed layout. |
LineArea |
getCurrentLineArea()
Get the current line area in this block area. |
int |
getEndIndent()
|
int |
getHalfLeading()
|
int |
getStartIndent()
|
void |
render(Renderer renderer)
|
void |
setHyphenation(HyphenationProps hyphProps)
|
void |
setIndents(int startIndent,
int endIndent)
|
void |
setupLinkSet(LinkSet ls)
|
int |
spaceLeft()
Return the maximum space remaining for this area's content in the block-progression-dimension. |
void |
start()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected int startIndent
protected int endIndent
protected int textIndent
protected int lineHeight
protected int halfLeading
protected int align
protected int alignLastLine
protected LineArea currentLineArea
protected LinkSet currentLinkSet
protected HyphenationProps hyphProps
protected ArrayList pendingFootnotes
Constructor Detail |
public BlockArea(FontState fontState, int allocationWidth, int maxHeight, int startIndent, int endIndent, int textIndent, int align, int alignLastLine, int lineHeight)
Method Detail |
public void render(Renderer renderer)
render
in class Box
protected void addLineArea(LineArea la)
la
- the LineArea to addpublic LineArea getCurrentLineArea()
public LineArea createNextLineArea()
public void setupLinkSet(LinkSet ls)
public void end()
end
in class Area
public void start()
start
in class Area
public int getEndIndent()
public int getStartIndent()
public void setIndents(int startIndent, int endIndent)
public int spaceLeft()
spaceLeft
in class Area
public int getHalfLeading()
public void setHyphenation(HyphenationProps hyphProps)
public void addFootnote(FootnoteBody fb)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |