Class FunctionShading
- java.lang.Object
- 
- com.inductiveautomation.rm.pdf.reader.PDFPattern
- 
- com.inductiveautomation.rm.pdf.reader.fps.ShadingPattern
- 
- com.inductiveautomation.rm.pdf.reader.fps.FunctionShading
 
 
 
- 
- All Implemented Interfaces:
- java.awt.Paint,- java.awt.PaintContext,- java.awt.Transparency
 
 public class FunctionShading extends ShadingPattern Function-based (type 1) shadings x,y values in shading space are just passed to the function and the returned color value is plotted.
- 
- 
Field Summary- 
Fields inherited from class com.inductiveautomation.rm.pdf.reader.fps.ShadingPatternArbitraryColorSpaceShading, DeviceGrayShading, DeviceRGBShading
 
- 
 - 
Constructor SummaryConstructors Constructor Description FunctionShading(java.util.Map patternDict, java.util.Map shadingDict, PDFFile srcFile)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoShading(int[] samples, int x, int y, int w, int h)Subclasses should implement this method to draw the shading.voidinitializeShadingParameters(java.util.Map shadingDict, PDFFile srcFile)Read the shading parameters- 
Methods inherited from class com.inductiveautomation.rm.pdf.reader.fps.ShadingPatterncreateContext, dispose, getBounds, getColorModel, getInstance, getPaint, getRaster, getRGBAPixel, getTransform, getTransparency, setColorSpace, setDeviceTransform
 - 
Methods inherited from class com.inductiveautomation.rm.pdf.reader.PDFPatterngetGState, getInstance
 
- 
 
- 
- 
- 
Constructor Detail- 
FunctionShadingpublic FunctionShading(java.util.Map patternDict, java.util.Map shadingDict, PDFFile srcFile)
 
- 
 - 
Method Detail- 
initializeShadingParameterspublic void initializeShadingParameters(java.util.Map shadingDict, PDFFile srcFile)Read the shading parameters- Overrides:
- initializeShadingParametersin class- ShadingPattern
 
 - 
doShadingpublic void doShading(int[] samples, int x, int y, int w, int h)Description copied from class:ShadingPatternSubclasses should implement this method to draw the shading. Samples is defined to be an array of 8 bit persample/4 samples per pixel ARGB pixels. There is no padding, so all scanlines are w integers wide.- Specified by:
- doShadingin class- ShadingPattern
 
 
- 
 
-