IMultiPageDevice

public interface IMultiPageDevice

This interface contains methods for manipulating multi-paged device.

Methods

MethodDescription
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:

ParameterTypeDescription
titlejava.lang.StringThe 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:

ParameterTypeDescription
widthfloatA width of the page.
heightfloatA 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:

ParameterTypeDescription
deviceIMultiPageDeviceAnother instance of the same device.

getCurrentPageNumber()

public abstract int getCurrentPageNumber()

Gets current page number.

Returns: int - Current page number.