(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.
(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.
(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.
(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.
(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.
(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.
(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.
(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.
(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.
(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.
(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.
(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.
(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.
(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.
(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.
(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.
(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.
(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.
(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.
(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.
(fill-rect g [x y width height])
A function that will fill the supplied rectangle.
A function that will fill the supplied rectangle.
(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.
(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.
(get-clip g)
A function that will return the current clip area.
A function that will return the current clip area.
(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.
(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.
(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.
(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.
(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.
(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.
(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.
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close