Liking cljdoc? Tell your friends :D

clj-paper-print.graphics


clear-rect!clj

(clear-rect! g x y width height)

A function that will clear the supplied rectangle by filling it with the background color of the drawing surface.

A function that will clear the supplied rectangle by filling it with the background color of the drawing surface.
sourceraw docstring

clip-rectclj

(clip-rect g x y width height)

A function that will intersect the supplied rectangle with the clip area.

A function that will intersect the supplied rectangle with the clip area.
sourceraw docstring

copy-areaclj

(copy-area g x y width height xdistance ydistance)

A function that will copy a compoment's area by the supplied distance.

A function that will copy a compoment's area by the supplied distance.
sourceraw docstring

createclj

(create g)
(create g x y width height)

A multi-arity function that will create a copy of the supplied Graphics object. The function will accept either just the Graphics object or the graphics object with the dimensions.

A multi-arity function that will create a copy of the supplied Graphics object.
The function will accept either just the Graphics object or the graphics object with the dimensions.
sourceraw docstring

dispose!clj

(dispose! g)

A function that will dispose the supplied Graphics object and release system resources.

A function that will dispose the supplied Graphics object and release system resources.
sourceraw docstring

draw-3d-rectclj

(draw-3d-rect g x y width height raised)

A function that will create a 3D outline rectangle with the supplied dimensions.

A function that will create a 3D outline rectangle with the supplied dimensions.
sourceraw docstring

draw-arcclj

(draw-arc g x y width height start-angle arc-angle)

A function that will draw a circular/eliptical arc.

A function that will draw a circular/eliptical arc.
sourceraw docstring

draw-bytesclj

(draw-bytes g data offset length x y)

A function that will draw the supplied text in a form of a byte-array using current font and color.

A function that will draw the supplied text in a form of a byte-array using current font and color.
sourceraw docstring

draw-charsclj

(draw-chars g data offset length x y)

A function that will draw the supplied char-array using the current font and color.

A function that will draw the supplied char-array using the current font and color.
sourceraw docstring

draw-imageclj

(draw-image g image x y bgcolor imgobserver)
(draw-image g image x y width height imgobserver)
(draw-image g image x y width height bgcolor imgobserver)
(draw-image g image dx1 dy1 dx2 dy2 sx1 sy1 sx2 sy2 imgobserver)
(draw-image g image dx1 dy1 dx2 dy2 sx1 sy1 sx2 sy2 bgcolor imgobserver)

A function with multi arity that will draw an Image. It will need to be supplied with a BufferedImage object and the analogous coordinations and dimensions depending of the input variations of the method. For more details visit the java 'https://docs.oracle.com/javase/8/docs/api/java/awt/Graphics.html#drawImage-java.awt.Image-int-int-java.awt.Color-java.awt.image.ImageObserver-', also normally the drawImage method can take an ImageObserver object as last argument, but usually this will be nil.

A function with multi arity that will draw an Image.
It will need to be supplied with a BufferedImage object and the analogous coordinations and
dimensions depending of the input variations of the method.
For more details visit the java
'https://docs.oracle.com/javase/8/docs/api/java/awt/Graphics.html#drawImage-java.awt.Image-int-int-java.awt.Color-java.awt.image.ImageObserver-',
also normally the drawImage method can take an ImageObserver object as last argument, but usually this will be nil.
sourceraw docstring

draw-lineclj

(draw-line g x1 y1 x2 y2)

A function that will draw a line, for the supplied Graphics objcet along with the coordination and dimensions.

A function that will draw a line, for the supplied Graphics objcet along with the coordination and dimensions.
sourceraw docstring

draw-ovalclj

(draw-oval g x y width height)

A function that will draw the outline of an oval.

A function that will draw the outline of an oval.
sourceraw docstring

draw-polygonclj

(draw-polygon g p)
(draw-polygon g xpoints ypoints npoints)

A function with multi-arity, for the method java.awt.Graphics/drawPolygon with two variations on input. First with a Polygon object and second with the coordinations for each line in a sequence that is to draw. The second variation will accept an array of ints for x and y coordination with the number of points to be drawed.

A function with multi-arity, for the method `java.awt.Graphics/drawPolygon` with two variations on input.
First with a Polygon object and second with the coordinations for each line in a sequence that is to draw.
The second variation will accept an array of ints for x and y coordination with the number of points to be
drawed.
sourceraw docstring

draw-polylineclj

(draw-polyline g xpoints ypoints npoints)

A function that will draw a sequence of connected lines, by the supplied arrays of ints for x and y coordinations.

