java.lang.Object
org.jfree.pdf.internal.PDFObject
org.jfree.pdf.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 Dictionary
The dictionary.private ShadingType
The shading type. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Shading
(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 org.jfree.pdf.internal.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 (null
not 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:
getObjectBytes
in classPDFObject
- Returns:
- A byte array.
-