Class PatternType2

java.lang.Object
org.loboevolution.pdfview.pattern.PDFPattern
org.loboevolution.pdfview.pattern.PatternType2

public class PatternType2 extends PDFPattern
A type 1 (tiling) pattern
  • Constructor Details

    • PatternType2

      public PatternType2()
      Creates a new instance of PatternType1
  • Method Details

    • parse

      protected void parse(PDFObject patternObj, Map rsrc) throws IOException
      Parse the pattern-specific information from the pdf object

      Parse the pattern from the PDFObject

      Note the resources passed in are ignored...

      Specified by:
      parse in class PDFPattern
      Parameters:
      patternObj - the pdfobject with data for this pattern
      rsrc - a Map object.
      Throws:
      IOException - if any.
    • getPaint

      public PDFPaint getPaint(PDFPaint basePaint)
      Returns paint that represents the selected pattern

      Create a PDFPaint from this pattern and set of components. This creates a buffered image of this pattern using the given paint, then uses that image to create the correct TexturePaint to use in the PDFPaint.

      Specified by:
      getPaint in class PDFPattern
      Parameters:
      basePaint - the background paint color, or null for none
      Returns:
      a PDFPaint object.