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
public abstract class AbstractPdfShadingBlend extends AbstractPdfShading
The PdfShadingBlend class which extendsAbstractPdfShading
and represents shadings which are based on a blend, with Coords, Domain and Extend fields in the PDF object.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractPdfShadingBlend(PdfDictionary pdfObject)
Constructor for PdfShadingBlend object using a PdfDictionary.protected
AbstractPdfShadingBlend(PdfDictionary pdfObject, int shadingType, PdfColorSpace cs)
Constructor for PdfShadingBlend object using PdfDictionary, shading type and colorspace value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PdfArray
getCoords()
Gets the coordsPdfArray
object.PdfArray
getDomain()
Gets thePdfArray
of twofloat
[t0, t1] that represent the limiting values of a parametric variable t, that becomes an input of color function(s).PdfArray
getExtend()
Gets thePdfArray
of twoboolean
that specified whether to extend the shading beyond the starting and ending points of the axis, respectively.void
setCoords(PdfArray coords)
Sets the Coords object with thePdfArray
, that specified the starting and the endings coordinates of thew axis, expressed in the shading's target coordinate space.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).void
setDomain(PdfArray domain)
Sets the Domain with thePdfArray
of twofloat
[t0, t1] that represent the limiting values of a parametric variable t, that becomes an input of color function(s).void
setExtend(boolean extendStart, boolean extendEnd)
Sets the Extend object with the twoboolean
value.void
setExtend(PdfArray extend)
Sets the Extend object with thePdfArray
of twoboolean
.-
Methods inherited from class com.itextpdf.kernel.pdf.colorspace.shading.AbstractPdfShading
flush, getColorSpace, getFunction, getShadingType, isWrappedObjectMustBeIndirect, makeShading, setFunction, setFunction
-
Methods inherited from class com.itextpdf.kernel.pdf.PdfObjectWrapper
ensureObjectIsAddedToDocument, ensureUnderlyingObjectHasIndirectReference, getPdfObject, isFlushed, makeIndirect, makeIndirect, markObjectAsIndirect, setForbidRelease, setModified, setPdfObject, unsetForbidRelease
-
-
-
-
Constructor Detail
-
AbstractPdfShadingBlend
protected AbstractPdfShadingBlend(PdfDictionary pdfObject)
Constructor for PdfShadingBlend object using a PdfDictionary.- Parameters:
pdfObject
- input PdfDictionary
-
AbstractPdfShadingBlend
protected AbstractPdfShadingBlend(PdfDictionary pdfObject, int shadingType, PdfColorSpace cs)
Constructor for PdfShadingBlend object using PdfDictionary, shading type and colorspace value.- Parameters:
pdfObject
- input PdfDictionaryshadingType
- shading typecs
- color space
-
-
Method Detail
-
getCoords
public PdfArray getCoords()
Gets the coordsPdfArray
object.- Returns:
- the
PdfArray
coords object
-
setCoords
public final void setCoords(PdfArray coords)
Sets the Coords object with thePdfArray
, that specified the starting and the endings coordinates of thew axis, expressed in the shading's target coordinate space.- Parameters:
coords
- the ChordsPdfArray
to be set
-
getDomain
public PdfArray getDomain()
Gets thePdfArray
of twofloat
[t0, t1] that represent the limiting values of a parametric variable t, that becomes an input of color function(s).- Returns:
- the
PdfArray
of Domain object ([0.0 1.0] by default)
-
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
public final void setDomain(PdfArray domain)
Sets the Domain with thePdfArray
of twofloat
[t0, t1] that represent the limiting values of a parametric variable t, that becomes an input of color function(s).- Parameters:
domain
- thePdfArray
that represents domain
-
getExtend
public PdfArray getExtend()
Gets thePdfArray
of twoboolean
that specified whether to extend the shading beyond the starting and ending points of the axis, respectively.- Returns:
- the
PdfArray
of Extended object ([false false] by default)
-
setExtend
public final void setExtend(boolean extendStart, boolean extendEnd)
Sets the Extend object with the twoboolean
value.- 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
public final void setExtend(PdfArray extend)
Sets the Extend object with thePdfArray
of twoboolean
. If first is true shading will extend beyond the starting point of Coords. If second is true shading will extend beyond the ending point of Coords.- Parameters:
extend
- thePdfArray
representing Extend object
-
-