public class PdfShading extends Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
antiAlias
Holds value of property antiAlias.
|
protected float[] |
bBox
Holds value of property bBox.
|
protected ColorDetails |
colorDetails |
private BaseColor |
cspace |
protected PdfDictionary |
shading |
protected PdfName |
shadingName |
protected PdfIndirectReference |
shadingReference |
protected int |
shadingType |
protected PdfWriter |
writer |
Modifier | Constructor and Description |
---|---|
protected |
PdfShading(PdfWriter writer)
Creates new PdfShading
|
Modifier and Type | Method and Description |
---|---|
(package private) void |
addToBody() |
static void |
checkCompatibleColors(BaseColor c1,
BaseColor c2) |
float[] |
getBBox() |
static float[] |
getColorArray(BaseColor color) |
(package private) ColorDetails |
getColorDetails() |
BaseColor |
getColorSpace() |
(package private) PdfName |
getShadingName() |
(package private) PdfIndirectReference |
getShadingReference() |
(package private) PdfWriter |
getWriter() |
boolean |
isAntiAlias() |
void |
setAntiAlias(boolean antiAlias) |
void |
setBBox(float[] bBox) |
protected void |
setColorSpace(BaseColor color) |
(package private) void |
setName(int number) |
static PdfShading |
simpleAxial(PdfWriter writer,
float x0,
float y0,
float x1,
float y1,
BaseColor startColor,
BaseColor endColor) |
static PdfShading |
simpleAxial(PdfWriter writer,
float x0,
float y0,
float x1,
float y1,
BaseColor startColor,
BaseColor endColor,
boolean extendStart,
boolean extendEnd) |
static PdfShading |
simpleRadial(PdfWriter writer,
float x0,
float y0,
float r0,
float x1,
float y1,
float r1,
BaseColor startColor,
BaseColor endColor) |
static PdfShading |
simpleRadial(PdfWriter writer,
float x0,
float y0,
float r0,
float x1,
float y1,
float r1,
BaseColor startColor,
BaseColor endColor,
boolean extendStart,
boolean extendEnd) |
static void |
throwColorSpaceError() |
static PdfShading |
type1(PdfWriter writer,
BaseColor colorSpace,
float[] domain,
float[] tMatrix,
PdfFunction function) |
static PdfShading |
type2(PdfWriter writer,
BaseColor colorSpace,
float[] coords,
float[] domain,
PdfFunction function,
boolean[] extend) |
static PdfShading |
type3(PdfWriter writer,
BaseColor colorSpace,
float[] coords,
float[] domain,
PdfFunction function,
boolean[] extend) |
protected PdfDictionary shading
protected int shadingType
protected ColorDetails colorDetails
protected PdfName shadingName
protected PdfIndirectReference shadingReference
protected float[] bBox
protected boolean antiAlias
protected PdfShading(PdfWriter writer)
protected void setColorSpace(BaseColor color)
public BaseColor getColorSpace()
public static void throwColorSpaceError()
public static void checkCompatibleColors(BaseColor c1, BaseColor c2)
public static float[] getColorArray(BaseColor color)
public static PdfShading type1(PdfWriter writer, BaseColor colorSpace, float[] domain, float[] tMatrix, PdfFunction function)
public static PdfShading type2(PdfWriter writer, BaseColor colorSpace, float[] coords, float[] domain, PdfFunction function, boolean[] extend)
public static PdfShading type3(PdfWriter writer, BaseColor colorSpace, float[] coords, float[] domain, PdfFunction function, boolean[] extend)
public static PdfShading simpleAxial(PdfWriter writer, float x0, float y0, float x1, float y1, BaseColor startColor, BaseColor endColor, boolean extendStart, boolean extendEnd)
public static PdfShading simpleAxial(PdfWriter writer, float x0, float y0, float x1, float y1, BaseColor startColor, BaseColor endColor)
public static PdfShading simpleRadial(PdfWriter writer, float x0, float y0, float r0, float x1, float y1, float r1, BaseColor startColor, BaseColor endColor, boolean extendStart, boolean extendEnd)
public static PdfShading simpleRadial(PdfWriter writer, float x0, float y0, float r0, float x1, float y1, float r1, BaseColor startColor, BaseColor endColor)
PdfName getShadingName()
PdfIndirectReference getShadingReference()
void setName(int number)
void addToBody() throws IOException
IOException
ColorDetails getColorDetails()
public float[] getBBox()
public void setBBox(float[] bBox)
public boolean isAntiAlias()
public void setAntiAlias(boolean antiAlias)
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses