Constructors Summary |
---|
public RenderContext(AffineTransform usr2dev, Shape aoi, RenderingHints hints)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.
this.hints = hints;
this.aoi = aoi;
this.usr2dev = (AffineTransform)usr2dev.clone();
|
public RenderContext(AffineTransform usr2dev)Constructs a RenderContext with a given transform.
The area of interest is taken to be the entire renderable area.
No rendering hints are used.
this(usr2dev, null, null);
|
public RenderContext(AffineTransform usr2dev, RenderingHints hints)Constructs a RenderContext with a given transform and rendering hints.
The area of interest is taken to be the entire renderable area.
this(usr2dev, null, hints);
|
public RenderContext(AffineTransform usr2dev, Shape aoi)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.
this(usr2dev, aoi, null);
|
Methods Summary |
---|
public java.lang.Object | clone()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.
RenderContext newRenderContext = new RenderContext(usr2dev,
aoi, hints);
return newRenderContext;
|
public void | concatenateTransform(java.awt.geom.AffineTransform modTransform)Modifies the current user-to-device transform by appending another
transform. In matrix notation the operation is:
[this] = [this] x [modTransform]
this.concetenateTransform(modTransform);
|
public void | concetenateTransform(java.awt.geom.AffineTransform modTransform)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.
usr2dev.concatenate(modTransform);
|
public java.awt.Shape | getAreaOfInterest()Gets the ares of interest currently contained in the
RenderContext.
return aoi;
|
public java.awt.RenderingHints | getRenderingHints()Gets the rendering hints of this RenderContext .
return hints;
|
public java.awt.geom.AffineTransform | getTransform()Gets the current user-to-device AffineTransform.
return (AffineTransform)usr2dev.clone();
|
public void | preConcatenateTransform(java.awt.geom.AffineTransform modTransform)Modifies the current user-to-device transform by prepending another
transform. In matrix notation the operation is:
[this] = [modTransform] x [this]
this.preConcetenateTransform(modTransform);
|
public void | preConcetenateTransform(java.awt.geom.AffineTransform modTransform)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.
usr2dev.preConcatenate(modTransform);
|
public void | setAreaOfInterest(java.awt.Shape newAoi)Sets the current area of interest. The old area is discarded.
aoi = newAoi;
|
public void | setRenderingHints(java.awt.RenderingHints hints)Sets the rendering hints of this RenderContext .
this.hints = hints;
|
public void | setTransform(java.awt.geom.AffineTransform newTransform)Sets the current user-to-device AffineTransform contained
in the RenderContext to a given transform.
usr2dev = (AffineTransform)newTransform.clone();
|