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

java.lang.Object
  extended by org.apache.pdfbox.pdmodel.graphics.shading.Type4ShadingPaint
All Implemented Interfaces:
Paint, Transparency

public class Type4ShadingPaint
extends Object
implements Paint

AWT PaintContext for Gouraud Triangle Mesh (Type 4) shading.


Field Summary
 
Fields inherited from interface java.awt.Transparency
BITMASK, OPAQUE, TRANSLUCENT
 
Constructor Summary
Type4ShadingPaint(PDShadingType4 shading, Matrix ctm, int pageHeight)
          Constructor.
 
Method Summary
 PaintContext createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints)
           
 int getTransparency()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Type4ShadingPaint

public Type4ShadingPaint(PDShadingType4 shading,
                         Matrix ctm,
                         int pageHeight)
Constructor.

Parameters:
shading - the shading resources
ctm - current transformation matrix
pageHeight - the height of the page
Method Detail

getTransparency

public int getTransparency()
Specified by:
getTransparency in interface Transparency

createContext

public PaintContext createContext(ColorModel cm,
                                  Rectangle deviceBounds,
                                  Rectangle2D userBounds,
                                  AffineTransform xform,
                                  RenderingHints hints)
Specified by:
createContext in interface Paint


Copyright © 2002-2014 The Apache Software Foundation. All Rights Reserved.