所有类
|
|
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
java.awt.print
接口 Pageable
- 所有已知实现类:
- Book
public interface Pageable
Pageable
实现表示要打印的页面集合。Pageable
对象返回该集合中的页面总数,以及指定页面的 PageFormat
和 Printable
。
- 另请参见:
PageFormat
, Printable
UNKNOWN_NUMBER_OF_PAGES
static final int UNKNOWN_NUMBER_OF_PAGES
- 如果
Pageable
实现不知道其集合中的页面数,则从 getNumberOfPages
方法返回此常量。 - 另请参见:
- 常量字段值
getNumberOfPages
int getNumberOfPages()
- 返回集合中的页面数。要启用高级打印功能,建议
Pageable
实现返回页面的实际数,而不是 UNKNOWN_NUMBER_OF_PAGES 常量。 - 返回:
- 此
Pageable
中的页面数。
getPageFormat
PageFormat getPageFormat(int pageIndex)
throws IndexOutOfBoundsException
- 返回
pageIndex
指定的页面的 PageFormat
。 - 参数:
pageIndex
- 其 PageFormat
正被请求的页面基于零的索引 - 返回:
- 描述页面大小和方向的
PageFormat
。 - 抛出:
IndexOutOfBoundsException
- 如果 Pageable
不包含请求的页面
getPrintable
Printable getPrintable(int pageIndex)
throws IndexOutOfBoundsException
- 返回负责呈现
pageIndex
指定的页面的 Printable
实例。 - 参数:
pageIndex
- 其 Printable
正被请求的页面基于零的索引 - 返回:
- 呈现该页面的
Printable
。 - 抛出:
IndexOutOfBoundsException
- 如果 Pageable
不包含请求的页面
所有类 |
|
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |