Constructors Summary |
---|
public RenderContext(AffineTransform usr2dev, Shape aoi, RenderingHints hints)Instantiates a new render context.
this.transform = (AffineTransform)usr2dev.clone();
this.aoi = aoi;
this.hints = hints;
|
public RenderContext(AffineTransform usr2dev, Shape aoi)Instantiates a new render context with no specified hints.
this(usr2dev, aoi, null);
|
public RenderContext(AffineTransform usr2dev, RenderingHints hints)Instantiates a new render context with no specified area of interest.
this(usr2dev, null, hints);
|
public RenderContext(AffineTransform usr2dev)Instantiates a new render context with no rendering hints or area of
interest.
this(usr2dev, null, null);
|
Methods Summary |
---|
public java.lang.Object | clone()
return new RenderContext(transform, aoi, hints);
|
public void | concatenateTransform(java.awt.geom.AffineTransform modTransform)Concatenate the specified transform with the current transform.
transform.concatenate(modTransform);
|
public void | concetenateTransform(java.awt.geom.AffineTransform modTransform)Concatenate the specified transform with the current transform.
concatenateTransform(modTransform);
|
public java.awt.Shape | getAreaOfInterest()Gets the area of interest.
return aoi;
|
public java.awt.RenderingHints | getRenderingHints()Gets the rendering hints.
return hints;
|
public java.awt.geom.AffineTransform | getTransform()Gets the transform.
return (AffineTransform)transform.clone();
|
public void | preConcatenateTransform(java.awt.geom.AffineTransform modTransform)Concatenates the current transform with the specified transform (so they
are applied with the specified transform acting first) and sets the
resulting transform as the affine transform of this rendering context.
transform.preConcatenate(modTransform);
|
public void | preConcetenateTransform(java.awt.geom.AffineTransform modTransform)Concatenates the current transform with the specified transform (so they
are applied with the specified transform acting first) and sets the
resulting transform as the affine transform of this rendering context.
preConcatenateTransform(modTransform);
|
public void | setAreaOfInterest(java.awt.Shape newAoi)Sets the area of interest.
aoi = newAoi;
|
public void | setRenderingHints(java.awt.RenderingHints hints)Sets the rendering hints.
this.hints = hints;
|
public void | setTransform(java.awt.geom.AffineTransform newTransform)Sets the affine transform for this render context.
transform = (AffineTransform)newTransform.clone();
|