]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Improved the comment for addUnresolvedArea().
authorGlen Mazza <gmazza@apache.org>
Sat, 7 May 2005 14:35:53 +0000 (14:35 +0000)
committerGlen Mazza <gmazza@apache.org>
Sat, 7 May 2005 14:35:53 +0000 (14:35 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_KnuthStylePageBreaking@198607 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/layoutmgr/PageSequenceLayoutManager.java

index f7a6ef2856928367a4d29801bed617007cefc5a3..60fb20948103077b687ebceb99bed82b993b6d3a 100644 (file)
@@ -298,20 +298,23 @@ public class PageSequenceLayoutManager extends AbstractLayoutManager {
     }
 
     /**
-     * Add an unresolved area to the layout manager.
-     * The Page layout manager handles the unresolved ID
-     * reference by adding to the current page and then adding
-     * the page as a resolvable to the area tree.
-     * This is so that the area tree can resolve the reference
-     * and the page can serialize the resolvers if required.
+     * Identify an unresolved area (one needing an idref to be 
+     * resolved, e.g. the internal-destination of an fo:basic-link)
+     * for both the AreaTreeHandler and PageViewport object.
+     * 
+     * The AreaTreeHandler keeps a document-wide list of idref's
+     * and the PV's needing them to be resolved.  It uses this to  
+     * send notifications to the PV's when an id has been resolved.
+     * 
+     * The PageViewport keeps lists of id's needing resolving, along
+     * with the child areas (page-number-citation, basic-link, etc.)
+     * of the PV needing their resolution.
      *
      * @param id the ID reference to add
      * @param res the resolvable object that needs resolving
      */
     public void addUnresolvedArea(String id, Resolvable res) {
-        // add to the page viewport so it can serialize
         curPV.addUnresolvedIDRef(id, res);
-        // add unresolved to tree
         areaTreeHandler.addUnresolvedIDRef(id, curPV);
     }