Liking cljdoc? Tell your friends :D

jdk.awt.image.renderable.RenderContext

A RenderContext encapsulates the information needed to produce a specific rendering from a RenderableImage. It contains the area to be rendered specified in rendering-independent terms, the resolution at which the rendering is to be performed, and hints used to control the rendering process.

Users create RenderContexts and pass them to the RenderableImage via the createRendering method. Most of the methods of RenderContexts are not meant to be used directly by applications, but by the RenderableImage and operator classes to which it is passed.

The AffineTransform parameter passed into and out of this class are cloned. The RenderingHints and Shape parameters are not necessarily cloneable and are therefore only reference copied. Altering RenderingHints or Shape instances that are in use by instances of RenderContext may have undesired side effects.

A RenderContext encapsulates the information needed to produce a
specific rendering from a RenderableImage.  It contains the area to
be rendered specified in rendering-independent terms, the
resolution at which the rendering is to be performed, and hints
used to control the rendering process.

 Users create RenderContexts and pass them to the
RenderableImage via the createRendering method.  Most of the methods of
RenderContexts are not meant to be used directly by applications,
but by the RenderableImage and operator classes to which it is
passed.

 The AffineTransform parameter passed into and out of this class
are cloned.  The RenderingHints and Shape parameters are not
necessarily cloneable and are therefore only reference copied.
Altering RenderingHints or Shape instances that are in use by
instances of RenderContext may have undesired side effects.
raw docstring

->render-contextclj

(->render-context usr-2dev)
(->render-context usr-2dev hints)
(->render-context usr-2dev aoi hints)

Constructor.

Constructs a RenderContext with a given transform. The area of interest is supplied as a Shape, and the rendering hints are supplied as a RenderingHints object.

usr-2dev - an AffineTransform. - java.awt.geom.AffineTransform aoi - a Shape representing the area of interest. - java.awt.Shape hints - a RenderingHints object containing rendering hints. - java.awt.RenderingHints

Constructor.

Constructs a RenderContext with a given transform.
 The area of interest is supplied as a Shape,
 and the rendering hints are supplied as a RenderingHints object.

usr-2dev - an AffineTransform. - `java.awt.geom.AffineTransform`
aoi - a Shape representing the area of interest. - `java.awt.Shape`
hints - a RenderingHints object containing rendering hints. - `java.awt.RenderingHints`
raw docstring

cloneclj

(clone this)

Makes a copy of a RenderContext. The area of interest is copied by reference. The usr2dev AffineTransform and hints are cloned, while the area of interest is copied by reference.

returns: the new cloned RenderContext. - java.lang.Object

Makes a copy of a RenderContext. The area of interest is copied
 by reference.  The usr2dev AffineTransform and hints are cloned,
 while the area of interest is copied by reference.

returns: the new cloned RenderContext. - `java.lang.Object`
raw docstring

concatenate-transformclj

(concatenate-transform this mod-transform)

Modifies the current user-to-device transform by appending another transform. In matrix notation the operation is:

[this] = [this] x [modTransform]

mod-transform - the AffineTransform to append to the current usr2dev transform. - java.awt.geom.AffineTransform

Modifies the current user-to-device transform by appending another
 transform.  In matrix notation the operation is:


 [this] = [this] x [modTransform]

mod-transform - the AffineTransform to append to the current usr2dev transform. - `java.awt.geom.AffineTransform`
raw docstring

concetenate-transformclj

(concetenate-transform this mod-transform)

Deprecated. replaced by concatenateTransform(AffineTransform).

mod-transform - the AffineTransform to append to the current usr2dev transform. - java.awt.geom.AffineTransform

Deprecated. replaced by
                 concatenateTransform(AffineTransform).

mod-transform - the AffineTransform to append to the current usr2dev transform. - `java.awt.geom.AffineTransform`
raw docstring

get-area-of-interestclj

(get-area-of-interest this)

Gets the ares of interest currently contained in the RenderContext.

returns: a reference to the area of interest of the RenderContext, or null if none is specified. - java.awt.Shape

Gets the ares of interest currently contained in the
 RenderContext.

returns: a reference to the area of interest of the RenderContext,
         or null if none is specified. - `java.awt.Shape`
raw docstring

get-rendering-hintsclj

(get-rendering-hints this)

Gets the rendering hints of this RenderContext.

returns: a RenderingHints object that represents the rendering hints of this RenderContext. - java.awt.RenderingHints

Gets the rendering hints of this RenderContext.

returns: a RenderingHints object that represents
 the rendering hints of this RenderContext. - `java.awt.RenderingHints`
raw docstring

get-transformclj

(get-transform this)

Gets the current user-to-device AffineTransform.

returns: a reference to the current AffineTransform. - java.awt.geom.AffineTransform

Gets the current user-to-device AffineTransform.

returns: a reference to the current AffineTransform. - `java.awt.geom.AffineTransform`
raw docstring

pre-concatenate-transformclj

(pre-concatenate-transform this mod-transform)

Modifies the current user-to-device transform by prepending another transform. In matrix notation the operation is:

[this] = [modTransform] x [this]

mod-transform - the AffineTransform to prepend to the current usr2dev transform. - java.awt.geom.AffineTransform

Modifies the current user-to-device transform by prepending another
 transform.  In matrix notation the operation is:


 [this] = [modTransform] x [this]

mod-transform - the AffineTransform to prepend to the current usr2dev transform. - `java.awt.geom.AffineTransform`
raw docstring

pre-concetenate-transformclj

(pre-concetenate-transform this mod-transform)

Deprecated. replaced by preConcatenateTransform(AffineTransform).

mod-transform - the AffineTransform to prepend to the current usr2dev transform. - java.awt.geom.AffineTransform

Deprecated. replaced by
                 preConcatenateTransform(AffineTransform).

mod-transform - the AffineTransform to prepend to the current usr2dev transform. - `java.awt.geom.AffineTransform`
raw docstring

set-area-of-interestclj

(set-area-of-interest this new-aoi)

Sets the current area of interest. The old area is discarded.

new-aoi - The new area of interest. - java.awt.Shape

Sets the current area of interest.  The old area is discarded.

new-aoi - The new area of interest. - `java.awt.Shape`
raw docstring

set-rendering-hintsclj

(set-rendering-hints this hints)

Sets the rendering hints of this RenderContext.

hints - a RenderingHints object that represents the rendering hints to assign to this RenderContext. - java.awt.RenderingHints

Sets the rendering hints of this RenderContext.

hints - a RenderingHints object that represents the rendering hints to assign to this RenderContext. - `java.awt.RenderingHints`
raw docstring

set-transformclj

(set-transform this new-transform)

Sets the current user-to-device AffineTransform contained in the RenderContext to a given transform.

new-transform - the new AffineTransform. - java.awt.geom.AffineTransform

Sets the current user-to-device AffineTransform contained
 in the RenderContext to a given transform.

new-transform - the new AffineTransform. - `java.awt.geom.AffineTransform`
raw docstring

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

× close