(op-file file g xpoint ypoint)
A function that open a file and use the (graphics-methods :draw-string)
to print a file to the printer.
The function arguments is the file name as String the Graphics object and the x and y points to print
the contents of the file in the paper.
A function that open a file and use the `(graphics-methods :draw-string)` to print a file to the printer. The function arguments is the file name as String the Graphics object and the x and y points to print the contents of the file in the paper.
A multimethod that will create the appropriate Printable for the printjob.
The multi accepts a vector which consists in the action for the appropriate
method along with the graphics that will executed to create the Printable and the required arguments.
The methods change the state of the user vector for each graphics method by adding the
current Graphics g
object so the graphics-methods
will be able to executed and in turn printed.
The input of each one method:
e.g (printable [:action [[:draw-string ['foo' 10 10]], [:set-font ...], [...]]]) -> (printable [:action [[:draw-string g
['foo' 10 10]], []]]).
A multimethod that will create the appropriate Printable for the printjob. The multi accepts a vector which consists in the action for the appropriate method along with the graphics that will executed to create the Printable and the required arguments. The methods change the state of the user vector for each graphics method by adding the current Graphics `g` object so the `graphics-methods` will be able to executed and in turn printed. The input of each one method: e.g (printable [:action [[:draw-string ['foo' 10 10]], [:set-font ...], [...]]]) -> (printable [:action [[:draw-string `g` ['foo' 10 10]], []]]).
(printable-multi-page graph-vec)
A function that create Printable ojcects that each one will be a page in a java Book object.
A function that create Printable ojcects that each one will be a page in a java Book object.
(printable-multi-page-func f)
A macro that will create the Printable object, for multi page document, with further configuration.
The macro accepts the function symbol that uses the clj-paper-print.graphics2d
methods in its body.
The function that will be supplied should have 3 arguments which the
1st: should be the equivelant java.awt.Graphics
object,
2nd: java.awt.print.PageFormat
3rd: the page index as int.
A macro that will create the Printable object, for multi page document, with further configuration. The macro accepts the function symbol that uses the `clj-paper-print.graphics2d` methods in its body. The function that will be supplied should have 3 arguments which the 1st: should be the equivelant `java.awt.Graphics` object, 2nd: `java.awt.print.PageFormat` 3rd: the page index as int.
(printable-one-page graph-vec)
A function that create Printable objects to be printed as a single page.
A function that create Printable objects to be printed as a single page.
(printable-one-page-func f)
A macro that will create the Printable object, for one page document with further configuration.
The macro accepts the function symbol that uses the clj-paper-print.graphics2d
methods in its body.
The function that will be supplied should have 3 arguments which the
1st: should be the equivelant java.awt.Graphics
object,
2nd: java.awt.print.PageFormat
3rd: the page index as int.
A macro that will create the Printable object, for one page document with further configuration. The macro accepts the function symbol that uses the `clj-paper-print.graphics2d` methods in its body. The function that will be supplied should have 3 arguments which the 1st: should be the equivelant `java.awt.Graphics` object, 2nd: `java.awt.print.PageFormat` 3rd: the page index as int.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close