1 51 package org.apache.fop.apps; 52 53 import java.util.List ; 54 55 import org.apache.fop.fo.pagination.PageSequence; 56 57 62 public class FormattingResults { 63 64 private int pageCount = 0; 65 private List pageSequences = null; 66 67 70 public FormattingResults() { 71 } 72 73 78 public int getPageCount() { 79 return this.pageCount; 80 } 81 82 87 public List getPageSequences() { 88 return this.pageSequences; 89 } 90 91 94 public void reset() { 95 this.pageCount = 0; 96 if (this.pageSequences != null) { 97 this.pageSequences.clear(); 98 } 99 } 100 101 106 public void haveFormattedPageSequence(PageSequence pageSequence) { 107 this.pageCount += pageSequence.getPageCount(); 108 if (this.pageSequences == null) { 109 this.pageSequences = new java.util.ArrayList (); 110 } 111 this.pageSequences.add( 112 new PageSequenceResults(pageSequence.getProperty("id").getString(), 113 pageSequence.getPageCount())); 114 } 115 } 116 117 | Popular Tags |