Liking cljdoc? Tell your friends :D

jdk.awt.print.Book

The Book class provides a representation of a document in which pages may have different page formats and page painters. This class uses the Pageable interface to interact with a PrinterJob.

The Book class provides a representation of a document in
which pages may have different page formats and page painters. This
class uses the Pageable interface to interact with a
PrinterJob.
raw docstring

->bookclj

(->book)

Constructor.

Creates a new, empty Book.

Constructor.

Creates a new, empty Book.
raw docstring

appendclj

(append this painter page)
(append this painter page num-pages)

Appends numPages pages to the end of this Book. Each of the pages is associated with page.

painter - the Printable instance that renders the page - java.awt.print.Printable page - the size and orientation of the page - java.awt.print.PageFormat num-pages - the number of pages to be added to the this Book. - int

throws: java.lang.NullPointerException - If the painter or page argument is null

Appends numPages pages to the end of this
 Book.  Each of the pages is associated with
 page.

painter - the Printable instance that renders the page - `java.awt.print.Printable`
page - the size and orientation of the page - `java.awt.print.PageFormat`
num-pages - the number of pages to be added to the this Book. - `int`

throws: java.lang.NullPointerException - If the painter or page argument is null
raw docstring

get-number-of-pagesclj

(get-number-of-pages this)

Returns the number of pages in this Book.

returns: the number of pages this Book contains. - int

Returns the number of pages in this Book.

returns: the number of pages this Book contains. - `int`
raw docstring

get-page-formatclj

(get-page-format this page-index)

Returns the PageFormat of the page specified by pageIndex.

page-index - the zero based index of the page whose PageFormat is being requested - int

returns: the PageFormat describing the size and orientation of the page. - java.awt.print.PageFormat

throws: java.lang.IndexOutOfBoundsException - if the Pageable does not contain the requested page

Returns the PageFormat of the page specified by
 pageIndex.

page-index - the zero based index of the page whose PageFormat is being requested - `int`

returns: the PageFormat describing the size and
          orientation of the page. - `java.awt.print.PageFormat`

throws: java.lang.IndexOutOfBoundsException - if the Pageable does not contain the requested page
raw docstring

get-printableclj

(get-printable this page-index)

Returns the Printable instance responsible for rendering the page specified by pageIndex.

page-index - the zero based index of the page whose Printable is being requested - int

returns: the Printable that renders the page. - java.awt.print.Printable

throws: java.lang.IndexOutOfBoundsException - if the Pageable does not contain the requested page

Returns the Printable instance responsible for rendering
 the page specified by pageIndex.

page-index - the zero based index of the page whose Printable is being requested - `int`

returns: the Printable that renders the page. - `java.awt.print.Printable`

throws: java.lang.IndexOutOfBoundsException - if the Pageable does not contain the requested page
raw docstring

set-pageclj

(set-page this page-index painter page)

Sets the PageFormat and the Painter for a specified page number.

page-index - the zero based index of the page whose painter and format is altered - int painter - the Printable instance that renders the page - java.awt.print.Printable page - the size and orientation of the page - java.awt.print.PageFormat

throws: java.lang.IndexOutOfBoundsException - if the specified page is not already in this Book

Sets the PageFormat and the Painter for a
 specified page number.

page-index - the zero based index of the page whose painter and format is altered - `int`
painter - the Printable instance that renders the page - `java.awt.print.Printable`
page - the size and orientation of the page - `java.awt.print.PageFormat`

throws: java.lang.IndexOutOfBoundsException - if the specified page is not already in this Book
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close