Class PatternType1.TilingPatternPaint

  • Enclosing class:
    PatternType1

    class PatternType1.TilingPatternPaint
    extends PDFPaint
    This class overrides PDFPaint to paint in the pattern coordinate space
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private PatternType1 pattern
      the pattern to paint
    • Constructor Summary

      Constructors 
      Constructor Description
      TilingPatternPaint​(java.awt.Paint paint, PatternType1 pattern)
      Create a tiling pattern paint
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.awt.geom.Rectangle2D fill​(PDFRenderer state, java.awt.Graphics2D g, java.awt.geom.GeneralPath s)
      fill a path with the paint, and record the dirty area.
      • Methods inherited from class java.lang.Object

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

      • pattern

        private PatternType1 pattern
        the pattern to paint
    • Constructor Detail

      • TilingPatternPaint

        public TilingPatternPaint​(java.awt.Paint paint,
                                  PatternType1 pattern)
        Create a tiling pattern paint
    • Method Detail

      • fill

        public java.awt.geom.Rectangle2D fill​(PDFRenderer state,
                                              java.awt.Graphics2D g,
                                              java.awt.geom.GeneralPath s)
        fill a path with the paint, and record the dirty area.
        Overrides:
        fill in class PDFPaint
        Parameters:
        state - the current graphics state
        g - the graphics into which to draw
        s - the path to fill
        drawn - a Rectangle2D into which the dirty area (area drawn) will be added.