public final class RadialShading extends Shading
dictionary
Constructor and Description |
---|
RadialShading(int number,
double[] coords,
Function function)
Creates a new radial shading instance.
|
Modifier and Type | Method and Description |
---|---|
double[] |
getCoords()
Returns a copy of the axis coordinates array
(x1, y1, x2, y2) . |
double[] |
getDomain()
Returns the function domain.
|
boolean[] |
getExtend()
Returns the extend array.
|
Function |
getFunction()
Returns the function for this shading.
|
void |
setCoords(double[] coords)
Sets the array containing the coordinates
(x1, y1, r1, x2, y2,
r2) of the starting circle and the ending circle. |
void |
setDomain(double[] domain)
Sets the domain.
|
void |
setExtend(boolean[] extend)
Sets the extend array.
|
void |
setFunction(Function function)
Sets the function for this shading.
|
getObjectBytes, getShadingType
getGeneration, getNumber, getReference, toPDFBytes
public RadialShading(int number, double[] coords, Function function)
number
- the PDF object number.coords
- the coordinates (x1, y1, r1, x2, y2, r2)
.function
- the interpolation function (null
not
permitted).public double[] getCoords()
(x1, y1, x2, y2)
.null
).public void setCoords(double[] coords)
(x1, y1, r1, x2, y2,
r2)
of the starting circle and the ending circle.coords
- the circle coordinates (null
not permitted).public Function getFunction()
null
).public void setFunction(Function function)
function
- the function (null
not permitted).public double[] getDomain()
[0.0, 1.0]
.public void setDomain(double[] domain)
domain
- the domain (array must have length 2).public boolean[] getExtend()
public void setExtend(boolean[] extend)
extend
- the extend array (must have length 2).