|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.pdfbox.pdmodel.graphics.shading.ShadingContext
org.apache.pdfbox.pdmodel.graphics.shading.AxialShadingContext
public class AxialShadingContext
AWT PaintContext for axial shading. Performance improvement done as part of GSoC2014, Tilman Hausherr is the mentor.
| Field Summary |
|---|
| Fields inherited from class org.apache.pdfbox.pdmodel.graphics.shading.ShadingContext |
|---|
bboxRect, colorSpace, deviceBounds, maxBBoxX, maxBBoxY, minBBoxX, minBBoxY, outputColorModel, shading, shadingColorSpace, shadingTinttransform |
| Constructor Summary | |
|---|---|
AxialShadingContext(PDShadingType2 shading,
ColorModel colorModel,
AffineTransform xform,
Matrix ctm,
int pageHeight,
Rectangle dBounds)
Constructor creates an instance to be used for fill operations. |
|
| Method Summary | |
|---|---|
void |
dispose()
|
ColorModel |
getColorModel()
|
float[] |
getCoords()
Returns the coords values. |
float[] |
getDomain()
Returns the domain values. |
boolean[] |
getExtend()
Returns the extend values. |
PDFunction |
getFunction()
Returns the function. |
Raster |
getRaster(int x,
int y,
int w,
int h)
|
| Methods inherited from class org.apache.pdfbox.pdmodel.graphics.shading.ShadingContext |
|---|
convertToRGB, getShadingTintTransform |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AxialShadingContext(PDShadingType2 shading,
ColorModel colorModel,
AffineTransform xform,
Matrix ctm,
int pageHeight,
Rectangle dBounds)
throws IOException
shading - the shading type to be usedcolorModel - the color model to be usedxform - transformation for user to device spacectm - the transformation matrixpageHeight - height of the current pagedBounds - device bounds
IOException| Method Detail |
|---|
public void dispose()
dispose in interface PaintContextpublic ColorModel getColorModel()
getColorModel in interface PaintContext
public Raster getRaster(int x,
int y,
int w,
int h)
getRaster in interface PaintContextpublic float[] getCoords()
public float[] getDomain()
public boolean[] getExtend()
public PDFunction getFunction()
throws IOException
IOException - if something goes wrong
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||