Package com.ribs.pdf.patterns
Class PDFAxialShading
java.lang.Object
com.ribs.pdf.PDFPattern
com.ribs.pdf.patterns.PDFShadingPattern
com.ribs.pdf.patterns.PDFAxialShading
- All Implemented Interfaces:
Paint,PaintContext,Transparency
-
Field Summary
Fields inherited from class com.ribs.pdf.patterns.PDFShadingPattern
ArbitraryColorSpaceShading, DeviceGrayShading, DeviceRGBShadingFields inherited from interface java.awt.Transparency
BITMASK, OPAQUE, TRANSLUCENT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoShading(int[] samples, int x, int y, int w, int h) Subclasses should implement this method to draw the shading.voidinitializeShadingParameters(Map shadingDict, PDFFile srcFile) Read the shading parametersMethods inherited from class com.ribs.pdf.patterns.PDFShadingPattern
createContext, dispose, getBounds, getColorModel, getInstance, getPaint, getRaster, getRGBAPixel, getTransform, getTransparency, setColorSpaceMethods inherited from class com.ribs.pdf.PDFPattern
getGState, getInstance
-
Constructor Details
-
PDFAxialShading
-
-
Method Details
-
initializeShadingParameters
Read the shading parameters- Overrides:
initializeShadingParametersin classPDFShadingPattern
-
doShading
public void doShading(int[] samples, int x, int y, int w, int h) Description copied from class:PDFShadingPatternSubclasses should implement this method to draw the shading. samples is defined to be an array of 8 bit per sample/4 samples per pixel ARGB pixels. There is no padding, so all scanlines are w integers wide.- Specified by:
doShadingin classPDFShadingPattern
-