Class PatternType1

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

public class PatternType1 extends PDFPattern
A type 1 (tiling) pattern
  • Field Details

    • PAINT_COLORED

      public static final int PAINT_COLORED
      paint types
      See Also:
    • PAINT_UNCOLORED

      public static final int PAINT_UNCOLORED
      Constant PAINT_UNCOLORED=2
      See Also:
    • TILE_CONSTANT

      public static final int TILE_CONSTANT
      tiling types
      See Also:
    • TILE_NODISTORT

      public static final int TILE_NODISTORT
      Constant TILE_NODISTORT=2
      See Also:
    • TILE_FASTER

      public static final int TILE_FASTER
      Constant TILE_FASTER=3
      See Also:
  • Constructor Details

    • PatternType1

      public PatternType1()
      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.