public interface Pattern
Patterns come in two varieties:
Tiling patterns consist of a small graphical figure (called a pattern cell) that is replicated at fixed horizontal and vertical intervals to fill the area to be painted. The graphics objects to use for tiling are described by a content stream. (PDF 1.2)
Shading patterns define a gradient fill that produces a smooth transition between colors across the area. The color to use is specified as a function of position using any of a variety of methods. (PDF 1.3)
Note Tiling pattern and shading patterns are not currently supported
| Modifier and Type | Field and Description |
|---|---|
static int |
PATTERN_TYPE_SHADING
The pattern type is a shading pattern
|
static int |
PATTERN_TYPE_TILING
The pattern type is a tiling pattern
|
static Name |
TYPE_VALUE |
| Modifier and Type | Method and Description |
|---|---|
java.awt.geom.Rectangle2D |
getBBox() |
java.awt.geom.AffineTransform |
getMatrix() |
java.awt.Paint |
getPaint() |
int |
getPatternType() |
Name |
getType() |
void |
init(GraphicsState graphicsState) |
void |
setMatrix(java.awt.geom.AffineTransform matrix) |
void |
setParentGraphicState(GraphicsState graphicsState) |
static final int PATTERN_TYPE_TILING
static final int PATTERN_TYPE_SHADING
static final Name TYPE_VALUE
Name getType()
int getPatternType()
java.awt.geom.AffineTransform getMatrix()
void setMatrix(java.awt.geom.AffineTransform matrix)
java.awt.geom.Rectangle2D getBBox()
void init(GraphicsState graphicsState)
java.awt.Paint getPaint()
void setParentGraphicState(GraphicsState graphicsState)