1 17 18 19 20 package org.apache.fop.area; 21 22 import java.util.List ; 23 24 27 public class PageSequence { 28 29 private List pages = new java.util.ArrayList (); 30 private LineArea title; 31 32 36 public PageSequence(LineArea title) { 37 this.title = title; 38 } 39 40 43 public LineArea getTitle() { 44 return this.title; 45 } 46 47 51 public void addPage(PageViewport page) { 52 this.pages.add(page); 53 } 54 55 58 public int getPageCount() { 59 return this.pages.size(); 60 } 61 62 67 public PageViewport getPage(int idx) { 68 return (PageViewport)this.pages.get(idx); 69 } 70 71 76 public boolean isFirstPage(PageViewport page) { 77 return page.equals(getPage(0)); 78 } 79 } 80 | Popular Tags |