org.apache.fop.area
Class IDTracker
java.lang.Object
org.apache.fop.area.IDTracker
public class IDTracker
extends java.lang.Object
Used by the AreaTreeHandler to keep track of ID reference usage
on a PageViewport level.
addUnresolvedIDRef
public void addUnresolvedIDRef(String idref,
Resolvable res)
Add an Resolvable object with an unresolved idref
idref
- the idref whose target id has not yet been locatedres
- the Resolvable object needing the idref to be resolved
alreadyResolvedID
public boolean alreadyResolvedID(String id)
Check if an ID has already been resolved
- true if the ID has been resolved
associateIDWithPageViewport
public void associateIDWithPageViewport(String id,
PageViewport pv)
Tie a PageViewport with an ID found on a child area of the PV. Note that
an area with a given ID may be on more than one PV, hence an ID may have
more than one PV associated with it.
id
- the property ID of the areapv
- a page viewport that contains the area with this ID
getPageViewportsContainingID
public List getPageViewportsContainingID(String id)
Get the list of page viewports that have an area with a given id.
- the list of PageViewports
signalIDProcessed
public void signalIDProcessed(String id)
Signals that all areas for the formatting object with the given ID have
been generated. This is used to determine when page-number-citation-last
ref-ids can be resolved.
id
- the id of the formatting object which was just finished
signalPendingID
public void signalPendingID(String id)
This method tie an ID to the areaTreeHandler until this one is ready to
be processed. This is used in page-number-citation-last processing so we
know when an id can be resolved.
id
- the id of the object being processed
tryIDResolution
public void tryIDResolution(PageViewport pv)
Tries to resolve all unresolved ID references on the given page.
pv
- page viewport whose ID refs to resolve
Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.