org.apache.fop.area

Class PageSequence


public class PageSequence
extends java.lang.Object

Represents a page sequence in the area tree.

Constructor Summary

PageSequence(LineArea title)
Main constructor

Method Summary

void
addPage(PageViewport page)
Adds a new page to the page sequence
PageViewport
getPage(int idx)
Returns the page at the given index.
int
getPageCount()
LineArea
getTitle()
boolean
isFirstPage(PageViewport page)
Indicates whether a page is the first in this page sequence.

Constructor Details

PageSequence

public PageSequence(LineArea title)
Main constructor
Parameters:
title - the title for the page-sequence, may be null

Method Details

addPage

public void addPage(PageViewport page)
Adds a new page to the page sequence
Parameters:
page - the page to be added

getPage

public PageViewport getPage(int idx)
Returns the page at the given index.
Parameters:
idx - the index of the requested page
Returns:
the requested page or null if it was not found

getPageCount

public int getPageCount()
Returns:
the number of pages currently in this page sequence

getTitle

public LineArea getTitle()
Returns:
the title of the page sequence in form of a line area, or null if there's no title

isFirstPage

public boolean isFirstPage(PageViewport page)
Indicates whether a page is the first in this page sequence.
Parameters:
page - the page to be inspected
Returns:
true if the page is the first in this page sequence, false otherwise

Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.