public static class PdfShading.Axial extends PdfShading
PdfShading
class and is in charge of Shading Dictionary with axial type, that define a colour blend that varies along a linear axis between two endpoints and extends indefinitely perpendicular to that axis.
PdfShading.Axial, PdfShading.CoonsPatchMesh, PdfShading.FreeFormGouraudShadedTriangleMesh, PdfShading.FunctionBased, PdfShading.LatticeFormGouraudShadedTriangleMesh, PdfShading.Radial, PdfShading.TensorProductPatchMesh
Modifier | Constructor and Description |
---|---|
|
Axial(PdfColorSpace cs, float x0, float y0, float[] color0, float x1, float y1, float[] color1)
Creates the new instance of the class.
|
|
Axial(PdfColorSpace cs, float x0, float y0, float[] color0, float x1, float y1, float[] color1, boolean[] extend)
Creates the new instance of the class.
|
|
Axial(PdfColorSpace cs, PdfArray coords, PdfFunction function)
Creates the new instance of the class.
|
protected |
Axial(PdfDictionary pdfDictionary) |
Modifier and Type | Method and Description |
---|---|
PdfArray |
getCoords()
Gets the Coords object - a PdfArray of four numbers [x0 y0 x1 y1] that specified the starting and the endings coordinates of thew axis, expressed in the shading's target coordinate space.
|
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(float x0, float y0, float x1, float y1)
Sets the Choords object with the four params expressed in the shading's target coordinate space.
|
void |
setCoords(PdfArray coords)
Sets the Choords object with the PdfArray of four numbers [x0 y0 x1 y1], 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, setFunction
ensureObjectIsAddedToDocument, ensureUnderlyingObjectHasIndirectReference, getPdfObject, isFlushed, makeIndirect, makeIndirect, markObjectAsIndirect, setForbidRelease, setModified, setPdfObject, unsetForbidRelease
protected Axial(PdfDictionary pdfDictionary)
public Axial(PdfColorSpace cs, float x0, float y0, float[] color0, float x1, float y1, float[] color1)
cs
- the PdfColorSpace
object in which colour values shall be expressed. The special Pattern space isn't excepted.
x0
- the start coordinate of X axis expressed in the shading's target coordinate space.
y0
- the start coordinate of Y axis expressed in the shading's target coordinate space.
color0
- the float[]
that represents the color in the start point.
x1
- the end coordinate of X axis expressed in the shading's target coordinate space.
y1
- the end coordinate of Y axis expressed in the shading's target coordinate space.
color1
- the float[]
that represents the color in the end point.
public Axial(PdfColorSpace cs, float x0, float y0, float[] color0, float x1, float y1, float[] color1, boolean[] extend)
cs
- the PdfColorSpace
object in which colour values shall be expressed. The special Pattern space isn't excepted.
x0
- the start coordinate of X axis expressed in the shading's target coordinate space.
y0
- the start coordinate of Y axis expressed in the shading's target coordinate space.
color0
- the float[]
that represents the color in the start point.
x1
- the end coordinate of X axis expressed in the shading's target coordinate space.
y1
- the end coordinate of Y axis expressed in the shading's target coordinate space.
color1
- the float[]
that represents the color in the end point.
extend
- the array of two booleans that specified whether to extend the shading beyond the starting and ending points of the axis, respectively.
public Axial(PdfColorSpace cs, PdfArray coords, PdfFunction function)
cs
- the PdfColorSpace
object in which colour values shall be expressed. The special Pattern space isn't excepted.
coords
- the PdfArray
of four number four numbers [x0 y0 x1 y1] that specified the starting and the endings coordinates of thew axis, expressed in the shading's target coordinate space.
function
- the PdfFunction
object, that is used to calculate color transitions.
public PdfArray getCoords()
PdfArray
of four numbers [x0 y0 x1 y1] that specified the starting and the endings coordinates of thew axis, expressed in the shading's target coordinate space.
PdfArray
Coords object.
public void setCoords(float x0, float y0, float x1, float y1)
x0
- the start coordinate of X axis to be set.
y0
- the start coordinate of Y axis to be set.
x1
- the end coordinate of X axis to be set.
y1
- the end coordinate of Y axis to be set.
public void setCoords(PdfArray coords)
PdfArray
of four numbers [x0 y0 x1 y1], 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 set.
public 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 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 t
t1
- second limit of variable t
public 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 that represents domain
public 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 void setExtend(boolean extendStart, boolean extendEnd)
boolean
value.
extendStart
- if true will extend shading beyond the starting point of Coords
extendEnd
- if true will extend shading beyond the ending point of Coords
public 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 object
Copyright © 1998–2018 iText Group NV. All rights reserved.