|
|||||||||||
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
Field Summary | |
protected int |
allocationWidth
|
protected String |
areaClass
|
protected BackgroundProps |
background
|
protected BorderAndPadding |
bp
|
protected ArrayList |
children
|
protected int |
contentRectangleWidth
|
protected int |
currentHeight
Total height of content of this area. |
FObj |
foCreator
|
protected FontState |
fontState
|
protected FObj |
generatedBy
|
protected boolean |
isFirst
|
protected boolean |
isLast
|
protected int |
maxHeight
|
protected Page |
page
|
protected int |
tableCellXOffset
|
Fields inherited from class org.apache.fop.layout.Box |
areaTree, parent |
Constructor Summary | |
Area(FontState fontState)
|
|
Area(FontState fontState,
int allocationWidth,
int maxHeight)
Creates a new Area instance. |
Method Summary | |
void |
addChild(Box child)
|
void |
addChildAtStart(Box child)
|
void |
addDisplaySpace(int size)
|
void |
addInlineSpace(int size)
|
void |
end()
|
int |
getAbsoluteHeight()
Return absolute Y position of the current bottom of this area, not counting any bottom padding or border. |
int |
getAllocationWidth()
|
BackgroundProps |
getBackground()
|
BorderAndPadding |
getBorderAndPadding()
|
int |
getBorderBottomWidth()
|
int |
getBorderLeftWidth()
|
int |
getBorderRightWidth()
|
int |
getBorderTopWidth()
|
ArrayList |
getChildren()
|
int |
getContentHeight()
Returns content height of the area. |
int |
getContentWidth()
|
FObj |
getfoCreator()
|
FontInfo |
getFontInfo()
|
FontState |
getFontState()
|
FObj |
getGeneratedBy()
|
int |
getHeight()
Returns allocation height of this area. |
IDReferences |
getIDReferences()
|
int |
getMaxHeight()
|
AreaContainer |
getNearestAncestorAreaContainer()
|
int |
getPaddingBottom()
|
int |
getPaddingLeft()
|
int |
getPaddingRight()
|
int |
getPaddingTop()
|
Page |
getPage()
|
Area |
getParent()
|
int |
getTableCellXOffset()
|
boolean |
hasChildren()
|
boolean |
hasNonSpaceChildren()
Tell whether this area contains any children which are not DisplaySpace. |
void |
increaseHeight(int amount)
|
boolean |
isFirst()
|
void |
isFirst(boolean isFirst)
|
boolean |
isLast()
|
void |
isLast(boolean isLast)
|
void |
remove()
|
void |
removeChild(Area area)
|
void |
removeChild(DisplaySpace spacer)
|
void |
setAbsoluteHeight(int value)
Set "absolute" Y position of the top of this area. |
void |
setAllocationWidth(int w)
Set the allocation width. |
void |
setBackground(BackgroundProps bg)
|
void |
setBorderAndPadding(BorderAndPadding bp)
|
void |
setGeneratedBy(FObj generatedBy)
|
void |
setHeight(int height)
Set the content height to the passed value if that value is larger than current content height. |
void |
setIDReferences(IDReferences idReferences)
|
void |
setMaxHeight(int height)
|
void |
setPage(Page page)
|
void |
setParent(Area parent)
|
void |
setTableCellXOffset(int offset)
|
int |
spaceLeft()
Return space remaining in the vertical direction (height). |
void |
start()
|
Methods inherited from class org.apache.fop.layout.Box |
render |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected FontState fontState
protected BorderAndPadding bp
protected ArrayList children
protected int maxHeight
protected int currentHeight
protected int tableCellXOffset
protected int contentRectangleWidth
protected int allocationWidth
protected Page page
protected BackgroundProps background
protected FObj generatedBy
protected String areaClass
protected boolean isFirst
protected boolean isLast
public FObj foCreator
Constructor Detail |
public Area(FontState fontState)
public Area(FontState fontState, int allocationWidth, int maxHeight)
Area
instance.
fontState
- a FontState
valueallocationWidth
- the inline-progression dimension of the content
rectangle of the AreamaxHeight
- the maximum block-progression dimension available
for this Area (its allocation rectangle)Method Detail |
public void addChild(Box child)
public void addChildAtStart(Box child)
public void addDisplaySpace(int size)
public void addInlineSpace(int size)
public FontInfo getFontInfo()
public void end()
public int getAllocationWidth()
public void setAllocationWidth(int w)
w
- The new allocation width.
This sets content width to the same value.
Currently only called during layout of Table to set the width
to the total width of all the columns. Note that this assumes the
column widths are explicitly specified.public ArrayList getChildren()
public boolean hasChildren()
public boolean hasNonSpaceChildren()
public int getContentWidth()
public FontState getFontState()
public int getContentHeight()
public int getHeight()
public int getMaxHeight()
public Page getPage()
public BackgroundProps getBackground()
public int getPaddingTop()
public int getPaddingLeft()
public int getPaddingBottom()
public int getPaddingRight()
public int getBorderTopWidth()
public int getBorderRightWidth()
public int getBorderLeftWidth()
public int getBorderBottomWidth()
public int getTableCellXOffset()
public void setTableCellXOffset(int offset)
public int getAbsoluteHeight()
public void setAbsoluteHeight(int value)
public void increaseHeight(int amount)
public void removeChild(Area area)
public void removeChild(DisplaySpace spacer)
public void remove()
public void setPage(Page page)
public void setBackground(BackgroundProps bg)
public void setBorderAndPadding(BorderAndPadding bp)
public int spaceLeft()
public void start()
public void setHeight(int height)
height
- allocation height of content in millipointspublic void setMaxHeight(int height)
public Area getParent()
public void setParent(Area parent)
public void setIDReferences(IDReferences idReferences)
public IDReferences getIDReferences()
public FObj getfoCreator()
public AreaContainer getNearestAncestorAreaContainer()
public BorderAndPadding getBorderAndPadding()
public void setGeneratedBy(FObj generatedBy)
public FObj getGeneratedBy()
public void isFirst(boolean isFirst)
public boolean isFirst()
public void isLast(boolean isLast)
public boolean isLast()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |