Package com.datalogics.PDFL
Class AxialShadingPattern
java.lang.Object
com.datalogics.PDFL.Pattern
com.datalogics.PDFL.ShadingPattern
com.datalogics.PDFL.AxialShadingPattern
A color blend that varies along an axis. An axial shading specifies a color blend that varies along a linear axis between two endpoints, and indefinitely perpendicular to that axis.
-
Constructor Summary
ConstructorsConstructorDescriptionAxialShadingPattern(ColorSpace colorSpace, List<Point> coords, List<Function> function) Create an AxialShadingPattern. -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()The coordinates of the two endpoints of the axial shading.A array of two numbers that specify the limiting values of the parametric variable t.An array of two boolean values indicating whether to extend the shading beyond the starting and ending points of the axis, respectively.One 1-in n-out function, or an array of n 1-in 1-out functions that determine the values of the color channels, where n is the number of color components in the shading's color space.voidThe coordinates of the two endpoints of the axial shading.voidA array of two numbers that specify the limiting values of the parametric variable t.voidAn array of two boolean values indicating whether to extend the shading beyond the starting and ending points of the axis, respectively.voidsetFunction(List<Function> function) One 1-in n-out function, or an array of n 1-in 1-out functions that determine the values of the color channels, where n is the number of color components in the shading's color space.toString()Return a string representation of the AxialShadingPattern.Methods inherited from class com.datalogics.PDFL.ShadingPattern
getAntiAlias, getBackgroundColor, getBoundingBox, getColorSpace, setAntiAlias, setBackgroundColor, setBoundingBox, setColorSpaceMethods inherited from class com.datalogics.PDFL.Pattern
getPDFObject
-
Constructor Details
-
AxialShadingPattern
Create an AxialShadingPattern.- Parameters:
colorSpace- The color space for the pattern.coords- The coordinates of the two endpoints of the axial shading.function- One 1-in n-out function, or an array of n 1-in 1-out functions that determine the values of the color channels.
-
-
Method Details
-
delete
public void delete()- Overrides:
deletein classShadingPattern
-
toString
Return a string representation of the AxialShadingPattern.- Overrides:
toStringin classShadingPattern
-
getCoords
The coordinates of the two endpoints of the axial shading. -
setCoords
The coordinates of the two endpoints of the axial shading. -
getFunction
One 1-in n-out function, or an array of n 1-in 1-out functions that determine the values of the color channels, where n is the number of color components in the shading's color space. The functions are called with a parametric variable t which varies across the Domain. -
setFunction
One 1-in n-out function, or an array of n 1-in 1-out functions that determine the values of the color channels, where n is the number of color components in the shading's color space. The functions are called with a parametric variable t which varies across the Domain. -
getDomain
A array of two numbers that specify the limiting values of the parametric variable t. This variable t varies linearly between these two values as a the gradient varies between the starting and ending points of the axis.Defaults to [0, 1]. May be NULL.
-
setDomain
A array of two numbers that specify the limiting values of the parametric variable t. This variable t varies linearly between these two values as a the gradient varies between the starting and ending points of the axis.Defaults value: [0, 1]. May be NULL.
-
getExtend
An array of two boolean values indicating whether to extend the shading beyond the starting and ending points of the axis, respectively.Default value: [false, false]. May be NULL.
-
setExtend
An array of two boolean values indicating whether to extend the shading beyond the starting and ending points of the axis, respectively.Default value: [false, false]. May be NULL.
-