| Modifier and Type | Field and Description |
|---|---|
| private COSArray | |
| private PDRectangle | |
| private PDColorSpace | |
| private final COSDictionary | |
| private PDFunction | |
| private PDFunction[] | |
| public static final int | SHADING_TYPE1
shading type 1 = function based shading. |
| public static final int | SHADING_TYPE2
shading type 2 = axial shading. |
| public static final int | SHADING_TYPE3
shading type 3 = radial shading. |
| public static final int | SHADING_TYPE4
shading type 4 = Free-Form Gouraud-Shaded Triangle Meshes. |
| public static final int | SHADING_TYPE5
shading type 5 = Lattice-Form Gouraud-Shaded Triangle Meshes. |
| public static final int | SHADING_TYPE6
shading type 6 = Coons Patch Meshes. |
| public static final int | SHADING_TYPE7
shading type 7 = Tensor-Product Patch Meshes. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | PDShading(COSDictionary
the dictionary for this shading shadingDictionary)Constructor using the given shading dictionary. |
| Modifier and Type | Method and Description |
|---|---|
| public static PDShading | Returns: the newly created shading resources objectthe COS shading dictionary shadingDictionary)Create the correct PD Model shading based on the COS base shading. |
| public float[] | Returns: the output valuesthe input value inputValue)Convert the input value using the functions of the shading dictionary. |
| public float[] | Returns: the output valuesthe input values input)Convert the input values using the functions of the shading dictionary. |
| public boolean | |
| public COSArray | |
| public PDRectangle | Returns: the BBox of the formAn array of four numbers in the form coordinate system (see below), giving the coordinates of the left, bottom, right, and top edges, respectively, of the shading's bounding box. |
| public Rectangle2D | Returns: Bounding rectangle or null, if not supported by this shading type.the affine transformation xform, Matrix the pattern matrix matrix)Calculate a bounding rectangle around the areas of this shading context. |
| public PDColorSpace | Returns: the color space for the shadingThis will get the color space or null if none exists. |
| public COSDictionary | Returns: the dictionary for this shading.Implements org. This will get the underlying dictionary. |
| public PDFunction | |
| private PDFunction[] | Returns: an array containing the function(s).Provide the function(s) of the shading dictionary as array. |
| public abstract int | |
| public String | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | setFunction(PDFunction
the new function newFunction)This will set the function for the color conversion. |
| public void | setFunction(COSArray
the new COSArray containing all functions newFunctions)This will set the functions COSArray for the color conversion. |
| public void | |
| public abstract Paint |
| background | back to summary |
|---|---|
| private COSArray background | |
| bBox | back to summary |
|---|---|
| private PDRectangle bBox | |
| colorSpace | back to summary |
|---|---|
| private PDColorSpace colorSpace | |
| dictionary | back to summary |
|---|---|
| private final COSDictionary dictionary | |
| function | back to summary |
|---|---|
| private PDFunction function | |
| functionArray | back to summary |
|---|---|
| private PDFunction[] functionArray | |
| SHADING_TYPE1 | back to summary |
|---|---|
| public static final int SHADING_TYPE1 shading type 1 = function based shading. | |
| SHADING_TYPE2 | back to summary |
|---|---|
| public static final int SHADING_TYPE2 shading type 2 = axial shading. | |
| SHADING_TYPE3 | back to summary |
|---|---|
| public static final int SHADING_TYPE3 shading type 3 = radial shading. | |
| SHADING_TYPE4 | back to summary |
|---|---|
| public static final int SHADING_TYPE4 shading type 4 = Free-Form Gouraud-Shaded Triangle Meshes. | |
| SHADING_TYPE5 | back to summary |
|---|---|
| public static final int SHADING_TYPE5 shading type 5 = Lattice-Form Gouraud-Shaded Triangle Meshes. | |
| SHADING_TYPE6 | back to summary |
|---|---|
| public static final int SHADING_TYPE6 shading type 6 = Coons Patch Meshes. | |
| SHADING_TYPE7 | back to summary |
|---|---|
| public static final int SHADING_TYPE7 shading type 7 = Tensor-Product Patch Meshes. | |
| PDShading | back to summary |
|---|---|
| public PDShading() Default constructor. | |
| PDShading | back to summary |
|---|---|
| public PDShading(COSDictionary shadingDictionary) Constructor using the given shading dictionary.
| |
| create | back to summary |
|---|---|
| public static PDShading create(COSDictionary shadingDictionary) throws IOException Create the correct PD Model shading based on the COS base shading.
| |
| evalFunction | back to summary |
|---|---|
| public float[] evalFunction(float inputValue) throws IOException Convert the input value using the functions of the shading dictionary.
| |
| evalFunction | back to summary |
|---|---|
| public float[] evalFunction(float[] input) throws IOException Convert the input values using the functions of the shading dictionary.
| |
| getAntiAlias | back to summary |
|---|---|
| public boolean getAntiAlias() This will return the AntiAlias value.
| |
| getBackground | back to summary |
|---|---|
| public COSArray getBackground() This will return the background.
| |
| getBBox | back to summary |
|---|---|
| public PDRectangle getBBox() An array of four numbers in the form coordinate system (see below), giving the coordinates of the left, bottom, right, and top edges, respectively, of the shading's bounding box.
| |
| getBounds | back to summary |
|---|---|
| public Rectangle2D getBounds(AffineTransform xform, Matrix matrix) throws IOException Calculate a bounding rectangle around the areas of this shading context.
| |
| getColorSpace | back to summary |
|---|---|
| public PDColorSpace getColorSpace() throws IOException This will get the color space or null if none exists.
| |
| getCOSObject | back to summary |
|---|---|
| public COSDictionary getCOSObject() Implements org. This will get the underlying dictionary.
| |
| getFunction | back to summary |
|---|---|
| public PDFunction getFunction() throws IOException This will return the function used to convert the color values.
| |
| getFunctionsArray | back to summary |
|---|---|
| private PDFunction[] getFunctionsArray() throws IOException Provide the function(s) of the shading dictionary as array.
| |
| getShadingType | back to summary |
|---|---|
| public abstract int getShadingType() This will return the shading type.
| |
| getType | back to summary |
|---|---|
| public String getType() This will return the type.
| |
| setAntiAlias | back to summary |
|---|---|
| public void setAntiAlias(boolean antiAlias) This will set the AntiAlias value.
| |
| setBackground | back to summary |
|---|---|
| public void setBackground(COSArray newBackground) This will set the background.
| |
| setBBox | back to summary |
|---|---|
| public void setBBox(PDRectangle newBBox) This will set the BBox (bounding box) for this Shading.
| |
| setColorSpace | back to summary |
|---|---|
| public void setColorSpace(PDColorSpace colorSpace) This will set the color space for the shading.
| |
| setFunction | back to summary |
|---|---|
| public void setFunction(PDFunction newFunction) This will set the function for the color conversion.
| |
| setFunction | back to summary |
|---|---|
| public void setFunction(COSArray newFunctions) This will set the functions COSArray for the color conversion.
| |
| setShadingType | back to summary |
|---|---|
| public void setShadingType(int shadingType) This will set the shading type.
| |
| toPaint | back to summary |
|---|---|
| public abstract Paint toPaint(Matrix matrix) Returns an AWT paint which corresponds to this shading | |