Class Type1ShadingContext
java.lang.Object
org.apache.pdfbox.pdmodel.graphics.shading.ShadingContext
org.apache.pdfbox.pdmodel.graphics.shading.Type1ShadingContext
- All Implemented Interfaces:
PaintContext
AWT PaintContext for function-based (Type 1) shading.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final float[]
private static final org.apache.commons.logging.Log
private AffineTransform
private PDShadingType1
-
Constructor Summary
ConstructorsConstructorDescriptionType1ShadingContext
(PDShadingType1 shading, ColorModel colorModel, AffineTransform xform, Matrix matrix) Constructor creates an instance to be used for fill operations. -
Method Summary
Methods inherited from class org.apache.pdfbox.pdmodel.graphics.shading.ShadingContext
convertToRGB, getBackground, getRgbBackground, getShading, getShadingColorSpace
-
Field Details
-
LOG
private static final org.apache.commons.logging.Log LOG -
type1ShadingType
-
rat
-
domain
private final float[] domain
-
-
Constructor Details
-
Type1ShadingContext
Type1ShadingContext(PDShadingType1 shading, ColorModel colorModel, AffineTransform xform, Matrix matrix) throws IOException Constructor creates an instance to be used for fill operations.- Parameters:
shading
- the shading type to be usedcolorModel
- 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
-
-
Method Details
-
dispose
public void dispose()- Specified by:
dispose
in interfacePaintContext
- Overrides:
dispose
in classShadingContext
-
getColorModel
- Specified by:
getColorModel
in interfacePaintContext
- Overrides:
getColorModel
in classShadingContext
-
getRaster
- Specified by:
getRaster
in interfacePaintContext
-
getDomain
public float[] getDomain()
-