aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/area/AreaTreeHandler.java
diff options
context:
space:
mode:
authorSimon Pepping <spepping@apache.org>2005-07-31 10:20:12 +0000
committerSimon Pepping <spepping@apache.org>2005-07-31 10:20:12 +0000
commit31de24ef2066a087e414d40bb282bffe9e50c329 (patch)
tree8c37b14620d2dcac7fe13ccc82e3fe7970bf1964 /src/java/org/apache/fop/area/AreaTreeHandler.java
parentdb1b760fee89862bde170ff1f40bd69e5437fb4d (diff)
downloadxmlgraphics-fop-31de24ef2066a087e414d40bb282bffe9e50c329.tar.gz
xmlgraphics-fop-31de24ef2066a087e414d40bb282bffe9e50c329.zip
Use a more direct notify mechanism for the formatting results
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@226627 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/area/AreaTreeHandler.java')
-rw-r--r--src/java/org/apache/fop/area/AreaTreeHandler.java18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/java/org/apache/fop/area/AreaTreeHandler.java b/src/java/org/apache/fop/area/AreaTreeHandler.java
index 5619dcbb6..47b5c1634 100644
--- a/src/java/org/apache/fop/area/AreaTreeHandler.java
+++ b/src/java/org/apache/fop/area/AreaTreeHandler.java
@@ -272,14 +272,16 @@ public class AreaTreeHandler extends FOEventHandler {
pageSLM = getLayoutManagerMaker().makePageSequenceLayoutManager(
this, pageSequence);
pageSLM.activateLayout();
- this.results.haveFormattedPageSequence(pageSequence,
- getAreaTreeModel().getPageCount(getAreaTreeModel().getPageSequenceCount()));
- if (log.isDebugEnabled()) {
- log.debug("Last page-sequence produced "
- + getAreaTreeModel().getPageCount(
- getAreaTreeModel().getPageSequenceCount())
- + " pages.");
- }
+ }
+ }
+
+ public void notifyPageSequenceFinished(PageSequence pageSequence,
+ int pageCount) {
+ this.results.haveFormattedPageSequence(pageSequence,
+ pageCount);
+ if (log.isDebugEnabled()) {
+ log.debug("Last page-sequence produced "
+ + pageCount + " pages.");
}
}