IMultiPageDevice

public interface IMultiPageDevice

This interface contains methods for manipulating multi-paged device.

Methods

Method Description
initPageNumbers() Initializes numbers of pages to render.
openPage(String title) Makes necessary preparation of the device before page rendering.
openPage(float width, float height) Makes necessary preparation of the device before page rendering.
closePage() Makes necessary preparation of the device after page has been rendered.
updatePageParameters(IMultiPageDevice device) Updates page parameters from other multi-paged device.
getCurrentPageNumber() Gets current page number.

initPageNumbers()

public abstract void initPageNumbers()

Initializes numbers of pages to render.

openPage(String title)

public abstract boolean openPage(String title)

Makes necessary preparation of the device before page rendering.

Parameters:

Parameter Type Description
title java.lang.String The page title.

Returns: boolean - True if page is from requested range, otherwise false. Used in devices that can render specified array of page numbers.

openPage(float width, float height)

public abstract boolean openPage(float width, float height)

Makes necessary preparation of the device before page rendering.

Parameters:

Parameter Type Description
width float A width of the page.
height float A height of the page.

Returns: boolean - Returns true if opened page has a number that falls in a range of selected page numbers and false otherwise.

closePage()

public abstract void closePage()

Makes necessary preparation of the device after page has been rendered.

updatePageParameters(IMultiPageDevice device)

public abstract void updatePageParameters(IMultiPageDevice device)

Updates page parameters from other multi-paged device.

Parameters:

Parameter Type Description
device IMultiPageDevice Another instance of the same device.

getCurrentPageNumber()

public abstract int getCurrentPageNumber()

Gets current page number.

Returns: int - Current page number.