Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.

public final class LayoutPage

  1. Object
  2. LayoutPage
One page of a DocumentLayout: its size and everything drawn on it, in painting order.

Methods

public int getIndex()The page’s position in the document, from zero.
public float getWidth()The paper width in points.
public float getHeight()The paper height in points.
public List<LayoutItem> getItems()Everything drawn on the page, in painting order.

Inherited methods

Method details

getIndex

public int getIndex()
The page’s position in the document, from zero.

Returns

the index

getWidth

public float getWidth()
The paper width in points.

Returns

the width

getHeight

public float getHeight()
The paper height in points.

Returns

the height

getItems

public List<LayoutItem> getItems()
Everything drawn on the page, in painting order.

Returns

an unmodifiable list