public class TilingPattern extends Stream implements Pattern
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)
| Modifier and Type | Field and Description |
|---|---|
static Name |
BBOX_KEY |
java.awt.Color |
fillColour |
static Name |
MATRIX_KEY |
static int |
PAINTING_TYPE_COLORED_TILING_PATTERN
Colored tiling pattern.
|
static int |
PAINTING_TYPE_UNCOLORED_TILING_PATTERN
Uncolored tiling pattern.
|
static Name |
PAINTTYPE_KEY |
static Name |
PATTERNTYPE_KEY |
static Name |
RESOURCES_KEY |
static int |
TILING_TYPE_CONSTANT_SPACING
Spacing of tiles relative to the device grid: Pattern cells are spaced
consistently-that is, by a multiple of a device pixel.
|
static int |
TILING_TYPE_CONSTANT_SPACING_FASTER
Pattern cells are spaced consistently as in tiling type 1, but with
additional distortion permitted to enable a more efficient implementation.
|
static int |
TILING_TYPE_NO_DISTORTION
The pattern cell is not
distorted, but the spacing between pattern cells may vary by as much as
1 device pixel, both horizontally and vertically, when the pattern is
painted.
|
static Name |
TILINGTYPE_KEY |
static Name |
XSTEP_KEY |
static Name |
YSTEP_KEY |
COLORSPACE_KEY, compressed, CS_KEY, DECODEPARAM_KEY, F_KEY, FILTER_KEY, H_KEY, HEIGHT_KEY, I_KEY, IM_KEY, IMAGEMASK_KEY, INDEXED_KEY, pObjectReference, rawBytes, W_KEY, WIDTH_KEYentries, FORM_TYPE_KEY, isDeleted, isNew, LENGTH_KEY, library, SUBTYPE_KEY, TYPE_KEYPATTERN_TYPE_SHADING, PATTERN_TYPE_TILING, TYPE_VALUE| Constructor and Description |
|---|
TilingPattern(Library l,
java.util.HashMap h,
SeekableInputConstrainedWrapper streamInputWrapper) |
TilingPattern(Stream stream) |
| Modifier and Type | Method and Description |
|---|---|
java.awt.geom.Rectangle2D |
getBBox() |
java.awt.geom.Rectangle2D |
getbBoxMod()
Bbox converted to user space.
|
java.awt.Color |
getFirstColor() |
java.awt.geom.AffineTransform |
getInvMatrix() |
java.awt.geom.AffineTransform |
getMatrix() |
java.awt.Paint |
getPaint() |
int |
getPaintType() |
GraphicsState |
getParentGraphicState() |
int |
getPatternType() |
Shapes |
getShapes() |
int |
getTilingType() |
Name |
getType() |
java.awt.Color |
getUnColored() |
float |
getXStep() |
float |
getYStep() |
void |
init(GraphicsState graphicsState) |
void |
paintPattern(java.awt.Graphics2D g,
java.awt.geom.AffineTransform base)
Applies the pattern paint specified by this TilingPattern instance.
|
void |
setMatrix(java.awt.geom.AffineTransform matrix) |
void |
setPaintType(int paintType) |
void |
setParentGraphicState(GraphicsState graphicsState) |
void |
setPatternType(int patternType) |
void |
setShapes(Shapes shapes) |
void |
setTilingType(int tilingType) |
void |
setUnColored(java.awt.Color unColored) |
java.lang.String |
toString()
Return a string description of the object.
|
getDecodedByteArrayInputStream, getDecodedStreamBytes, getDecodedStreamBytes, getFilterNames, getNormalisedFilterNames, getPObjectReference, getRawBytes, isImageSubtype, isRawBytesCompressed, setPObjectReference, setRawBytesgetEntries, getFloat, getInt, getLibrary, getNumber, getObject, init, isDeleted, isNew, setDeleted, setNewpublic static final Name PATTERNTYPE_KEY
public static final Name PAINTTYPE_KEY
public static final Name TILINGTYPE_KEY
public static final Name BBOX_KEY
public static final Name XSTEP_KEY
public static final Name YSTEP_KEY
public static final Name MATRIX_KEY
public static final Name RESOURCES_KEY
public static final int PAINTING_TYPE_COLORED_TILING_PATTERN
public static final int PAINTING_TYPE_UNCOLORED_TILING_PATTERN
public static final int TILING_TYPE_CONSTANT_SPACING
public static final int TILING_TYPE_NO_DISTORTION
public static final int TILING_TYPE_CONSTANT_SPACING_FASTER
public java.awt.Color fillColour
public TilingPattern(Stream stream)
public TilingPattern(Library l, java.util.HashMap h, SeekableInputConstrainedWrapper streamInputWrapper)
l - h - streamInputWrapper - public java.awt.Color getFirstColor()
public void init(GraphicsState graphicsState)
public void paintPattern(java.awt.Graphics2D g,
java.awt.geom.AffineTransform base)
g - graphics context to apply textured paint too.base - base transform before painting started, generally the page
space transform of the page.public int getPatternType()
getPatternType in interface Patternpublic void setPatternType(int patternType)
public int getPaintType()
public void setPaintType(int paintType)
public int getTilingType()
public void setTilingType(int tilingType)
public java.awt.geom.Rectangle2D getbBoxMod()
public float getXStep()
public float getYStep()
public java.awt.geom.AffineTransform getMatrix()
public java.awt.geom.AffineTransform getInvMatrix()
public void setMatrix(java.awt.geom.AffineTransform matrix)
public Shapes getShapes()
public void setShapes(Shapes shapes)
public void setParentGraphicState(GraphicsState graphicsState)
setParentGraphicState in interface Patternpublic GraphicsState getParentGraphicState()
public java.awt.Color getUnColored()
public void setUnColored(java.awt.Color unColored)