Class ShadingContext
java.lang.Object
org.apache.pdfbox.pdmodel.graphics.shading.ShadingContext
- All Implemented Interfaces:
PaintContext
- Direct Known Subclasses:
AxialShadingContext,RadialShadingContext
A base class to handle what is common to all shading types.
- Author:
- Shaola Ren, Tilman Hausherr
-
Constructor Summary
ConstructorsConstructorDescriptionShadingContext(PDShading shading, ColorModel cm, AffineTransform xform, Matrix matrix) Constructor. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.awt.PaintContext
getRaster
-
Constructor Details
-
ShadingContext
public ShadingContext(PDShading shading, ColorModel cm, AffineTransform xform, Matrix matrix) throws IOException Constructor.- Parameters:
shading- the shading type to be usedcm- the color model to be usedxform- transformation for user to device spacematrix- the pattern matrix concatenated with that of the parent content stream- Throws:
IOException- if there is an error getting the color space or doing background color conversion.
-
-
Method Details
-
getColorModel
- Specified by:
getColorModelin interfacePaintContext
-
dispose
public void dispose()- Specified by:
disposein interfacePaintContext
-