Class PatternType1
java.lang.Object
org.loboevolution.pdfview.pattern.PDFPattern
org.loboevolution.pdfview.pattern.PatternType1
A type 1 (tiling) pattern
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intpaint typesstatic final intConstantPAINT_UNCOLORED=2static final inttiling typesstatic final intConstantTILE_FASTER=3static final intConstantTILE_NODISTORT=2 -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.loboevolution.pdfview.pattern.PDFPattern
getPattern, getPatternType, getTransform, setTransform
-
Field Details
-
PAINT_COLORED
public static final int PAINT_COLOREDpaint types- See Also:
-
PAINT_UNCOLORED
public static final int PAINT_UNCOLOREDConstantPAINT_UNCOLORED=2- See Also:
-
TILE_CONSTANT
public static final int TILE_CONSTANTtiling types- See Also:
-
TILE_NODISTORT
public static final int TILE_NODISTORTConstantTILE_NODISTORT=2- See Also:
-
TILE_FASTER
public static final int TILE_FASTERConstantTILE_FASTER=3- See Also:
-
-
Constructor Details
-
PatternType1
public PatternType1()Creates a new instance of PatternType1
-
-
Method Details
-
parse
Parse the pattern-specific information from the pdf objectParse the pattern from the PDFObject
Note the resources passed in are ignored...
- Specified by:
parsein classPDFPattern- Parameters:
patternObj- the pdfobject with data for this patternrsrc- aMapobject.- Throws:
IOException- if any.
-
getPaint
Returns paint that represents the selected patternCreate 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:
getPaintin classPDFPattern- Parameters:
basePaint- the background paint color, or null for none- Returns:
- a
PDFPaintobject.
-