IMultiPageDevice

public interface IMultiPageDevice

This interface contains methods for manipulating multi-paged device.

Methods

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

closePage()

public abstract void closePage()

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

getCurrentPageNumber()

public abstract int getCurrentPageNumber()

Gets current page number.

Returns: int - Current page number.

initPageNumbers()

public abstract void initPageNumbers()

Initializes numbers of pages to render.

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.

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.

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.