public class RenderContext extends Object implements Cloneable
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.
Constructor | Description |
---|---|
RenderContext(AffineTransform usr2dev) |
Constructs a RenderContext with a given transform.
|
RenderContext(AffineTransform usr2dev,
RenderingHints hints) |
Constructs a RenderContext with a given transform and rendering hints.
|
RenderContext(AffineTransform usr2dev,
Shape aoi) |
Constructs a RenderContext with a given transform and area of interest.
|
RenderContext(AffineTransform usr2dev,
Shape aoi,
RenderingHints hints) |
Constructs a RenderContext with a given transform.
|
Modifier and Type | Method | Description |
---|---|---|
Object |
clone() |
Makes a copy of a RenderContext.
|
void |
concatenateTransform(AffineTransform modTransform) |
Modifies the current user-to-device transform by appending another
transform.
|
void |
concetenateTransform(AffineTransform modTransform) |
Deprecated.
replaced by
concatenateTransform(AffineTransform) . |
Shape |
getAreaOfInterest() |
Gets the ares of interest currently contained in the
RenderContext.
|
RenderingHints |
getRenderingHints() |
Gets the rendering hints of this
RenderContext . |
AffineTransform |
getTransform() |
Gets the current user-to-device AffineTransform.
|
void |
preConcatenateTransform(AffineTransform modTransform) |
Modifies the current user-to-device transform by prepending another
transform.
|
void |
preConcetenateTransform(AffineTransform modTransform) |
Deprecated.
replaced by
preConcatenateTransform(AffineTransform) . |
void |
setAreaOfInterest( |