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.
(->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`
(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`
(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`
(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`
(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`
(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`
(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`
(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`
(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`
(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`
(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`
(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`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close