Class PatternType1
java.lang.Object
org.loboevolution.pdfview.pattern.PDFPattern
org.loboevolution.pdfview.pattern.PatternType1
A type 1 (tiling) pattern
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
paint typesstatic final int
ConstantPAINT_UNCOLORED=2
static final int
tiling typesstatic final int
ConstantTILE_FASTER=3
static final int
ConstantTILE_NODISTORT=2
-
Constructor Summary
-
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:
parse
in classPDFPattern
- Parameters:
patternObj
- the pdfobject with data for this patternrsrc
- aMap
object.- 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:
getPaint
in classPDFPattern
- Parameters:
basePaint
- the background paint color, or null for none- Returns:
- a
PDFPaint
object.
-