|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.fo.FONode
base class for nodes in the formatting object tree Modified by Mark Lillywhite mark-fop@inomial.com. Made ArrayList a protected member. (/me things this should be a private member with an API for adding children; this woudl save a lot of memory because the ArrayList would not have to be instantiated unless the node had children).
Field Summary | |
protected java.lang.String |
areaClass
|
int |
areasGenerated
|
static int |
BREAK_AFTER
value of marker after break-after |
protected java.util.ArrayList |
children
|
protected int |
forcedStartOffset
|
protected int |
forcedWidth
|
protected boolean |
isInTableCell
|
protected LinkSet |
linkSet
|
protected org.apache.avalon.framework.logger.Logger |
log
|
protected int |
marker
where the layout was up to. |
protected FObj |
parent
|
static int |
START
value of marker before layout begins |
Constructor Summary | |
protected |
FONode(FObj parent)
|
Method Summary | |
protected void |
addChild(FONode child)
|
void |
forceStartOffset(int offset)
|
void |
forceWidth(int width)
|
LinkSet |
getLinkSet()
|
java.util.ArrayList |
getMarkerSnapshot(java.util.ArrayList snapshot)
At the start of a new span area layout may be partway through a nested FO, and balancing requires rollback to this known point. |
FObj |
getParent()
|
Property |
getProperty(java.lang.String name)
lets outside sources access the property list first used by PageNumberCitation to find the "id" property returns null by default, overide this function when there is a property list |
abstract int |
layout(Area area)
|
boolean |
mayPrecedeMarker()
|
void |
removeAreas()
|
void |
resetMarker()
|
void |
rollback(java.util.ArrayList snapshot)
When balancing occurs, the flow layout() method restarts at the point specified by the current marker snapshot, which is retrieved and restored using this method. |
void |
setIsInTableCell()
|
void |
setLinkSet(LinkSet linkSet)
|
void |
setLogger(org.apache.avalon.framework.logger.Logger logger)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected FObj parent
protected java.lang.String areaClass
protected java.util.ArrayList children
public static final int START
public static final int BREAK_AFTER
protected int marker
protected boolean isInTableCell
protected int forcedStartOffset
protected int forcedWidth
protected LinkSet linkSet
public int areasGenerated
protected org.apache.avalon.framework.logger.Logger log
Constructor Detail |
protected FONode(FObj parent)
Method Detail |
public void setLogger(org.apache.avalon.framework.logger.Logger logger)
public void setIsInTableCell()
public void forceStartOffset(int offset)
public void forceWidth(int width)
public void resetMarker()
public void removeAreas()
protected void addChild(FONode child)
public FObj getParent()
public void setLinkSet(LinkSet linkSet)
public LinkSet getLinkSet()
public abstract int layout(Area area) throws FOPException
FOPException
public Property getProperty(java.lang.String name)
name
- - the name of the desired property to obtain
public java.util.ArrayList getMarkerSnapshot(java.util.ArrayList snapshot)
snapshot
- a ArrayList of markers (Integer)
public void rollback(java.util.ArrayList snapshot)
snapshot
- the ArrayList of saved markers (Integers)public boolean mayPrecedeMarker()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |