public abstract class AbstractPdfShadingBlend extends AbstractPdfShading
AbstractPdfShading and represents shadings which are
based on a blend, with Coords, Domain and Extend fields in the PDF object.| Modifier | Constructor and 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.
|
| Modifier and Type | Method and Description |
|---|---|
PdfArray |
getCoords()
Gets the coords
PdfArray object. |
PdfArray |
getDomain()
Gets the
PdfArray of two float [t0, t1] that represent the limiting values of a parametric
variable t, that becomes an input of color function(s). |
PdfArray |
getExtend()
Gets the
PdfArray of two boolean 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 the
PdfArray,
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 two
float [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 the
PdfArray of two float [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 two
boolean value. |
void |
setExtend(PdfArray extend)
Sets the Extend object with the
PdfArray of two boolean. |
flush, getColorSpace, getFunction, getShadingType, isWrappedObjectMustBeIndirect, makeShading, setFunction, setFunctionensureObjectIsAddedToDocument, ensureUnderlyingObjectHasIndirectReference, getPdfObject, isFlushed, makeIndirect, makeIndirect, markObjectAsIndirect, setForbidRelease, setModified, setPdfObject, unsetForbidReleaseprotected AbstractPdfShadingBlend(PdfDictionary pdfObject)
pdfObject - input PdfDictionaryprotected AbstractPdfShadingBlend(PdfDictionary pdfObject, int shadingType, PdfColorSpace cs)
pdfObject - input PdfDictionaryshadingType - shading typecs - color spacepublic PdfArray getCoords()
PdfArray object.PdfArray coords objectpublic final void setCoords(PdfArray coords)
PdfArray,
that specified the starting and the endings coordinates of thew axis,
expressed in the shading's target coordinate space.coords - the Chords PdfArray to be setpublic PdfArray getDomain()
PdfArray of two float [t0, t1] that represent the limiting values of a parametric
variable t, that becomes an input of color function(s).PdfArray of Domain object ([0.0 1.0] by default)public final void setDomain(float t0,
float t1)
float [t0, t1] that represent the limiting values
of a parametric variable t, that becomes an input of color function(s).t0 - first limit of variable tt1 - second limit of variable tpublic final void setDomain(PdfArray domain)
PdfArray of two float [t0, t1] that represent the limiting values
of a parametric variable t, that becomes an input of color function(s).domain - the PdfArray that represents domainpublic PdfArray getExtend()
PdfArray of two boolean that specified whether to extend the shading
beyond the starting and ending points of the axis, respectively.PdfArray of Extended object ([false false] by default)public final void setExtend(boolean extendStart,
boolean extendEnd)
boolean value.extendStart - if true will extend shading beyond the starting point of CoordsextendEnd - if true will extend shading beyond the ending point of Coordspublic final void setExtend(PdfArray extend)
PdfArray of two boolean.
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.extend - the PdfArray representing Extend objectCopyright © 1998–2024 Apryse Group NV. All rights reserved.