![]() |
Spec-Zone .ru
спецификации, руководства, описания, API
|
|
JavaTM 2 Platform Standard Edition |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
Constructor Summary | |
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. |
Method Summary | |
Object |
clone()
Makes a copy of a RenderContext. |
void |
concetenateTransform(AffineTransform modTransform)
Modifies the current user-to-device transform by appending another transform. |
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 |
preConcetenateTransform(AffineTransform modTransform)
Modifies the current user-to-device transform by prepending another transform. |
void |
setAreaOfInterest(Shape newAoi)
Sets the current area of interest. |
void |
setRenderingHints(RenderingHints hints)
Sets the rendering hints of this RenderContext . |
void |
setTransform(AffineTransform newTransform)
Sets the current user-to-device AffineTransform contained in the RenderContext to a given transform. |
Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public RenderContext(AffineTransform usr2dev, Shape aoi, RenderingHints hints)
usr2dev
- an AffineTransform.aoi
- a Shape representing the area of interest.hints
- a RenderingHints object containing rendering hints.public RenderContext(AffineTransform usr2dev)
usr2dev
- an AffineTransform.public RenderContext(AffineTransform usr2dev, RenderingHints hints)
usr2dev
- an AffineTransform.hints
- a RenderingHints object containing rendering hints.public RenderContext(AffineTransform usr2dev, Shape aoi)
usr2dev
- an AffineTransform.aoi
- a Shape representing the area of interest.Method Detail |
public RenderingHints getRenderingHints()
RenderContext
.RenderingHints
object that represents
the rendering hints of this RenderContext
.public void setRenderingHints(RenderingHints hints)
RenderContext
.hints
- a RenderingHints
object that represents
the rendering hints to assign to this RenderContext
.public void setTransform(AffineTransform newTransform)
newTransform
- the new AffineTransform.public void preConcetenateTransform(AffineTransform modTransform)
[this] = [modTransform] x [this]
modTransform
- the AffineTransform to prepend to the
current usr2dev transform.public void concetenateTransform(AffineTransform modTransform)
[this] = [this] x [modTransform]
modTransform
- the AffineTransform to append to the
current usr2dev transform.public AffineTransform getTransform()
public void setAreaOfInterest(Shape newAoi)
newAoi
- The new area of interest.public Shape getAreaOfInterest()
public Object clone()
|
JavaTM 2 Platform Standard Edition |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |