The PageFormat class describes the size and orientation of a page to be printed.
The PageFormat class describes the size and orientation of a page to be printed.
Static Constant.
The origin is at the bottom left of the paper with x running bottom to top and y running left to right. Note that this is not the Macintosh landscape but is the Window's and PostScript landscape.
type: int
Static Constant. The origin is at the bottom left of the paper with x running bottom to top and y running left to right. Note that this is not the Macintosh landscape but is the Window's and PostScript landscape. type: int
Static Constant.
The origin is at the top left of the paper with x running to the right and y running down the paper.
type: int
Static Constant. The origin is at the top left of the paper with x running to the right and y running down the paper. type: int
Static Constant.
The origin is at the top right of the paper with x running top to bottom and y running right to left. Note that this is the Macintosh landscape.
type: int
Static Constant. The origin is at the top right of the paper with x running top to bottom and y running right to left. Note that this is the Macintosh landscape. type: int
(->page-format)
Constructor.
Creates a default, portrait-oriented PageFormat.
Constructor. Creates a default, portrait-oriented PageFormat.
(clone this)
Makes a copy of this PageFormat with the same contents as this PageFormat.
returns: a copy of this PageFormat. - java.lang.Object
Makes a copy of this PageFormat with the same contents as this PageFormat. returns: a copy of this PageFormat. - `java.lang.Object`
(get-height this)
Returns the height, in 1/72nds of an inch, of the page. This method takes into account the orientation of the page when determining the height.
returns: the height of the page. - double
Returns the height, in 1/72nds of an inch, of the page. This method takes into account the orientation of the page when determining the height. returns: the height of the page. - `double`
(get-imageable-height this)
Return the height, in 1/72nds of an inch, of the imageable area of the page. This method takes into account the orientation of the page.
returns: the height of the page. - double
Return the height, in 1/72nds of an inch, of the imageable area of the page. This method takes into account the orientation of the page. returns: the height of the page. - `double`
(get-imageable-width this)
Returns the width, in 1/72nds of an inch, of the imageable area of the page. This method takes into account the orientation of the page.
returns: the width of the page. - double
Returns the width, in 1/72nds of an inch, of the imageable area of the page. This method takes into account the orientation of the page. returns: the width of the page. - `double`
(get-imageable-x this)
Returns the x coordinate of the upper left point of the imageable area of the Paper object associated with this PageFormat. This method takes into account the orientation of the page.
returns: the x coordinate of the upper left point of the
imageable area of the Paper object
associated with this PageFormat. - double
Returns the x coordinate of the upper left point of the imageable area of the Paper object associated with this PageFormat. This method takes into account the orientation of the page. returns: the x coordinate of the upper left point of the imageable area of the Paper object associated with this PageFormat. - `double`
(get-imageable-y this)
Returns the y coordinate of the upper left point of the imageable area of the Paper object associated with this PageFormat. This method takes into account the orientation of the page.
returns: the y coordinate of the upper left point of the
imageable area of the Paper object
associated with this PageFormat. - double
Returns the y coordinate of the upper left point of the imageable area of the Paper object associated with this PageFormat. This method takes into account the orientation of the page. returns: the y coordinate of the upper left point of the imageable area of the Paper object associated with this PageFormat. - `double`
(get-matrix this)
Returns a transformation matrix that translates user space rendering to the requested orientation of the page. The values are placed into the array as { m00, m10, m01, m11, m02, m12} in the form required by the AffineTransform constructor.
returns: the matrix used to translate user space rendering
to the orientation of the page. - double[]
Returns a transformation matrix that translates user space rendering to the requested orientation of the page. The values are placed into the array as { m00, m10, m01, m11, m02, m12} in the form required by the AffineTransform constructor. returns: the matrix used to translate user space rendering to the orientation of the page. - `double[]`
(get-orientation this)
Returns the orientation of this PageFormat.
returns: this PageFormat object's orientation. - int
Returns the orientation of this PageFormat. returns: this PageFormat object's orientation. - `int`
(get-paper this)
Returns a copy of the Paper object associated with this PageFormat. Changes made to the Paper object returned from this method do not affect the Paper object of this PageFormat. To update the Paper object of this PageFormat, create a new Paper object and set it into this PageFormat by using the setPaper(Paper) method.
returns: a copy of the Paper object associated
with this PageFormat. - java.awt.print.Paper
Returns a copy of the Paper object associated with this PageFormat. Changes made to the Paper object returned from this method do not affect the Paper object of this PageFormat. To update the Paper object of this PageFormat, create a new Paper object and set it into this PageFormat by using the setPaper(Paper) method. returns: a copy of the Paper object associated with this PageFormat. - `java.awt.print.Paper`
(get-width this)
Returns the width, in 1/72nds of an inch, of the page. This method takes into account the orientation of the page when determining the width.
returns: the width of the page. - double
Returns the width, in 1/72nds of an inch, of the page. This method takes into account the orientation of the page when determining the width. returns: the width of the page. - `double`
(set-orientation this orientation)
Sets the page orientation. orientation must be one of the constants: PORTRAIT, LANDSCAPE, or REVERSE_LANDSCAPE.
orientation - the new orientation for the page - int
throws: java.lang.IllegalArgumentException - if an unknown orientation was requested
Sets the page orientation. orientation must be one of the constants: PORTRAIT, LANDSCAPE, or REVERSE_LANDSCAPE. orientation - the new orientation for the page - `int` throws: java.lang.IllegalArgumentException - if an unknown orientation was requested
(set-paper this paper)
Sets the Paper object for this PageFormat.
paper - the Paper object to which to set the Paper object for this PageFormat. - java.awt.print.Paper
throws: java.lang.NullPointerException - a null paper instance was passed as a parameter.
Sets the Paper object for this PageFormat. paper - the Paper object to which to set the Paper object for this PageFormat. - `java.awt.print.Paper` throws: java.lang.NullPointerException - a null paper instance was passed as a parameter.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close