Class Type4ShadingContext

  • All Implemented Interfaces:
    java.awt.PaintContext

    class Type4ShadingContext
    extends GouraudShadingContext
    AWT PaintContext for Gouraud Triangle Mesh (Type 4) shading.
    • Field Detail

      • LOG

        private static final org.apache.commons.logging.Log LOG
      • bitsPerFlag

        private final int bitsPerFlag
    • Constructor Detail

      • Type4ShadingContext

        Type4ShadingContext​(PDShadingType4 shading,
                            java.awt.image.ColorModel cm,
                            java.awt.geom.AffineTransform xform,
                            Matrix matrix,
                            java.awt.Rectangle deviceBounds)
                     throws java.io.IOException
        Constructor creates an instance to be used for fill operations.
        Parameters:
        shading - the shading type to be used
        cm - the color model to be used
        xform - transformation for user to device space
        matrix - the pattern matrix concatenated with that of the parent content stream
        Throws:
        java.io.IOException
    • Method Detail

      • collectTriangles

        private java.util.List<ShadedTriangle> collectTriangles​(PDShadingType4 freeTriangleShadingType,
                                                                java.awt.geom.AffineTransform xform,
                                                                Matrix matrix)
                                                         throws java.io.IOException
        Throws:
        java.io.IOException