public class PDFShading extends PDFStream
Modifier and Type | Field and Description |
---|---|
Color |
backgroundColor |
RectF |
boundingBox |
String |
colorSpace |
int |
shadingType
Required fields for any Shading
|
Constructor and Description |
---|
PDFShading(int shadingType)
Base class constructor for shading patterns; takes the shading type as argument:
1: Function-based shading
2: Axial shading
3: Radial shading
4: Free-form Gouraud-shaded triangle mesh
5: Lattice-form Gouraud-shaded triangle mesh
6: Coons patch mesh
7: Tensor-product patch mesh
|
Modifier and Type | Method and Description |
---|---|
void |
write(OutputStream os)
Writes the object to the output stream.
|
void |
writeDictionary(OutputStream os)
SUperclass method for shading patterns; should be called first in subclass method.
|
getDeflate, getOutputStream, getStream, getStreamDataString, getWriter, setDeflate, writeStream
getGeneration, getName, getPDFDocument, getSerialID, getType, setName, toArray, toString, writeEnd, writeStart
public int shadingType
public String colorSpace
public Color backgroundColor
public RectF boundingBox
public PDFShading(int shadingType)
shadingType
- public void writeDictionary(OutputStream os) throws IOException
os
- IOException
public void write(OutputStream os) throws IOException
PDFObject
Writes the object to the output stream. This method must be overidden.
Note: It should not write any other objects, even if they are it's Kids, as they will be written by the calling routine.
write
in class PDFStream
os
- OutputStream to send the object toIOException
- on error