Class Shading
java.lang.Object
com.orsonpdf.PDFObject
com.orsonpdf.shading.Shading
- Direct Known Subclasses:
AxialShading, RadialShading
A PDF shading object (this class is abstract, subclasses implement
particular shading types).
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected DictionaryThe dictionary.private ShadingTypeThe shading type. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedShading(int number, ShadingType shadingType) Creates a new shading instance. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]Returns the bytes that go between the 'obj' and 'endobj' in the PDF output for this object.Returns the shading type.Methods inherited from class PDFObject
getGeneration, getNumber, getReference, toPDFBytes
-
Field Details
-
shadingType
The shading type. -
dictionary
The dictionary.
-
-
Constructor Details
-
Shading
Creates a new shading instance.- Parameters:
number- the PDF object number.shadingType- the shading type (nullnot permitted).
-
-
Method Details
-
getShadingType
Returns the shading type.- Returns:
- The shading type (never
null).
-
getObjectBytes
public byte[] getObjectBytes()Returns the bytes that go between the 'obj' and 'endobj' in the PDF output for this object.- Specified by:
getObjectBytesin classPDFObject- Returns:
- A byte array.
-