org.apache.pdfbox.pdmodel.graphics.shading
Class AxialShadingContext

java.lang.Object
  extended by org.apache.pdfbox.pdmodel.graphics.shading.AxialShadingContext
All Implemented Interfaces:
PaintContext

public class AxialShadingContext
extends Object
implements PaintContext

This class represents the PaintContext of an axial shading.

Version:
$Revision: $
Author:
lehmi

Constructor Summary
AxialShadingContext(PDShadingType2 shadingType2, ColorModel colorModelValue, AffineTransform xform, Matrix ctm, int pageHeight)
          Constructor creates an instance to be used for fill operations.
 
Method Summary
 void dispose()
          
 ColorModel getColorModel()
          
 Raster getRaster(int x, int y, int w, int h)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AxialShadingContext

public AxialShadingContext(PDShadingType2 shadingType2,
                           ColorModel colorModelValue,
                           AffineTransform xform,
                           Matrix ctm,
                           int pageHeight)
Constructor creates an instance to be used for fill operations.

Parameters:
shadingType2 - the shading type to be used
colorModelValue - the color model to be used
xform - transformation for user to device space
ctm - current transformation matrix
pageHeight - height of the current page
Method Detail

dispose

public void dispose()

Specified by:
dispose in interface PaintContext

getColorModel

public ColorModel getColorModel()

Specified by:
getColorModel in interface PaintContext

getRaster

public Raster getRaster(int x,
                        int y,
                        int w,
                        int h)

Specified by:
getRaster in interface PaintContext