public class IDTracker
extends java.lang.Object
| Constructor and Description |
|---|
IDTracker() |
| Modifier and Type | Method and Description |
|---|---|
void |
addUnresolvedIDRef(java.lang.String idref,
Resolvable res)
Add an Resolvable object with an unresolved idref
|
boolean |
alreadyResolvedID(java.lang.String id)
Check if an ID has already been resolved
|
void |
associateIDWithPageViewport(java.lang.String id,
PageViewport pv)
Tie a PageViewport with an ID found on a child area of the PV.
|
PageViewport |
getFirstPageViewportContaining(java.lang.String id)
Get the first
PageViewport containing content generated
by the FO with the given id. |
PageViewport |
getLastPageViewportContaining(java.lang.String id)
Get the last
PageViewport containing content generated
by the FO with the given id. |
java.util.List<PageViewport> |
getPageViewportsContainingID(java.lang.String id)
Get the list of page viewports that have an area with a given id.
|
void |
replacePageViewPort(PageViewport oldPageViewPort,
PageViewport newPageViewPort)
Replace all id locations pointing to the old page view port with a new one.
|
void |
signalIDProcessed(java.lang.String id)
Signals that all areas for the formatting object with the given ID have
been generated.
|
void |
signalPendingID(java.lang.String id)
This method tie an ID to the areaTreeHandler until this one is ready to
be processed.
|
void |
tryIDResolution(PageViewport pv)
Tries to resolve all unresolved ID references on the given page.
|
public void associateIDWithPageViewport(java.lang.String id,
PageViewport pv)
id - the property ID of the areapv - a page viewport that contains the area with this IDpublic void signalPendingID(java.lang.String id)
id - the id of the object being processedpublic void signalIDProcessed(java.lang.String id)
id - the id of the formatting object which was just finishedpublic boolean alreadyResolvedID(java.lang.String id)
id - the id to checkpublic void tryIDResolution(PageViewport pv)
pv - page viewport whose ID refs to resolvepublic java.util.List<PageViewport> getPageViewportsContainingID(java.lang.String id)
id - the id to lookuppublic PageViewport getFirstPageViewportContaining(java.lang.String id)
PageViewport containing content generated
by the FO with the given id.id - the idPageViewport for the id; null if
no matching PageViewport was foundpublic PageViewport getLastPageViewportContaining(java.lang.String id)
PageViewport containing content generated
by the FO with the given id.id - the idPageViewport for the id; null if
no matching PageViewport was foundpublic void addUnresolvedIDRef(java.lang.String idref,
Resolvable res)
idref - the idref whose target id has not yet been locatedres - the Resolvable object needing the idref to be resolvedpublic void replacePageViewPort(PageViewport oldPageViewPort, PageViewport newPageViewPort)
oldPageViewPort - old page view portnewPageViewPort - new page view portCopyright 1999-2022 The Apache Software Foundation. All Rights Reserved.