Class Type7ShadingPaint

  • All Implemented Interfaces:
    java.awt.Paint, java.awt.Transparency

    class Type7ShadingPaint
    extends ShadingPaint<PDShadingType7>
    AWT Paint for tensor-product patch meshes (Type 7) shading. This was done as part of GSoC2014, Tilman Hausherr is the mentor.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static org.apache.commons.logging.Log LOG  
      • Fields inherited from interface java.awt.Transparency

        BITMASK, OPAQUE, TRANSLUCENT
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.awt.PaintContext createContext​(java.awt.image.ColorModel cm, java.awt.Rectangle deviceBounds, java.awt.geom.Rectangle2D userBounds, java.awt.geom.AffineTransform xform, java.awt.RenderingHints hints)  
      int getTransparency()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • LOG

        private static final org.apache.commons.logging.Log LOG
    • Constructor Detail

      • Type7ShadingPaint

        Type7ShadingPaint​(PDShadingType7 shading,
                          Matrix matrix)
        Constructor.
        Parameters:
        shading - the shading resources
        matrix - the pattern matrix concatenated with that of the parent content stream
    • Method Detail

      • getTransparency

        public int getTransparency()
      • createContext

        public java.awt.PaintContext createContext​(java.awt.image.ColorModel cm,
                                                   java.awt.Rectangle deviceBounds,
                                                   java.awt.geom.Rectangle2D userBounds,
                                                   java.awt.geom.AffineTransform xform,
                                                   java.awt.RenderingHints hints)