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 booleanHolds value of property antiAlias.private float[]Holds value of property bBox.private ColorDetailsprivate Colorprivate PdfDictionaryprivate PdfNameprivate PdfIndirectReferenceprivate intprivate final PdfWriter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidprivate static voidcheckCompatibleColors(Color c1, Color c2) float[]getBBox()private static float[]getColorArray(Color color) (package private) ColorDetails(package private) PdfName(package private) PdfIndirectReference(package private) PdfWriterbooleanvoidsetAntiAlias(boolean antiAlias) voidsetBBox(float[] bBox) private voidsetColorSpace(Color color) (package private) voidsetName(int number) (package private) static PdfShadingsimpleAxial(PdfWriter writer, float x0, float y0, float x1, float y1, Color startColor, Color endColor) private static PdfShadingsimpleAxial(PdfWriter writer, float x0, float y0, float x1, float y1, Color startColor, Color endColor, boolean extendStart, boolean extendEnd) private static PdfShadingsimpleRadial(PdfWriter writer, float x0, float y0, float r0, float x1, float y1, float r1, Color startColor, Color endColor, boolean extendStart, boolean extendEnd) private static voidprivate static PdfShadingtype2(PdfWriter writer, Color colorSpace, float[] coords, float[] domain, PdfFunction function, boolean[] extend) private static PdfShadingtype3(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)
-