Class AbstractPdfShadingBlend
java.lang.Object
com.itextpdf.kernel.pdf.PdfObjectWrapper<PdfDictionary>
com.itextpdf.kernel.pdf.colorspace.shading.AbstractPdfShading
com.itextpdf.kernel.pdf.colorspace.shading.AbstractPdfShadingBlend
- Direct Known Subclasses:
PdfAxialShading, PdfRadialShading
The PdfShadingBlend class which extends
AbstractPdfShading and represents shadings which are
based on a blend, with Coords, Domain and Extend fields in the PDF object.-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractPdfShadingBlend(PdfDictionary pdfObject) Constructor for PdfShadingBlend object using a PdfDictionary.protectedAbstractPdfShadingBlend(PdfDictionary pdfObject, int shadingType, PdfColorSpace cs) Constructor for PdfShadingBlend object using PdfDictionary, shading type and colorspace value. -
Method Summary
Modifier and TypeMethodDescriptionGets the coordsPdfArrayobject.Gets thePdfArrayof twofloat[t0, t1] that represent the limiting values of a parametric variable t, that becomes an input of color function(s).Gets thePdfArrayof twobooleanthat specified whether to extend the shading beyond the starting and ending points of the axis, respectively.final voidSets the Coords object with thePdfArray, that specified the starting and the endings coordinates of thew axis, expressed in the shading's target coordinate space.final voidsetDomain(float t0, float t1) Sets the Domain with the array of twofloat[t0, t1] that represent the limiting values of a parametric variable t, that becomes an input of color function(s).final voidSets the Domain with thePdfArrayof twofloat[t0, t1] that represent the limiting values of a parametric variable t, that becomes an input of color function(s).final voidsetExtend(boolean extendStart, boolean extendEnd) Sets the Extend object with the twobooleanvalue.final voidSets the Extend object with thePdfArrayof twoboolean.Methods inherited from class AbstractPdfShading
flush, getColorSpace, getFunction, getShadingType, isWrappedObjectMustBeIndirect, makeShading, setFunction, setFunction
-
Constructor Details
-
AbstractPdfShadingBlend
Constructor for PdfShadingBlend object using a PdfDictionary.- Parameters:
pdfObject- input PdfDictionary
-
AbstractPdfShadingBlend
Constructor for PdfShadingBlend object using PdfDictionary, shading type and colorspace value.- Parameters:
pdfObject- input PdfDictionaryshadingType- shading typecs- color space
-
-
Method Details
-
getCoords
-
setCoords
-
getDomain
-
setDomain
public final void setDomain(float t0, float t1) Sets the Domain with the array of twofloat[t0, t1] that represent the limiting values of a parametric variable t, that becomes an input of color function(s).- Parameters:
t0- first limit of variable tt1- second limit of variable t
-
setDomain
-
getExtend
-
setExtend
public final void setExtend(boolean extendStart, boolean extendEnd) Sets the Extend object with the twobooleanvalue.- Parameters:
extendStart- if true will extend shading beyond the starting point of CoordsextendEnd- if true will extend shading beyond the ending point of Coords
-
setExtend
-