A function that will draw a sequence of connected lines, by the supplied arrays of ints for x and y coordinations.
sourceraw docstring

draw-rectclj

(draw-rect g x y width height)

A function that will draw a Rectangle with the supplied coordination and dimensions.

A function that will draw a Rectangle with the supplied coordination and dimensions.
sourceraw docstring

draw-round-rectclj

(draw-round-rect g x y width height arc-width arc-height)

A function that will draw a Rectangle with round cornered with the supplied coordination and dimensions along with the arc width and height.

A function that will draw a Rectangle with round cornered with the supplied coordination and dimensions along with the
arc width and height.
sourceraw docstring

draw-stringclj

(draw-string g string x y)

A function that will draw the supplied string. The function will use an atom to draw the string correctly if the supplied string has new line characters , specifically will split the string in new lines if the supplied string has any.

A function that will draw the supplied string.
  The function will use an atom to draw the string correctly if the supplied string has new line characters `
`,
  specifically will split the string in new lines if the supplied string has any.
sourceraw docstring

fill-arcclj

(fill-arc g x y width height start-angle arc-angle)

A function that will fill a circular/elliptical arc in the supplied coordinations, dimensions and the begining of the point of the arc along with the angle of the arc in Integer.

A function that will fill a circular/elliptical arc in the supplied coordinations, dimensions and the begining of
the point of the arc along with the angle of the arc in Integer.
sourceraw docstring

fill-ovalclj

(fill-oval g x y width height)

A function that will fill an oval with the supplied coordinations and dimensions.

A function that will fill an oval with the supplied coordinations and dimensions.
sourceraw docstring

fill-polygonclj

(fill-polygon g p)
(fill-polygon g xpoints ypoints npoints)

A function with multi-arity that will fill a closed polygon by the supplied array of x and y, or with the supplied Polygon object.

A function with multi-arity that will fill a closed polygon by the supplied array of x and y, or with the supplied Polygon object.
sourceraw docstring

fill-rectclj

(fill-rect g [x y width height])

A function that will fill the supplied rectangle.

A function that will fill the supplied rectangle.
sourceraw docstring

fill-round-rectclj

(fill-round-rect g x y width height arc-width arc-height)

A function that will fill a RoundRect.

A function that will fill a RoundRect.
sourceraw docstring

finalize!clj

(finalize! g)

A function that will dispose the supplied Graphics object if no longer is referenced.

A function that will dispose the supplied Graphics object if no longer is referenced.
sourceraw docstring

get-clipclj

(get-clip g)

A function that will return the current clip area.

A function that will return the current clip area.
sourceraw docstring

get-clip-boundsclj

(get-clip-bounds g)
(get-clip-bounds g r)

A multi-arity function that will return the bounding rectangle of the used clip area, or of the supplied rectangle.

A multi-arity function that will return the bounding rectangle of the used clip area, or of the supplied rectangle.
sourceraw docstring

get-colorclj

(get-color g)

A function that will return the Color object of the current context.

A function that will return the Color object of the current context.
sourceraw docstring

get-fontclj

(get-font g)

A function that will return the Font object of the current Graphics object.

A function that will return the Font object of the current Graphics object.
sourceraw docstring

get-font-metricsclj

(get-font-metrics g)
(get-font-metrics g font)

A multi-arity function that will return the font metrics of the current font if is called without any other argument, or the font metrics of the supplied Font object.

A multi-arity function that will return the font metrics of the current font if is called without any other argument,
or the font metrics of the supplied Font object.
sourceraw docstring

graphics-methodscljmultimethod

source

set-clip!clj

(set-clip! g shape)
(set-clip! g x y width height)

A multi-arity function that will set the dimensions of the clip area for the supplied Graphics object. The function will accept coordinations/dimensions or a Shape object.

A multi-arity function that will set the dimensions of the clip area for the supplied Graphics object.
The function will accept coordinations/dimensions or a Shape object.
sourceraw docstring

set-color!clj

(set-color! g color)

A function that will set the Color object for the supplied Graphics object.

A function that will set the Color object for the supplied Graphics object.
sourceraw docstring

set-font!clj

(set-font! g font)

A function that will set the Font object for the supplied Graphics object.

A function that will set the Font object for the supplied Graphics object.
sourceraw docstring

translateclj

(translate g x y)

A function that will translate the x y origins of the graphics context to the current coordinate system.

A function that will translate the x y origins of the graphics context to the current coordinate system.
sourceraw docstring

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

× close