Package com.aowagie.text.pdf
Class PdfShading
java.lang.Object
com.aowagie.text.pdf.PdfShading
Implements the shading dictionary (or stream).
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
Holds value of property antiAlias.private float[]
Holds value of property bBox.private ColorDetails
private Color
private PdfDictionary
private PdfName
private PdfIndirectReference
private int
private final PdfWriter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void
private static void
checkCompatibleColors
(Color c1, Color c2) float[]
getBBox()
private static float[]
getColorArray
(Color color) (package private) ColorDetails
(package private) PdfName
(package private) PdfIndirectReference
(package private) PdfWriter
boolean
void
setAntiAlias
(boolean antiAlias) void
setBBox
(float[] bBox) private void
setColorSpace
(Color color) (package private) void
setName
(int number) (package private) static PdfShading
simpleAxial
(PdfWriter writer, float x0, float y0, float x1, float y1, Color startColor, Color endColor) private static PdfShading
simpleAxial
(PdfWriter writer, float x0, float y0, float x1, float y1, Color startColor, Color endColor, boolean extendStart, boolean extendEnd) private static PdfShading
simpleRadial
(PdfWriter writer, float x0, float y0, float r0, float x1, float y1, float r1, Color startColor, Color endColor, boolean extendStart, boolean extendEnd) private static void
private static PdfShading
type2
(PdfWriter writer, Color colorSpace, float[] coords, float[] domain, PdfFunction function, boolean[] extend) private static PdfShading
type3
(PdfWriter writer, Color colorSpace, float[] coords, float[] domain, PdfFunction function, boolean[] extend)
-
Field Details
-
shading
-
writer
-
shadingType
private int shadingType -
colorDetails
-
shadingName
-
shadingReference
-
cspace
-
bBox
private float[] bBoxHolds value of property bBox. -
antiAlias
private boolean antiAliasHolds value of property antiAlias.
-
-
Constructor Details
-
PdfShading
Creates new PdfShading
-
-
Method Details
-
setColorSpace
-
getColorSpace
-
throwColorSpaceError
private static void throwColorSpaceError() -
checkCompatibleColors
-
getColorArray
-
type2
private static PdfShading type2(PdfWriter writer, Color colorSpace, float[] coords, float[] domain, PdfFunction function, boolean[] extend) -
type3
private static PdfShading type3(PdfWriter writer, Color colorSpace, float[] coords, float[] domain, PdfFunction function, boolean[] extend) -
simpleAxial
private static PdfShading simpleAxial(PdfWriter writer, float x0, float y0, float x1, float y1, Color startColor, Color endColor, boolean extendStart, boolean extendEnd) -
simpleAxial
static PdfShading simpleAxial(PdfWriter writer, float x0, float y0, float x1, float y1, Color startColor, Color endColor) -
simpleRadial
private static PdfShading simpleRadial(PdfWriter writer, float x0, float y0, float r0, float x1, float y1, float r1, Color startColor, Color endColor, boolean extendStart, boolean extendEnd) -
getShadingName
PdfName getShadingName() -
getShadingReference
PdfIndirectReference getShadingReference() -
setName
void setName(int number) -
addToBody
- Throws:
IOException
-
getWriter
PdfWriter getWriter() -
getColorDetails
ColorDetails getColorDetails() -
getBBox
public float[] getBBox() -
setBBox
public void setBBox(float[] bBox) -
isAntiAlias
public boolean isAntiAlias() -
setAntiAlias
public void setAntiAlias(boolean antiAlias)
-