java.lang.Object | |
↳ | java.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.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a RenderContext with a given transform.
| |||||||||||
Constructs a RenderContext with a given transform.
| |||||||||||
Constructs a RenderContext with a given transform and rendering hints.
| |||||||||||
Constructs a RenderContext with a given transform and area of interest.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Makes a copy of a RenderContext.
| |||||||||||
Modifies the current user-to-device transform by appending another
transform.
| |||||||||||
This method is deprecated.
replaced by
concatenateTransform(AffineTransform) .
| |||||||||||
Gets the ares of interest currently contained in the
RenderContext.
| |||||||||||
Gets the rendering hints of this
RenderContext . | |||||||||||
Gets the current user-to-device AffineTransform.
| |||||||||||
Modifies the current user-to-device transform by prepending another
transform.
| |||||||||||
This method is deprecated.
replaced by
preConcatenateTransform(AffineTransform) .
| |||||||||||
Sets the current area of interest.
| |||||||||||
Sets the rendering hints of this
RenderContext . | |||||||||||
Sets the current user-to-device AffineTransform contained
in the RenderContext to a given transform.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
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.
usr2dev | an AffineTransform. |
---|---|
aoi | a Shape representing the area of interest. |
hints | a RenderingHints object containing rendering hints. |
Constructs a RenderContext with a given transform. The area of interest is taken to be the entire renderable area. No rendering hints are used.
usr2dev | an AffineTransform. |
---|
Constructs a RenderContext with a given transform and rendering hints. The area of interest is taken to be the entire renderable area.
usr2dev | an AffineTransform. |
---|---|
hints | a RenderingHints object containing rendering hints. |
Constructs a RenderContext with a given transform and area of interest. The area of interest is supplied as a Shape. No rendering hints are used.
usr2dev | an AffineTransform. |
---|---|
aoi | a Shape representing the area of interest. |
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.
Modifies the current user-to-device transform by appending another transform. In matrix notation the operation is:
[this] = [this] x [modTransform]
modTransform | the AffineTransform to append to the current usr2dev transform. |
---|
This method is deprecated.
replaced by
concatenateTransform(AffineTransform)
.
Modifies the current user-to-device transform by appending another transform. In matrix notation the operation is:
[this] = [this] x [modTransform]This method does the same thing as the concatenateTransform method. It is here for backward compatibility with previous releases which misspelled the method name.
modTransform | the AffineTransform to append to the current usr2dev transform. |
---|
Gets the ares of interest currently contained in the RenderContext.
Gets the rendering hints of this RenderContext
.
RenderingHints
object that represents
the rendering hints of this RenderContext
.Gets the current user-to-device AffineTransform.
Modifies the current user-to-device transform by prepending another transform. In matrix notation the operation is:
[this] = [modTransform] x [this]
modTransform | the AffineTransform to prepend to the current usr2dev transform. |
---|
This method is deprecated.
replaced by
preConcatenateTransform(AffineTransform)
.
Modifies the current user-to-device transform by prepending another transform. In matrix notation the operation is:
[this] = [modTransform] x [this]This method does the same thing as the preConcatenateTransform method. It is here for backward compatibility with previous releases which misspelled the method name.
modTransform | the AffineTransform to prepend to the current usr2dev transform. |
---|
Sets the current area of interest. The old area is discarded.
newAoi | The new area of interest. |
---|
Sets the rendering hints of this RenderContext
.
hints | a RenderingHints object that represents
the rendering hints to assign to this RenderContext . |
---|
Sets the current user-to-device AffineTransform contained in the RenderContext to a given transform.
newTransform | the new AffineTransform. |
---|